[FFmpeg-devel] h264 ts without timing and analyze duration
Matthew Eaton
ffm
Wed Dec 10 19:49:57 CET 2008
When processing an h264 (ts) stream without timing info (sps
timing_info_present_flag = 0), analyzeduration/max_analyze_duration is
not used in av_find_stream_info().
As a result, the analyze loop aborts when MAX_READ_SIZE is reached.
This takes much longer than the maximum analyze duration (about 20
seconds on a 2 megabit stream).
Attached is a patch that uses dts to estimate the elapsed duration
when the packet duration is unknown. It's less than optimal, but fps
has not been calculated/estimated at that point in the function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: analyze-dts.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081210/97788cac/attachment.bin>
More information about the ffmpeg-devel
mailing list