react-native-video-processing
react-native-video-processing copied to clipboard
Taking huge time to compressing the video in android (react-native)
Hi every one, Here I am compressing video with react-native-video-processing. Actually, It was taking almost 60 - 80 sec to compress 20 to 30 MB video's. Can we reduce the time to 20 to 30 sec? Any idea?
Current Behavior
It was taking huge time to compress. Almost 1 to 1.5 min for 30 MB video.
Expected Behavior
Can we do compressing within less time? (20 to 30 sec)
Your Environment
----------------------------------------Here is my code --------- const options = { width: 720, height: 1280, bitrateMultiplier: 3, saveToCameraRoll: true, // default is false, iOS only saveWithCurrentDate: true, // default is false, iOS only minimumBitrate: 300000, // removeAudio: true, // default is false };
await ProcessingManager.compress("---my video path ---", options) // like VideoPlayer compress options
.then((data) => (console.log(data));
And we are using the properties like ..
bitrateMultiplier: 3,
minimumBitrate: 300000,
what exactly those fields do...?
Please help me
software | version |
---|---|
react-native-video-processing | |
react-native | |
node |
@harikrishna1213 I have a solution for this issue as use a native package. I just public it in git, you can check out and try it. trim video and get asset image very fast.
I'm developing it on IOS, and hope in the future this solution working great. https://github.com/Thanhcao86/React-Native-CompressVideo
Any progress here 😔 ?
any progress @shahen94 ? thanks!
any progress @shahen94 we're also struggling with this one. Your help is very much appreciated. Thank you!
Hi, could anybody tell us why doess it take so much to compress video on Android? What is our alternative? Thanks..
Any solution guys ?