GNOME Bugzilla – Bug 640950
mpegpsdemux: duration calculation on VBR file incorrect (and thus bad seeking)
Last modified: 2018-11-03 13:07:20 UTC
someone in launchpad is facing a problem with playing videos of variable bitrate. the length of the video is 46secs or so but sometimes totem shows it as if its a 11min video and such. attached a 15mb sample from the launchpad bug report. https://bugs.launchpad.net/ubuntu/+source/totem/+bug/200846/+attachment/1088223/+files/VBR.zip originally reported at: https://bugs.launchpad.net/ubuntu/+source/totem/+bug/200846
I'm not sure this is all due to bitrate at all, but the file being odd. The last SCR timestamp found in there is 1772, so a time of about 0.02 seconds. When playback encounters a larger SCR than the last one, I could set a flag to have further operations ignore that value as wrong, but that would still not fix seeking (except maybe in the first "part" of increasing SCRs). Though from the name, that file is apparently from a DVD, and not meant to be played "as is". It's quite possibly "bits" of streams concatenated together.
I can reproduce this bug with that sample file, but is it really a valid use case? It's a .vob file, it's not meant to be played like that. It's also reproducible in VLC.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/33.