[FFmpeg-devel] ffmpeg4iphone creating mp4 video from video frame

Stefano Marongiu smarongiu
Tue Jun 15 10:28:09 CEST 2010

"420v" (fourcc: NV12) is a bi-planar format while 420p is planar, you have
to use swscale to convert the colorspace or you can write your own
conversion routine.
take a look at these:




On Tue, Jun 15, 2010 at 4:49 AM, Daniel Sof <dsoffer86 at yahoo.com> wrote:

> Hello,
> I been trying to convert a video frame into few seconds  mp4 video using
> avlib, im using the sample provided in the source  output-example.c, I have
> a CVPixelBuffer with this pixel format :
>  kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', /* Bi-Planar
> Component Y'CbCr 8-bit 4:2:0, video-range (luma=[16,235] chroma=[16,240]).
> baseAddr points to a big-endian CVPlanarPixelBufferInfo_YCbCrBiPlanar struct
> */
> To encode it to video it requires YUV420P pixel format, is the above the
> same as ffmpegs YUV420P? If not how can i convert it? Any suggestions?
> Thanks
> Daniel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list