GNOME Bugzilla – Bug 690465
alsasrc: all timestamps are 0
Last modified: 2013-01-22 17:07:11 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
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,
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
*** Bug 692067 has been marked as a duplicate of this bug. ***