Convert WebM/H.264 to MP4/H.264 efficiently with ffmpeg.js

五迷三道 提交于 2021-01-28 00:12:59

问题


As a result of the answer here: Recording cross-platform (H.264?) videos using WebRTC MediaRecorder

How can one go about using ffmpeg.js to efficiently unwrap a webm h.264 video and re-wrap it into an mp4 container?

I'm looking through the docs: https://github.com/Kagami/ffmpeg.js?files=1

However I don't see (or perhaps I'm looking for the wrong terminology) any examples for the above. This operation will be performed on the browser (chrome) prior to uploading as a Blob - I could use a web worker though hopefully rewrapping is a trivial enough operation to not require it.

来源:https://stackoverflow.com/questions/45417952/convert-webm-h-264-to-mp4-h-264-efficiently-with-ffmpeg-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!