<DIV><FONT color=#000080>i think you can consider av_parser_parse2 function</FONT><BR></DIV>
<DIV><BR></DIV>
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------ Original ------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From: </B> "Robert Krüger"<krueger@lesspain.de>;</DIV>
<DIV><B>Date: </B> Thu, Feb 28, 2013 05:27 PM</DIV>
<DIV><B>To: </B> "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."<libav-user@ffmpeg.org>; <WBR></DIV>
<DIV></DIV>
<DIV><B>Subject: </B> [Libav-user] Fastest possible stream parsing</DIV></DIV>
<DIV><BR></DIV>Hi,<BR><BR>what is the fastest possible way to retrieve things like frame type<BR>information with ffmpeg api? I would like to write code that does<BR>things like<BR>- retrieve frame type information (I,B,P) for an MPEG2 stream<BR>- retrieve keyframe positions for H.264 (for formats that do not store<BR>this info in the container or where no index is implemented in<BR>libavformat)<BR><BR>The only thing I found was setting the two AVCodecContext fields<BR>skip_idct and skip_loop_filter to AVDISCARD_ALL but the speed gains<BR>were only around 5% in my tests, so I would assume there is still a<BR>lot of decoding happening. Is there any way to suppress the actual<BR>decoding of picture data and just parse e.g. a transport stream and<BR>metadata in the bitstream with public API?<BR><BR>Thanks,<BR><BR>Robert<BR>_______________________________________________<BR>Libav-user mailing list<BR>Libav-user@ffmpeg.org<BR>http://ffmpeg.org/mailman/listinfo/libav-user<BR>
<DIV></DIV>