[FFmpeg-devel] [PATCH] do not let claculated dts jump back

Michael Niedermayer michaelni at gmx.at
Sat Feb 22 03:53:22 CET 2014


On Fri, Feb 21, 2014 at 04:08:55PM +0000, Rainer Hochecker wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > 
> > On Fri, Feb 21, 2014 at 07:04:54AM +0000, Rainer Hochecker wrote:
> > > Michael Niedermayer <michaelni <at> gmx.at> writes:
> > > 
> > > > 
> > > > this segfaults with make fate
> > > > 
> > > > and where can i find a mpeg ts file that needs this ?
> > > > 
> > > > [...]
> > > 
> > > This sample shows the issue:
> > > https://dl.dropboxusercontent.com/u/47522966/dts_problem_gotham.m2ts
> > 
> > seems this is 404
> > 
> > --2014-02-21 16:01:16-- 
> https://dl.dropboxusercontent.com/u/47522966/dts_problem_gotham.m2ts
> > Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)...
> 54.243.117.85
> > Connecting to dl.dropboxusercontent.com
> (dl.dropboxusercontent.com)|54.243.117.85|:443... connected.
> > HTTP request sent, awaiting response... 404 NOT FOUND
> > 
> > [...]
> 
> Sorry, was renamed:
> https://dl.dropboxusercontent.com/u/47522966/issue1.m2ts

ok, from a quick look, the problem seems to be that the
num_reorder_frames value from the SPS is "wrong" or rather the file
was muxed as if it had a different value.
this value is also in delay = st->codec->has_b_frames;
and used from there

can you confirm that setting this to 1 fixes the issue for this file?
ive only manually looked at a few dts and they looked ok

also if the hypothesis is correct and the "delay" value is wrong then
one solution would be to detect this and adjust the delay value
cliping the dts seems rather hackish to me

also i suspect reverting 4eb49fdde8f84d54a763cfb5d355527b525ee2bf / 2ba68dd044ca8fc591139c05563840f546a9c0c0 / feba750dcd49e8410a4abaf3fbcc0554452206bc
might fix this as well

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

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140222/b020c4a3/attachment.asc>


More information about the ffmpeg-devel mailing list