[FFmpeg-devel] [PATCH] stop av_find_stream_info per packet dts

Michael Niedermayer michaelni
Sun Mar 15 04:33:36 CET 2009


On Sat, Mar 14, 2009 at 08:25:25PM -0700, Baptiste Coudurier wrote:
> Hi
> 
> It seems stopping av_find_stream_info by packet duration causes a
> problem when a packet with long duration (still image, sub) is very long.
> 
> Scenario:
> 1 video stream containing a single image with very long duration
> 1 video stream cfr.
> 
> Demuxing will happen in this order since dts are in this order.
> 
> av_find_stream_info will stop after the single image, while the next
> packet dts will still be < max analyze duration.
> 
> I'd like your opinion on this I don't know if this might have side effects.

i think the idea is good but dts might not start at 0 (cut mpeg-ps/ts being
an example)
also before you write a patch that sums dts differences, this can break
with timestamp discontinuities.
maybe something like using the previous sum of durations for each stream
instead of the latest?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090315/7482e52a/attachment.pgp>



More information about the ffmpeg-devel mailing list