Does anyone know how to convert a #webm file to #mp4 using #ffmpeg?

.. .. I know what you're thinking: "that's super easy, just run ffmpeg -i input.webm output.mp4"

And yeah, it's that easy, in roughly 50% of cases. Specifically when your video's height *happens to be* divisible by 2. But if your height *happens to be* an odd number, hooo boy, ffmpeg does not get happy.

Can't it just automatically chop off the last row of pixels???

#linux #computers

The solution is to add a filter: -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2". I have apparently searched this before, the stackoverflow link was blue. But I don't get why it has to be so difficult to just convert webm to mp4 in 50% of cases...