Currently I'm working on how can we change the webm file to mp4 or mp4 file to mp4 in react. I have used so many libraries and npm but I didn't find any solution for it. Ex. I have used webm to mp4 npm package here
But when I have this in react it gives me error. It is not working. and after that I have used the ffmpeg library https://www.npmjs.com/package/react-ffmpeg In this, I'm not able to understand that how can I use this. Means I want to convert file but I don't understand what's going on in that.
And also i have used with cli and ffmpeg binary file.
ffmpeg -i vid.webm -crf 1 -c:v libx264 vid-2.mp4
but it is working in cmd and it is used for get the file from system and get output in your system.
But how can i do this in react. I want to implement this in react app.
Thanks for your suggestions ahead.