After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690465 - alsasrc: all timestamps are 0
alsasrc: all timestamps are 0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal critical
: 1.0.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 692067 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-12-18 23:42 UTC by Tim-Philipp Müller
Modified: 2013-01-22 17:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim-Philipp Müller 2012-12-18 23:42:49 UTC
$ gst-launch-1.0 alsasrc num-buffers=10 ! queue ! fakesink silent=false -v | grep chain
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: 0:00:00.000000000, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 0, offset_end: 441, flags: 00000040 discont ) 0x2010070
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 441, offset_end: 882, flags: 00000000 ) 0x2010180
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 882, offset_end: 1323, flags: 00000000 ) 0x2010290
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 1323, offset_end: 1764, flags: 00000000 ) 0x20103a0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 1764, offset_end: 2205, flags: 00000000 ) 0x20104b0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 2205, offset_end: 2646, flags: 00000000 ) 0x20105c0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 2646, offset_end: 3087, flags: 00000000 ) 0x20106d0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 3087, offset_end: 3528, flags: 00000000 ) 0x20107e0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 3528, offset_end: 3969, flags: 00000000 ) 0x20108f0
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = chain   ******* (fakesink0:sink) (1764 bytes, dts: none, pts: 0:00:00.000000000, duration: 0:00:00.010000000, offset: 3969, offset_end: 4410, flags: 00000000 ) 0x2010a00
Comment 1 Tim-Philipp Müller 2012-12-18 23:52:22 UTC
Possibly alsasrc goes through pulseaudio in this case.

Equally broken is this:


$ gst-launch-1.0 alsasrc device=hw:0 num-buffers=10 ! queue ! fakesink silent=false -v | grep chain | colrm 1 118 | sed -e 's/flags.*//'
pts: 4:26:04.023490333, duration: 0:00:00.010000000, offset: 0, offset_end: 441, 
pts: 4:26:04.033491043, duration: 0:00:00.010000000, offset: 441, offset_end: 882, 
pts: 4:26:04.043490918, duration: 0:00:00.010000000, offset: 882, offset_end: 1323, 
pts: 4:26:04.053492106, duration: 0:00:00.010000000, offset: 1323, offset_end: 1764, 
pts: 4:26:04.063490601, duration: 0:00:00.010000000, offset: 1764, offset_end: 2205, 
pts: 4:26:04.073493116, duration: 0:00:00.010000000, offset: 2205, offset_end: 2646, 
pts: 4:26:04.083487280, duration: 0:00:00.010000000, offset: 2646, offset_end: 3087, 
pts: 4:26:04.093505589, duration: 0:00:00.010000000, offset: 3087, offset_end: 3528, 
pts: 4:26:04.103504973, duration: 0:00:00.010000000, offset: 3528, offset_end: 3969, 
pts: 4:26:04.113506658, duration: 0:00:00.010000000, offset: 3969, offset_end: 4410,
Comment 2 Wim Taymans 2012-12-20 15:49:58 UTC
commit fe9345719159af6e253f9314ede1caf028aa4d5a
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Thu Dec 20 16:42:42 2012 +0100

    audioclock: mark as using some other clock
    
    We need to mark our clock as using some other clock source. Alsa source uses the
    clock type to decide if it can use alsa driver timestamps or not.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=690465
Comment 3 Tim-Philipp Müller 2013-01-22 17:07:11 UTC
*** Bug 692067 has been marked as a duplicate of this bug. ***