Wednesday, June 2, 2010

Convert mp4 to mpg

Use ffmpeg

ffmpeg -i strong.mp4 -ab 56 -ar 22050 -b 200  str.mpg

See explanation of the parameters in the post

But this gives a blocky ouput. To finely control the quality of the output use -qscale option. -qscale 1 gives best image quality 2 ,3 ... are progressively worse but generate files of smaller size. It is all a size and quality balancing game.

ffmpeg -i strong.mp4 -ab 56 -ar 22050 -qscale 6  str6.mpg

No comments:

Removing audio noise from a video

The basic steps are to extract the audio, remove noise, and then re-insert the noise-free audio back into the video wrapper. Step I: Ext...