[FFmpeg-user] [help] how to encode mpeg2 stream with pixel_format = yuv422?

Moritz Barsnick barsnick at gmx.net
Sat Mar 14 11:22:09 CET 2015


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


More information about the ffmpeg-user mailing list