admin管理员组

文章数量:1332334

Is there any library available for File or Video pressor in react JS or javascript? If unavailable, suggest an alternative way to resize file size or video size before upload.

Is there any library available for File or Video pressor in react JS or javascript? If unavailable, suggest an alternative way to resize file size or video size before upload.

Share asked May 25, 2022 at 3:57 Paras DalsaniyaParas Dalsaniya 531 silver badge8 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 3

I think You should try this one: https://github./ffmpegwasm/ffmpeg.wasm

I am not sure if there is any java-script library to press videos client side (however there is one for image pression: https://medium./front-end-weekly/image-pression-in-reactjs-a07ec0066b24)

You can try ffmpeg to press videos server side (for example by using NodeJS to run the shell mands to press the uploaded video). However this would require full access to the hosting server because you need to install ffmpeg in it.

You can also use something like this https://mediamachine.io/

Google "video transcoding pipelines" for more information regarding the above

本文标签: javascriptReact JS FileVideo compressorStack Overflow