Richienb / webm-to-mp4

Convert a webm video to mp4.
MIT License
39 stars 4 forks source link

Browsers #3

Closed kosso closed 3 years ago

kosso commented 3 years ago

Can this work in a browser (ie not via Node) after processing it with something like browserify?

Since Safari can now do video|audio/mp4 natively using MediaRecorder, yet Chrome and FireFox can only do WebM, this module is the missing link to full compatibility for something I'd like to build.

But I'd rather it ran in the client/browser than the server/nodejs.

Richienb commented 3 years ago

Yes, there are no native dependencies so a bundler would be able to easily compile this package to run in a browser.

rsvidevince commented 2 years ago

Could you give us an example on how to turn a MediaRecorder blob array into an acceptable parameter for webmToMp4() call?

I've tried many things, always got the error:

Error: Conversion error
Invalid data found when processing input
Richienb commented 2 years ago

Could you give us an example

Here's how I did it