[Libav-user] Encoding and Decoding Single Frames with libAV
Paul B Mahol
onemda at gmail.com
Thu Sep 5 19:02:12 CEST 2013
On 9/5/13, James Board <jpboard2 at yahoo.com> wrote:
>>>On 9/5/13, James Board <jpboard2 at yahoo.com> wrote:
>>> Is there a way to use libav to encode and decode a single frame of
>>> image data with a lossless codec such as ffvhuff? I know this can
>>> be done with video. But if I have a single frame of image data stored
>>> in a ppm or pnm file, can I read it into my libAV program, compress with
>>> the ffvhuff codec, and then write the compressed output to a file? And
>>> later, do the reverse?
>>
>>Not with ffvhuff (but it can be added), but with ffv1:
>>
>>ffmpeg -i input out%d.ffv1-img
>
> Thanks. Can I do it with the libav API?
Yes in several ways....
More information about the Libav-user
mailing list