Pause/Resume with adder

avinashgst aviec07 at gmail.com
Wed Oct 25 11:43:18 UTC 2017


Hi,

I have the pipeline in which need to mix 2 audio at run time.

when single file src1:
filesrc ! decodebin ! audioresample ! audioconvert ! (sink_0) adder !
audioconvert ! autoaudiosink

During runtime adding one more file src2:
filesrc ! decodebin ! audioresample ! audioconvert ! --->
                                                                              
(sink_0) (sink_01) adder ! audioconvert ! autoaudiosink
filesrc ! decodebin ! audioresample ! audioconvert !---->

This is working fine. 

To pause src1:
      unlinking audioconvert src and  sink_0 by gst_pad_unlink and called
gst_element_release_request_pad  for sink_0.
      and setting filesrc, decodebin, audioresample, audioconvert to
GST_STATE_PAUSE
Src2 is continue to play and its working as expected.

Now after some time wants to resume the src1 while src2 still playing.
filesrc ! decodebin ! audioresample ! audioconvert ! --->
                                                                              
(sink_01) (sink_02) adder ! audioconvert ! autoaudiosink
filesrc ! decodebin ! audioresample ! audioconvert !---->

          linked audioconvert src and  sink_2 by gst_pad_link and setting
filesrc, decodebin, audioresample, audioconvert to GST_STATE_PLAYING

In that case Src2 also stopped playing and getting underflow error.
>From gstreamer log its seems that src1 is not pushing any data after setting
elements to GST_STATE_PLAYING

Any suggestion how to achieve pause/resume operation with adder element.  

Regards,
Avinash


      







--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list