Exploring the Mediarecorder API and really hope to get an mp4 output instead of webm. Prefer to stay client-side to reduce server resources and ffmpeg.js at 17mb doesn't seem viable for online use.
Discovered that one can create (Chrome/Firefox) a webm/h.264, which converts without re-encoding to an mp4 using FFMPEG. The resulting file opens fine in Quicktime MacOS (snippet source):
ffmpeg -i _inputfile_.webm -c:v copy _outputfile_.mp4
Whereas this clever hack works to display the video maybe as an mp4 in the browser, but the downloaded file won't open in Quicktime (just VLC, same for webm):
new Blob(recordedBlobs, {type: 'video/mp4'});
video.src = window.URL.createObjectURL(superBuffer);
Therefore, wondering if there's another JS hack to do what FFMPEG's -c:v copy
does, but to the blob bytes of the MediaRecorder's recordedBlobs
and give it the same mp4 container that's accepted by Quicktime/etc?