[Libav-user] Mapping / converting QTCapture's to FFmpeg's pixel format

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Feb 5 00:55:18 CET 2013

Brad O'Hearne <brado at ...> writes:

> "Bi-Planar Component Y'CbCr 8-bit 4:2:0, full-range 
> (luma=[0,255] chroma=[1,255]). baseAddr points to a 
> big-endian CVPlanarPixelBufferInfo_YCbCrBiPlanar struct."
> My code (heavily abridged for brevity) hits these high points: 
> NOTE: frameBufferAddress is a CVImageBufferRef received 
> from the QT capture callback: 
>     int returnVal = avpicture_fill((AVPicture*)avFrame, 
> frameBufferBaseAddress, PIX_FMT_YUV420P, width, height);

Could "biplanar" point to AV_PIX_FMT_NV12?
(Or something else that is not AV_PIX_FMT_YUV420P)

Carl Eugen

More information about the Libav-user mailing list