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

2013-06-10 Thread Ramu Chakravadhanula
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 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 Chak

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

2013-06-10 Thread Sergey Fedorov
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 > 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 > cou

Re: [Libav-user] Getting Video Information

2013-06-10 Thread Sergey Fedorov
Hi, Try to use avformat_find_stream_info() . 2013/6/11 thanh nhan thanh nhan > Hi everyone, > I am developing an video app using ffmpeg libs. After open video file by > using avformat_open_input() fu

[Libav-user] Getting Video Information

2013-06-10 Thread thanh nhan thanh nhan
Hi everyone, I am developing an video app using ffmpeg libs. After open video file by using avformat_open_input() function, i try to get the video information such as: total number of frames, frame rate.. But there is no such field in AVcodeccontext, AVStream, AVformatcontext... I hopely get advi

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
Also - av_parser_parse2 doesnt seem to like out of order NAL packets - is this also a known issue? On Mon, Jun 10, 2013 at 3:43 PM, Faraz Khan wrote: > So I got the decoder to work with the parser! It was a bug on my end - > However it still seems that the parser waits for the entire frame to

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
So I got the decoder to work with the parser! It was a bug on my end - However it still seems that the parser waits for the entire frame to complete and then sets an outsize? Is this intentional? Is it possible to decode a single NALU? On Mon, Jun 10, 2013 at 2:57 PM, Faraz Khan wrote: > So th

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
So the keyframe cannot be fed to the decoder one nal at a time? Is that what you are suggesting? On Mon, Jun 10, 2013 at 2:40 PM, Andy Shaules wrote: > I always had to decode from the latest key frame up to the desired > stream time nal, > > > On 6/10/2013 2:36 PM, Faraz Khan wrote: > > Hi a

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Andy Shaules
I always had to decode from the latest key frame up to the desired stream time nal, On 6/10/2013 2:36 PM, Faraz Khan wrote: Hi all, I'm trying to use ffmpeg as a decoder for a real-time x264 stream that I'm generating. It works fine if I try to decode entire frames, but if I try to decode a s

[Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
Hi all, I'm trying to use ffmpeg as a decoder for a real-time x264 stream that I'm generating. It works fine if I try to decode entire frames, but if I try to decode a single NALU the decoder errors out saying 'no frame'. I've tried using the parser (av_parser_parse2) but the h264 decoder doesnt se

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

2013-06-10 Thread Ramu Chakravadhanula
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 Re