[FFmpeg-user] Raw YUV Conversion

Moritz Barsnick barsnick at gmx.net
Sat Sep 1 02:31:40 EEST 2018


On Fri, Aug 31, 2018 at 16:02:48 -0700, Chema Gonzalez wrote:
> $ ffmpeg -y -f rawvideo -pixel_format nv12 -s 1280x720 -i in.yuv -f
> rawvideo -pixel_format yuv420p out.yuv
[...]
> Getting the same file out doesn't seem right to me.
[...]
> Output #0, rawvideo, to 'out.yuv':
>   Metadata:
>     encoder         : Lavf56.40.101
>     Stream #0:0, 0, 1/25: Video: rawvideo, 1 reference frame (NV12 / 0x3231564E), nv12, 1280x720, 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc

Indeed. The issue is that you are trying to use "-pixel_format" as an
output option, but it is used by ffmpeg for input only. For specifying
the output format, use "-pix_fmt".

Cheers,
Moritz


More information about the ffmpeg-user mailing list