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

Issue with trimming videos #62

Closed
aditya-mahajan96 opened this issue Dec 21, 2021 · 10 comments
Closed

Issue with trimming videos #62

aditya-mahajan96 opened this issue Dec 21, 2021 · 10 comments

Comments

@aditya-mahajan96
Copy link

I am using ffmpeg_kit_flutter: ^4.5.0 for my video merge and for video trim your plugin video_editor: ^1.2.2. When my video size is big its giving me error text that we are printing ""Error on cover exportation"; as might be its not able to find the file.

@LeGoffMael
Copy link
Owner

LeGoffMael commented Dec 21, 2021

Please provide the actual ffmpeg error that you should have in the log

@aditya-mahajan96
Copy link
Author

aditya-mahajan96 commented Dec 21, 2021

Please provide the actual ffmpeg error that you should have in the log

Like this i am passing my file

File pickedGallaryFile = File(result.files.single.path!);
Navigator.of(context).push(
MaterialPageRoute(builder: (context) {
return VideoEditor(file: File(pickedGallaryFile.path));
}),
);
Screenshot 2021-12-21 at 11 08 10 PM
Is the error

and code uploaded on https://justpaste.it/video_code

          and pubspec.yaml

camera: ^0.8.1+5
video_compress: ^3.1.0
file_picker: ^4.2.7
video_thumbnail: ^0.4.3
ffmpeg_kit_flutter: ^4.5.0
gallery_saver: ^2.3.2
simple_gesture_detector: ^0.2.0
flutter_video_info: ^1.2.0
video_editor: ^1.2.2
helpers: ^1.1.1
video_player: ^2.2.6

@LeGoffMael
Copy link
Owner

can you check the log again using the latest updates

@aditya-mahajan96
Copy link
Author

can you check the log again using the latest updates

How can we print log can you please tell me. Here is my code as mentioned above too - https://justpaste.it/video_code as there isn't any such command written FFmpegKitConfig.

@LeGoffMael
Copy link
Owner

just replace the video_editor dependency in the pubspec.yaml to use the latest update

replace

video_editor: ^1.2.2

by

video_editor:
    git:
      url: git://github.com/seel-channel/video_editor.git

you should now see in the log the return status, code and error message if it failed

@aditya-mahajan96
Copy link
Author

just replace the video_editor dependency in the pubspec.yaml to use the latest update

replace

video_editor: ^1.2.2

by

video_editor:
    git:
      url: git://github.com/seel-channel/video_editor.git

you should now see in the log the return status, code and error message if it failed

I have tried that too and for printing " ffmpeg return state and fail stack trace if exists #63" it requires command and in video_Editor there isn't any command mentioned.

@LeGoffMael
Copy link
Owner

you don't need any command, just run exportVideo or extractCover and you should now be able to see the reason why it does not work

@aditya-mahajan96
Copy link
Author

aditya-mahajan96 commented Dec 26, 2021

For making the project run first i had to change my earlier plugin of ffmpegkit also

From

ffmpeg_kit_flutter: ^4.5.0
video_editor: ^1.2.2
 ffmpeg_kit_flutter:
    git:
      url: https://github.com/shilangyu/ffmpeg-kit
      ref: development-flutter
      path: prebuilt/bundle-flutter-lts/default
  video_editor:
    git:
      url: git://github.com/seel-channel/video_editor.git

as using ffmpegkit with version it was giving error -
Because every version of video_editor from git depends on ffmpeg_kit_flutter from git and ProjectName depends on ffmpeg_kit_flutter from hosted, video_editor from git is forbidden.
So, because ProjectName depends on video_editor from git, version solving failed.
pub get failed (1; So, because ProjectName depends on video_editor from git, version solving failed.)

and video editor as you have mentioned and when coming to state its giving error - FFmpeg process exited with state COMPLETED and return code 1.

Below first image is showing what it displays when i load mp4 type video
Screenshot 2021-12-26 at 12 41 11 PM

Second image shows the ffmpegkit status

Screenshot 2021-12-26 at 12 42 22 PM

@akshayrupareliya0912
Copy link

I want to update trim by using video editor package?

@LeGoffMael
Copy link
Owner

can you please try again with the latest 1.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants