[FFmpeg-user] [help] how to encode mpeg2 stream with pixel_format = yuv422?
linxs
linxsy at gmail.com
Sun Mar 15 15:13:35 CET 2015
Hi, Moritz,
Thank you!
I use -pix_fmt instead, and it works as expected.
2015-03-14 18:22 GMT+08:00 Moritz Barsnick <barsnick at gmx.net>:
> Hi linxs,
>
> On Sat, Mar 14, 2015 at 16:06:48 +0800, linxs wrote:
> > I try command like this:
> > ffmpeg -i xxxx.m2ts -c:v mpeg2video -pixel_format "yuv422p" out.mpg
>
> It helps if you show us the complete, uncut console output from your
> command.
>
> > but the output pixel format is always "yuv420".
>
> "-pixel_format" is an input option. You are looking for -pix_fmt.
>
> BTW, I see "-pixel_format" only documented for git, rawvideo,
> avfoundation and dshow. Why does ffmpeg not warn for other input
> formats/devices?
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list