[Libav-user] generate encoded video file from .png files

Sergey Fedorov night.rain.whisper at gmail.com
Tue Jun 11 18:03:44 CEST 2013


Yes. I think you can use avformat_open_input_file() on png image to obtain
a properly initialized AVCodecContext. It could simplify the decoding
process.

Best wishes,
Sergey


2013/6/11 Ramu Chakravadhanula <boys21century at gmail.com>

> okay.
>
> 1. decode the png using ac_codec_id_png
> 2. give this raw information to encoder. is it like this?
>
> /Boys21
>
> On 11 June 2013 09:10, Sergey Fedorov <night.rain.whisper at gmail.com>wrote:
>
>> Hi,
>> I think you should first decode raw image data from PNG file. There is
>> AV_CODEC_ID_PNG in libavcodec.
>>
>>
>> 2013/6/10 Ramu Chakravadhanula <boys21century at gmail.com>
>>
>>> Hi,
>>>
>>> I have a series of png files and would like to encode them to a video
>>> file. most of the examples cover encoding a raw video file. However, I
>>> couldnt find one that covers using existing still images (especially PNG).
>>> Attached is the sample code that i found. can someone help me ?
>>>
>>> Thanks and Regards,
>>> Boys21.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
> _______________________________________________
> 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/20130611/ac8be276/attachment.html>


More information about the Libav-user mailing list