[FFmpeg-user] Save webcam stream in mpg, not avi format

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Aug 4 21:26:38 CEST 2015

Felix Baier <felixbaier-at-yahoo.de <at> ffmpeg.org> writes:

> If I understand correctly, the codec, not the container, 
> determines file size.


> Thus, is it possible to save in avi format, but use 
> a different codec that will generate smaller files?

Yes, try "-vcodec mpeg4 -qscale 2" or 
"-vcodec mpeg1video -mbd 2 -qscale 2" or use h264.

Carl Eugen

More information about the ffmpeg-user mailing list