GNOME Bugzilla – Bug 549208
[mpeg2dec] Should put timestamps on all frames
Last modified: 2012-11-25 16:50:39 UTC
Hi, mpeg2dec currently doesn't put timestamps on all frames in some situations. For example mpegdemux/dvddemux don't put timestamps on every packet they output and if they don't put a timestamp on the first packet mpeg2dec will decode it but only start putting valid timestamps on the output after the first timestamp was sent by dvddemux/mpegdemux. This OTOH confuses encoders like theoraenc and makes it impossible to mux the output into Ogg as there won't be valid GP times.
What shall we do then ? Keep decoded buffers (up to a wise limit) until we get an incoming buffer with timestamp and then output properly timestampped buffers ?
Yes, at least that's what thaytan and ds said on IRC
Does the video decoder base class handle this now? If not, should it be moved there?
From the looks of it the video decoder base class tries reasonably hard to ensure this, so closing. Please re-open if this is still an issue.