[Ffmpeg-devel] Raw YUV video

Dan Maas dmaas
Mon Feb 20 23:09:33 CET 2006


>    How could i use ffmpeg to product raw yuv video from/to mpeg video?
> does the "-vcodec rawvideo" setting product yuv420 frame or RGB? Also
> how could i set ffmpeg to use raw file format?

ffmpeg recognizes the file extension ".yuv" as raw YUV (8-bit planar
Y'CbCr). You shouldn't need to specify "rawvideo", just give it a
filename with the ".yuv" extension.

If you are using .yuv as input, then you'll need to specify the frame
size and pixel format (e.g. -s 720x576 -pix_fmt yuv420p). If you are
using .yuv as output, the format will match the input codec as closely
as possible. (e.g., MPEG-2 will produce yuv420p, NTSC DV25 will
produce yuv411p, etc).

Regards,
Dan





More information about the ffmpeg-devel mailing list