shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 326 forks source link

Error: Crop error: failed. ffmpeg version 3.3.5 #273

Open thevijaysoni opened 4 years ago

thevijaysoni commented 4 years ago

Current Behavior

I am trying to crop video using ProcessingManager.crop and getting the error - some videos are croping and some not. Error- Possible Unhandled Promise Rejection (id: 10): Error: Crop error: failed. ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8 (GCC) configuration Screenshot_1586147896

Expected Behavior

I want to crop videos that is selected from gallery.

Your Environment

software version
react-native-video-processing 1.20.0
react-native 0.61.5
node
yalcinozer commented 4 years ago

Its a little late but I hope it helps.

Please make sure you have.then()and .catch() after crop() method to handle promise.

ahmedbhesaniya97 commented 3 years ago

Has anyone resolve this issue ? im getting this issue in bundle.