Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 118079

ffmpeg - converting webm videos generated by Chrome is slow

$
0
0

I generate webm files in two different ways. One using Chrome WebRTC MediaRecorder, the other one is using a js library which generates the webm video frame by frame (webm-writer-js). The file size of the videos generated is not that different, the fast one is 60% of the slow one but the difference in speed is 1000%

Using the basic ffmpeg syntax -i input.webm output.mp4 the files created with Chrome's media recorder take in fact almost 10x time to be converted. The conversion logs differ slightly but overall look very similar to my novice eyes. On the left the fast conversion and on the right the slow one.

enter image description here

The fast one throws a little error but the conversion seems successful. In the slow conversion you can see many frames processed, in the fast one as if there was only one (very fast). Using -preset veryfast cuts the speed time by half to both but the loss of quality is visible.

Any idea how I could speed up the conversion for the videos generated by Chrome without compromising much in quality? Thanks a lot!

-- webm-writer-js, enter image description here

Viewing all articles
Browse latest Browse all 118079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>