[Bug 655276] New: simple_seek is not accurate at sample level for audio

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jul 25 08:53:02 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=655276
  GStreamer | don't know | 0.10.34

           Summary: simple_seek is not accurate at sample level for audio
    Classification: Platform
           Product: GStreamer
           Version: 0.10.34
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: don't know
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: kkb110 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


this function is expected to seek to the requested position accurately,

#python2
seek_simple(gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH | gst.SEEK_FLAG_ACCURATE,
sample)

attached python script generates test wav, flac, ogg, mp3 files and reports if
seeking is correctly done.

#sample output in my machine.

wav
requested    buffer_timestamp_to_sample    actual
    44100                       44100.0     44100
    49100                 49100.0000085     49100
    54100                  54100.000017     54100
    59100                 59100.0000255     59100
    64100                  64100.000034     64100
    69100                 69100.0000425     69100
    74100                 74100.0000069     74100
    79100                 79100.0000154     79100
    84100                 84100.0000239     84100

flac
requested    buffer_timestamp_to_sample    actual
    44100                 41470.9999767     41472
    49100                 46078.9999803     46080
    54100                 50686.9999839     50688
    59100                 55294.9999875     55296
    64100                 59902.9999911     59904
    69100                 64510.9999947     64512
    74100                 73726.9999578     73728
    79100                 78334.9999614     78336
    84100                  82942.999965     82944

ogg
requested    buffer_timestamp_to_sample    actual
    44100                       44100.0     44100
    49100                 49099.9999644     49100
    54100                 54099.9999729     54099
    59100                 59099.9999814     59100
    64100                 64099.9999899     64100
    69100                 69099.9999984     69100
    74100                 74099.9999628     74099
    79100                 79099.9999713     79100
    84100                 84099.9999798     84099

mp3
requested    buffer_timestamp_to_sample    actual
    44100                       44100.0     44101
    49100                 49099.9999644     49100
    54100                 55295.9979264        -1
    59100                 59099.9999814     59100
    64100                 66815.9974944     66816
    69100                 77183.9971056        -1
    74100                 74099.9999628     74101
    79100                 79099.9999713     79101
    84100                 84099.9999798     84101


column explanation (the unit of position is sample)

requested : requested seek position
buffer_timestamp_to_sample : buffer's timestamp position, (converted to sample
unit)
actual : actual buffer.data 's position. -1 means it couldn't find the position
due to data mismatch.


#comment
only wav is successful in sample level accurate seek. Fix is needed for other
formats. I think it's the decoders problem.

-- 
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