[Ffmpeg-devel] Input image format for encoding...

Mat heavensdoor78
Tue Sep 20 12:47:39 CEST 2005


>4:2:0 planar is 12 bits per pixel on average.  Each pixel has 8 bits of
>luminance, and for every four pixels there are 8 bits of each of Cr and Cb
>chrominance.  There are several possible ways the chroma samples can be
>placed relative to the luma samples.  Codec specs should say which variants
>they use.
>  
>
Yep.

Now I use:
+ FFMpeg: PIX_FMT_YUV420P
+ V4L (for testing): VIDEO_PALETTE_YUV420P
+ V4L2: V4L2_PIX_FMT_YUV420
+ SDL: SDL_YV12_OVERLAY

All works ok, yeah :)





More information about the ffmpeg-devel mailing list