thanks for the reply. I am doing the same by queueing the packet as described in dranger tutorial http://dranger.com/ffmpeg/ffmpegtutorial_all.html
The behaviour is somewhat different if i do not queue the packet. Are there any quirk i need to be aware of while pusing/pulling from queue ? Kindly help me. On Tue, May 27, 2014 at 4:12 PM, cyril poulet <[email protected]>wrote: > a packet rarely contains an entire frame. You have to feed the decoder > packets until a frame is finished. > frameFinished is the flag that tells you that a complete frame has been > gathered and decoded, and that you can now work on it > > However, seeing the number of messages you left recently, you might want > to find a tutorial instead of posting very simple questions... > > > 2014-05-27 12:34 GMT+02:00 cyril poulet <[email protected]>: > > a packet rarely contains an entire frame. You have to feed the decoder >> packets until a frame is finished. >> frameFinished is the flag that tells you that a complete frame has been >> gathered and decoded, and that you can now work on it >> >> >> 2014-05-26 10:36 GMT+02:00 sithruk sana <[email protected]>: >> >>> Dear all, >>> >>> I received a packet from rtsp by av_read_frame and decode it through >>> >>> avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet) >>> >>> After decoding i am checking the value of frameFinished. >>> >>> Most of the time i get the value of frameFinished is zero. May be around >>> 50% of the packet. >>> >>> >>> Can u hint me what could be the reason ? >>> >>> It is any way related to 'I', 'P', 'B' packet types ? >>> >>> >>> >>> >>> _______________________________________________ >>> Libav-user mailing list >>> [email protected] >>> http://ffmpeg.org/mailman/listinfo/libav-user >>> >>> >> > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
