[Bug 764120] concat cut off 2 seconds of second input
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Mar 24 09:34:04 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=764120
--- Comment #3 from Topolsky <otopolsky at gmail.com> ---
I just found out that this is not caused by concat but by alsasink itself.
It is reproducible with this pipeline:
gst-launch-1.0 filesrc location=/tmp/t.wav ! wavparse ! queue name=qsink !
identity silent=false name=insink ! alsasink -v buffer-time=1000000 sync=false
Or this simpler pipeline (but harder to check if the cutoff happend):
gst-launch-1.0 audiotestsrc num-buffers=200 ! queue name=qsink ! identity
silent=false name=insink ! alsasink -v buffer-time=1000000 sync=false
This is the end of processing pipeline (identity debug logs).
We see that last buffer was 05.00 the pipeline however played only for ~ 3
seconds:
/GstPipeline:pipeline0/GstIdentity:insink: last-message = chain *******
(insink:sink) (4096 bytes, dts: none, pts:0:00:04.620770975, duration:
0:00:00.023219954, offset: 203776, offset_end: 204800, flags: 00000000 )
0x7f52c80168f0
/GstPipeline:pipeline0/GstIdentity:insink: last-message = event *******
(insink:sink) E (type: eos (28174), ) 0x237a6e0
Got EOS from element "pipeline0".
Execution ended after 0:00:02.911121411
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
I see in logs that the buffers were commited into ringbuffer, but suddenly the
ringbuffer was "starting ringbuffer" and the elements were going to pause
state.
0:00:02.956686797 29179 0x2382190 DEBUG audiobasesink
gstaudiobasesink.c:2174:gst_audio_base_sink_render:<alsasink0> wrote 1024 of
1024 0:00:04.620770975
0:00:02.956692797 29179 0x2382190 DEBUG audiobasesink
gstaudiobasesink.c:2206:gst_audio_base_sink_render:<alsasink0> next sample
expected at 216274
0:00:02.956739505 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:912:gst_audio_ring_buffer_start:<audiosinkringbuffer0>
starting ringbuffer
0:00:02.956743747 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:929:gst_audio_ring_buffer_start:<audiosinkringbuffer0> was
not stopped, try paused
0:00:02.956746429 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:937:gst_audio_ring_buffer_start:<audiosinkringbuffer0> was
not paused, must have been started
0:00:02.956750747 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:912:gst_audio_ring_buffer_start:<audiosinkringbuffer0>
starting ringbuffer
0:00:02.956753360 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:929:gst_audio_ring_buffer_start:<audiosinkringbuffer0> was
not stopped, try paused
0:00:02.956755822 29179 0x2382190 DEBUG ringbuffer
gstaudioringbuffer.c:937:gst_audio_ring_buffer_start:<audiosinkringbuffer0> was
not paused, must have been started
0:00:02.956772776 29179 0x2382190 INFO task
gsttask.c:315:gst_task_func:<qsink:src> Task going to paused
0:00:02.956834841 29179 0x2174e00 DEBUG audiobasesink
gstaudiobasesink.c:575:gst_audio_base_sink_get_time:<alsasink0> processed
samples: raw 172872, delay 44381, real 128491, time 0:00:02.913
628117
0:00:02.956855473 29179 0x2174e00 INFO GST_STATES
gstbin.c:2243:gst_bin_element_set_state:<alsasink0> current PLAYING pending
VOID_PENDING, desired next PAUSED
0:00:02.956866248 29179 0x2174e00 LOG ringbuffer
gstaudioringbuffer.c:1951:gst_audio_ring_buffer_may_start:<audiosinkringbuffer0>
may start: 0
0:00:02.956870062 29179 0x2174e00 DEBUG ringbuffer
gstaudioringbuffer.c:991:gst_audio_ring_buffer_pause_unlocked:<audiosinkringbuffer0>
pausing ringbuffer
0:00:02.956872926 29179 0x2174e00 DEBUG ringbuffer
gstaudioringbuffer.c:1001:gst_audio_ring_buffer_pause_unlocked:<audiosinkringbuffer0>
signal waiter
0:00:02.956875665 29179 0x2174e00 DEBUG audiosink
gstaudiosink.c:553:gst_audio_sink_ring_buffer_pause:<alsasink0> reset...
--
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