[Libav-user] Saving frame to file

Jorge Lúcio jlucio88 at gmail.com
Sun May 4 20:21:40 CEST 2014


I was using the "-pix_fmt rgb24" option, so I thought the frame was already
RGB. Probably this conversion only takes place after the filter phase.
Thanks for the tip, now I'll try to write my own function considering this.


2014-05-03 20:06 GMT-03:00 Gonzalo Garramuno <ggarra13 at gmail.com>:

> On 03/05/14 17:21, Jorge Lúcio wrote:
>
>  The output could be BMP or PNG. I've tried to write my own function, but
>> so far the best I could do was to write a black and white version of the
>> frame. It's hard to figure out how the image data is stored on the "data"
>> field inside the AVFrame.
>>
>
> There isn't a function to do what you want, albeit you can use the ffmpeg
> utility to do the conversion for you.
> The data is stored as specified in AVCodecContext->pix_fmt.  In principle
> this means some form of YUV (YUV422 or YUV444 usually). Your white image is
> probably the first luminance channel you extract from the file (Y).
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140504/3de07925/attachment.html>


More information about the Libav-user mailing list