i think you can consider av_parser_parse2 function
------------------ Original ------------------
From: "Robert Krüger"<[email protected]>;
Date: Thu, Feb 28, 2013 05:27 PM
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice
and libavfilter."<[email protected]>;
Subject: [Libav-user] Fastest possible stream parsing
Hi,
what is the fastest possible way to retrieve things like frame type
information with ffmpeg api? I would like to write code that does
things like
- retrieve frame type information (I,B,P) for an MPEG2 stream
- retrieve keyframe positions for H.264 (for formats that do not store
this info in the container or where no index is implemented in
libavformat)
The only thing I found was setting the two AVCodecContext fields
skip_idct and skip_loop_filter to AVDISCARD_ALL but the speed gains
were only around 5% in my tests, so I would assume there is still a
lot of decoding happening. Is there any way to suppress the actual
decoding of picture data and just parse e.g. a transport stream and
metadata in the bitstream with public API?
Thanks,
Robert
_______________________________________________
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