Hi, Moritz,

Thank you!
I use -pix_fmt instead, and  it works as expected.



2015-03-14 18:22 GMT+08:00 Moritz Barsnick <[email protected]>:

> 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to