react-native-video-processing icon indicating copy to clipboard operation
react-native-video-processing copied to clipboard

Taking huge time to compressing the video in android (react-native)

Open harikrishna1213 opened this issue 5 years ago • 6 comments

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 avatar May 09 '19 12:05 harikrishna1213

@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

Juman8 avatar May 27 '19 02:05 Juman8

Any progress here 😔 ?

DavitVosk avatar Oct 18 '19 06:10 DavitVosk

any progress @shahen94 ? thanks!

noahjerreelph avatar Jan 17 '20 09:01 noahjerreelph

any progress @shahen94 we're also struggling with this one. Your help is very much appreciated. Thank you!

v88jfernandez avatar Jan 17 '20 09:01 v88jfernandez

Hi, could anybody tell us why doess it take so much to compress video on Android? What is our alternative? Thanks..

mladibejn avatar Mar 10 '20 16:03 mladibejn

Any solution guys ?

siddharth-kt avatar Jul 06 '21 08:07 siddharth-kt