GNOME Bugzilla – Bug 590446
[mpegdemux] MPEG TS with A52 not seekable
Last modified: 2009-08-10 19:57:03 UTC
Since bug #584838 has been fixed, I have two MPEG TS (.ts.mpeg) files which are not seekable. VLC and MPlayer handle them fine. gst-typefind: video/mpegts, systemstream=(boolean)true, packetsize=(int)188 Commit 1f88ceeba8c908360d508cab5ee439eaff89309f in bad did not fix the problem.
Could you provide such an mpeg-ts file or give an URL to one? :) I guess a52dec doesn't forward the SEEKING query or something, will investigate later...
Ok, I can't find a reason why this fails just from looking at the code :) Could you provide a sample?
I have a sample file and apparently it really fails with latest core, even after commit 3f6e84ec6176ed9b2df7d180729cdf06412e6992 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Aug 5 09:36:00 2009 +0200 mpeg[pt]sdemux: Fix SEEKING query Send the BYTES based query downstream, not the orignal one.
Ok, there's a race condition here. The problem is, that the seeking query is handled before demux->bitrate is set to something useful and thus the seeking query returns seekable=FALSE. This fixes it: ommit 6115e0cb0ef3ae85397297c7e30c2e9b4a0a181e Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Sat Aug 8 22:14:53 2009 +0200 mpegtsdemux: Don't answer the SEEKING query if we don't know the answer yet A bitrate!=-1 is required for seeking but the bitrate is only calculated after the second PCR was read. Fixes bug #590446.
Confirmed, thanks!