<div dir="ltr"><div><div>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.<br><br></div>Best wishes,<br></div>Sergey<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/11 Ramu Chakravadhanula <span dir="ltr"><<a href="mailto:boys21century@gmail.com" target="_blank">boys21century@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
okay. <div><br></div><div>1. decode the png using ac_codec_id_png </div><div>2. give this raw information to encoder. is it like this?</div><div><br></div><div>/Boys21</div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">
On 11 June 2013 09:10, Sergey Fedorov <span dir="ltr"><<a href="mailto:night.rain.whisper@gmail.com" target="_blank">night.rain.whisper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br></div>I think you should first decode raw image data from PNG file. There is AV_CODEC_ID_PNG in libavcodec.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/10 Ramu Chakravadhanula <span dir="ltr"><<a href="mailto:boys21century@gmail.com" target="_blank">boys21century@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<div><br></div><div>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 ?</div>



<div><br></div><div>Thanks and Regards,</div><div>Boys21.</div><div><br></div>
<div><br></div><div><br></div>
<br></div></div>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>