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

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Aug 5 17:45:16 CEST 2015

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

>     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422

I should add that "-vcodec mpeg4 -qscale 2" is not lossless 
and does not even keep the chroma subsampling of 4:2:2.
You could test "-vcodec mpeg2video -pix_fmt yuv422p 
-qscale 2 -mbd 2" but I am not sure if WMP supports 
decoding yuv422 mpeg2video.
The files are supposed to be bigger but higher quality 
if your input is really 4:2:2.

H.264 can do 4:2:2 but WMP does not support decoding 
it afair.

Carl Eugen

More information about the ffmpeg-user mailing list