[Ffmpeg-devel] Raw YUV video

François Revol revol
Thu Feb 23 10:28:39 CET 2006


> Thx Dan
>     What is the different between yuv420p and yuv420? what is the 'p' 
> stand for? Are there any reference on pixel format spec?

Planar.
each part is stored in a separate "plane" of memory, which is why 
FFPicture has 3 pointers.
instead of having:

p->data[0]:
[YUYUYU....]
[YVYVYV....]
3rd line...

you get:

p->data[0]:
[YYYY...]
[YYYY...]
...

p->data[1]:
[UUU...]
[UUU...]
...

p->data[2]:
[VVV...]
[VVV...]
...

>     If i want to use RGB pix_fmt , how could i set in ffmpeg?

You can try to set it before initializing the decoder, but most can 
actually only decode to YUV, and force the format back to their default 
(preferred).
You then have to convert it, there are some funcs for that in avcodec.h 
IIRC.

Fran?ois.





More information about the ffmpeg-devel mailing list