[Libav-user] Saving frame to file
xenosender at gmail.com
Mon May 5 10:15:52 CEST 2014
You might find what you need by using openCV : AVframe can easily be
converted to opencv Mat, then a lot of tools are available
I'll admit, though, that it's a lot like using a hammer to crush your fly...
2014-05-04 20:21 GMT+02:00 Jorge Lúcio <jlucio88 at gmail.com>:
> 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
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user