[Bug 692368] VBR mp3 files - query position not accurate

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jan 23 16:29:00 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=692368
  GStreamer | gst-plugins-ugly | 0.10.36

--- Comment #8 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-01-24 00:28:58 UTC ---
I didn't actually think this through properly. I said the end is when you get
EOS and that's it, but what you have is a very long song (e.g. a whole album),
and you want to stop at some pre-defined position when you know song #N is
finished, right? So knowing when the very end isn't particular useful.

What might work is to use SEGMENT seeks instead. You'd have to wait until
playbin reaches PAUSED, then you'd have to do a FLUSHING | ACCURATE seek with
both start and stop-position set. You will then get a SEGMENT_DONE message on
the bus when the parser has finished pushing the last mp3 frame containing the
last sample, and is ready for a new (non-flushing) seek to a different position
in the file. Which you can then do.

That solves seamlessly jumping to different bits within the same file without a
gap, but it won't help with switching to another file without a gap. Bug
#619864 might be of mild interest though (but also doesn't help, because
there's no API yet to tell playbin to start the next file from an offset).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list