Export HTML5 blob video to MP4

笑着哭i 提交于 2019-12-06 12:06:30

You cannot save directly to MP4 format with the way the current state of getUserMedia API is working, you can however save in webm format and convert it afterwards.

Several attempts have been made, webRTC experiment project has several versions of recording in the browser implemented: https://www.webrtc-experiment.com/RecordRTC/

You can however save directly in MP4 format using HTML Media Capture. This works by extending the <input type="file"/> and adding new values for the accept parameter with options for audio, video and photo/snapshot. This however works only for mobile browsers, as the desktop browser will only interpret it as a simple file upload.

HDFVR has a demo of this, if you access their demo from a mobile device.

More details can be read in the following article: http://hdfvr.com/html5-video-recording

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