[FFmpeg-devel] [PATCH] MPEG-TS/-PS : better probing for duration and start-time for all streams in a container

Michael Niedermayer michaelni at gmx.at
Tue May 13 18:59:14 CEST 2014


On Tue, May 13, 2014 at 08:00:21AM +0000, Gaullier Nicolas wrote:
> [Sorry, I think you prefer patch in plain text in the body rather than attached in (I suppose) binary form. Here below]
> 
> Hello,
> In the MPEG2TS/PS containers, FFMPEG/FFPROBE does not report accurate duration and start time:
> 1- the duration does not take into account the duration of the last frame
> 2- the start time is taken from the first frame, but the lowest PTS is often found a bit later (commonly found on broadcast open GOP structures with the first frame not being a key frame)
> 3- depending on the file structure, one or several audio/video streams may have no information at all (the current implementation is focused on getting one single stream info; more stream info is 'welcome' but not required), The typical use case is where the video/audio delay is very high and the bitrate high too : the end of the file contains only audio frames and the current implementation does not try to 'look further' to get the video ptses.
> 
> Please review my patch - and be clement, I am not a developer and I only have a basic windows/mingw environment for testing with no FATE etc.

how can the problems this patch fixes be reproduced ?

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

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140513/8df3946a/attachment.asc>


More information about the ffmpeg-devel mailing list