Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me solve my issue with ffmpeg-kit #588

Closed
Dev-Demons opened this issue Oct 3, 2022 · 4 comments
Closed

Help me solve my issue with ffmpeg-kit #588

Dev-Demons opened this issue Oct 3, 2022 · 4 comments

Comments

@Dev-Demons
Copy link

Dev-Demons commented Oct 3, 2022

pubspec.yaml setting:
flutter:
plugin:
platforms:
android:
package: com.arthenica.flutter.ffmpeg
pluginClass: FlutterFFmpegPlugin
ios:
pluginClass: FlutterFFmpegPlugin
web:
pluginClass: FlutterFFmpegPlugin
windows:
pluginClass: FlutterFFmpegPlugin

my test code:
import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
FFmpegKit.execute('-i "E:\0_Projects\Flutter-ffmpeg\ffmpegtest\file1.mp4" -c:v mpeg4 file2.mp4').then((session) async {
final returnCode = await session.getReturnCode();

if (ReturnCode.isSuccess(returnCode)) {
print("this is the success");
// SUCCESS

} else if (ReturnCode.isCancel(returnCode)) {
// CANCEL
print("this is the cancel");
} else {
// ERROR
print("this is the fail");
}
});
my error log:
Launching lib\main.dart on Windows in debug mode...
Connecting to VM Service at ws://127.0.0.1:61208/KRvl6ZXfkG4=/ws
flutter: Loading ffmpeg-kit-flutter.
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method getLogLevel on channel flutter.arthenica.com/ffmpeg_kit)

════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel flutter.arthenica.com/ffmpeg_kit_event:
MissingPluginException(No implementation found for method listen on channel flutter.arthenica.com/ffmpeg_kit_event)

When the exception was thrown, this was the stack
#0 MethodChannel._invokeMethod

#1 EventChannel.receiveBroadcastStream.

════════════════════════════════════════════════════════════════════════════════
#0 MethodChannel._invokeMethod

#1 FFmpegKitInitializer._initialize

#2 FFmpegKitInitializer.initialize

#3 FFmpegKitConfig.init

#4 AbstractSession.createFFmpegSession

#5 FFmpegSession.create

#6 FFmpegKit.executeWithArguments

Lost connection to device.
Exited (sigterm)

how to fix this issue?

@tanersener
Copy link
Collaborator

See #215

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@zhubinsheng
Copy link

how to fix

@deckerst deckerst mentioned this issue Aug 5, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants