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

Daniel Sof dsoffer86
Wed Jun 16 00:12:11 CEST 2010


So the biplanar format is PIX_FMT_NV12? if swscale says swScaler: nv12 is not supported as input pixel format
Cannot initialize the conversion context, guess there is no way to convert it using swscale?
Thanks 

--- On Tue, 6/15/10, Stefano Marongiu <smarongiu at betomorrow.com> wrote:

From: Stefano Marongiu <smarongiu at betomorrow.com>
Subject: Re: [FFmpeg-devel] ffmpeg4iphone creating mp4 video from video frame
To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu>
Date: Tuesday, June 15, 2010, 8:28 AM

"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:
http://blog.csdn.net/yiheng_l/archive/2009/01/15/3790219.aspx
http://www.fourcc.org/yuv.php#NV12

regards

-- 

Stefano

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
>
_______________________________________________
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