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 in boomerang #282

Open harshal2030 opened 4 years ago

harshal2030 commented 4 years ago

Current Behavior

I am using react-native-image-picker for selecting video and passing response.uri as source and getting error.

Code

ProcessingManager.boomerang(response.uri)
                    .then(data => console.log(data))
                    .catch(e => console.log(e));

Error

Error: Boomerang error: failed. ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers  built with gcc 4.8 (GCC)  configuration: --target-os=linux --cross-prefix=/Users/kesha/Projects/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/Users/kesha/Projects/ffmpeg-android/toolchain-android/sysroot --enable-libx264 --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --enable-small --disable-network --pkg-config=/Users/kesha/Projects/ffmpeg-android/ffmpeg-pkg-config-for-3.3 --prefix=/Users/kesha/Projects/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/Users/kesha/Projects/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/Users/kesha/Projects/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs=-lx264 --extra-cxxflags=  libavutil      55. 58.100 / 55. 58.100  libavcodec     57. 89.100 / 57. 89.100  libavformat    57. 71.100 / 57. 71.100  libavdevice    57.  6.100 / 57.  6.100  libavfilter     6. 82.100 /  6. 82.100  libswscale      4.  6.100 /  4.  6.100  libswresample   2.  7.100 /  2.  7.100  libpostproc    54.  5.100 / 54.  5.100content://com.google.android.apps.photos.contentprovider/0/2/content%3A%2F%2Fmedia%2Fexternal%2Fvideo%2Fmedia%2F39014/ORIGINAL/NONE/video%2Fmp4/2100940599: Protocol not foundDid you mean file:content://com.google.android.apps.photos.contentprovider/0/2/content%3A%2F%2Fmedia%2Fexternal%2Fvideo%2Fmedia%2F39014/ORIGINAL/NONE/video%2Fmp4/2100940599?
    at Object.fn [as boomerang] (NativeModules.js:99)
    at Function.boomerang (ProcessingManager.android.js:55)
    at Post.js:116
    at MessageQueue.__invokeCallback (MessageQueue.js:483)
    at MessageQueue.js:135
    at MessageQueue.__guard (MessageQueue.js:384)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:134)
    at debuggerWorker.js:69

Expected Behavior

Should get the uri of the boomerag video

Your Environment

software version
react-native-video-processing 1.20.0
react-native 0.61.5
node 12.8.0