Open krean93 opened 4 years ago
Is it possible to increase performance by recording in H.264 codec, then simply rewrapping with ffmpeg.js?
I'm experimenting with the following setup:
recordVideo = RecordRTC(stream, { type: "video", mimeType: "video/webm;codecs=h264", });
worker.postMessage({ type: "command", arguments: "-i video.webm -c:v copy output.mp4".split(" "), files: [ { data: new Uint8Array(aab), name: "video.webm", }, ], });
Result: In theory it should work, but I'm getting a black screen s a result. I'm using the demo source (https://github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html) with the above modifications.
-i video.webm -c:v copy output.mp4 worked for me but I had to use the ffmpeg-all-codecs.js taken from http://bgrins.github.io/videoconverter.js/
Is it possible to increase performance by recording in H.264 codec, then simply rewrapping with ffmpeg.js?
I'm experimenting with the following setup:
recordVideo = RecordRTC(stream, { type: "video", mimeType: "video/webm;codecs=h264", });
worker.postMessage({ type: "command", arguments: "-i video.webm -c:v copy output.mp4".split(" "), files: [ { data: new Uint8Array(aab), name: "video.webm", }, ], });
Result: In theory it should work, but I'm getting a black screen s a result. I'm using the demo source (https://github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html) with the above modifications.