[gstreamer-bugs] [Bug 318273] [audioscale] messed up timestamps
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon Oct 10 04:15:00 PDT 2005
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=318273
GStreamer | gst-plugins | Ver: 0.8.x
Tim-Philipp Müller changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
everconfirmed|0 |1
Summary|gstreamer cannot play some |[audioscale] messed up
|wave files |timestamps
------- Additional Comments From Tim-Philipp Müller 2005-10-10 11:14 -------
Thanks for the sample file.
In 0.8 it plays fine for me with osssink, but not with alsasink. In my setup it
turns out that the reason is that audioscale timestamps buffers wrongly (with
osssink audioscale just does pass-through, whereas for alsasink it has to
resample to 48000 for me).
Also plays fine with both alsasink and osssink in 0.9.
This is timestamping with audioscale in passthrough mode:
% gst-launch-0.8 -v filesrc location=pcm-mono-8kHz-bug318273.wav ! wavparse !
audioconvert ! audioscale ! 'audio/x-raw-int, rate=(int)8000, channels=(int)2,
endianness=(int)1234, width=(int)16, depth=(int)16' ! fakesink
timestamp: 0:00:00.000000000, duration: 0:00:00.256000000, offset: 44
timestamp: 0:00:00.256000000, duration: 0:00:00.256000000, offset: 4140
timestamp: 0:00:00.512000000, duration: 0:00:00.256000000, offset: 8236
timestamp: 0:00:00.768000000, duration: 0:00:00.256000000, offset: 12332
timestamp: 0:00:01.024000000, duration: 0:00:00.256000000, offset: 16428
timestamp: 0:00:01.280000000, duration: 0:00:00.256000000, offset: 20524
timestamp: 0:00:01.536000000, duration: 0:00:00.256000000, offset: 24620
timestamp: 0:00:01.792000000, duration: 0:00:00.256000000, offset: 28716
timestamp: 0:00:02.048000000, duration: 0:00:00.256000000, offset: 32812
timestamp: 0:00:02.304000000, duration: 0:00:00.256000000, offset: 36908
timestamp: 0:00:02.560000000, duration: 0:00:00.256000000, offset: 41004
timestamp: 0:00:02.816000000, duration: 0:00:00.256000000, offset: 45100
timestamp: 0:00:03.072000000, duration: 0:00:00.256000000, offset: 49196
timestamp: 0:00:03.328000000, duration: 0:00:00.256000000, offset: 53292
timestamp: 0:00:03.584000000, duration: 0:00:00.256000000, offset: 57388
timestamp: 0:00:03.840000000, duration: 0:00:00.256000000, offset: 61484
timestamp: 0:00:04.096000000, duration: 0:00:00.256000000, offset: 65580
timestamp: 0:00:04.352000000, duration: 0:00:00.256000000, offset: 69676
timestamp: 0:00:04.608000000, duration: 0:00:00.256000000, offset: 73772
timestamp: 0:00:04.864000000, duration: 0:00:00.256000000, offset: 77868
timestamp: 0:00:05.120000000, duration: 0:00:00.256000000, offset: 81964
timestamp: 0:00:05.376000000, duration: 0:00:00.256000000, offset: 86060
timestamp: 0:00:05.632000000, duration: 0:00:00.035250000, offset: 90156
This is timestamping with audioscale doing resampling:
% gst-launch-0.8 -v filesrc location=pcm-mono-8kHz-bug318273.wav ! wavparse !
audioconvert ! audioscale ! 'audio/x-raw-int, rate=(int)48000, channels=(int)2,
endianness=(int)1234, width=(int)16, depth=(int)16' ! fakesink
timestamp: 0:00:00.000000000, duration: 0:00:00.063748980, offset: -1
timestamp: 0:00:00.063748980, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.127747956, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.191746932, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.255745908, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.319744884, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.383743860, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.447742836, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.511741812, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.575740788, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.639739764, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.703738740, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.767737716, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.831736692, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.895735668, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:00.959734644, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.023733620, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.087732596, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.151731572, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.215730548, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.279729524, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.343728500, duration: 0:00:00.063998976, offset: -1
timestamp: 0:00:01.407727476, duration: 0:00:00.008812359, offset: -1
I wonder if this is also the cause for quite a few of the 'this files sounds
crap in alsasink' problems we're having.
Cheers
-Tim
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list