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

Michel Bardiaux mbardiaux
Tue Sep 20 11:25:29 CEST 2005


Mat wrote:
> 
> Michel Bardiaux wrote:
> 
>> A note of caution: YUV is rather vague. 
> 
> 
> Yep.
> Many standards.
> 
>> What you need is YUV420P which is: HEIGHT lines of WIDTH bytes of 
>> luminance, followed by HEIGHT/2 lines of WIDTH/2 bytes of chrominance 
>> (I can never remember if its Cr or Cb), followed by the same for the 
>> other chrominance.
> 
> 
> 4:2:0 planar - 2 bytes per pixel

No, 1.5 bytes per pixel.

> 
>> If your grabber doesnt support that format, you have to use another 
>> one then use img_convert.
> 
> 
> Yep.
> Like in  output_example.c
> 
> But my grabber seems to like YUV too :)
> 


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/





More information about the ffmpeg-devel mailing list