Hi, all: I am using gstreamer to mix two audios, one is mix:sink-tts, the other is mix:sink-backgroundaudio, I have registered event and chain, but after mix:sink-tts chain get all data, it doesn't call the mix:sink-backgroundaudio. For the event I just call gst_pad_event_default for both GST_EVENT_CAPS and GST_EVENT_EOS. Any one can help on this, appreciate in advance. Below is the command and log I use: gst-launch-1.0 backgroundaudiomix name=mix volume=0.7 fadein-duration=3000 fadeout-duration=4000 concat name=c ! queue ! mix.sink-tts mix.src-mixed ! filesink location=output-poleli.wav filesrc location=./poleli/hello-raw.wav ! audioparse raw-format=s16le rate=16000 channels=1 ! audioconvert ! audioresample ! queue ! c. filesrc location=./poleli/music-3s-wav.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=1,rate=16000 ! queue ! mix.sink-backgroundaudio 0:00:00.020367838 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:299:gst_backgroundaudiomix_ttspad_event:<mix:sink-tts> gst_backgroundaudiomix_ttspad_event segment 0:00:00.020390838 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:304:gst_backgroundaudiomix_ttspad_event:<mix:sink-tts> ttspad segment base=0, offset=0, start=0, stop=18446744073709551615 0:00:00.020535738 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:351:gst_backgroundaudiomix_ttspad_chain:<mix> gst_backgroundaudiomix_ttspad_chain enter Pipeline is PREROLLED ... 0:00:00.067013124 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:326:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> gst_backgroundaudiomix_backgroundaudiopad_event stream-start Setting pipeline to PLAYING ... 0:00:00.067238525 11240 0x7fef3404e5e0 DEBUG audio-channel-mixer audio-channel-mixer.c:707:gst_audio_channel_mixer_setup_matrix: Matrix for 1 -> 1: { { 1.000000 } } New clock: GstSystemClock 0:00:00.067907626 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:351:gst_backgroundaudiomix_ttspad_chain:<mix> gst_backgroundaudiomix_ttspad_chain enter 0:00:00.068041026 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:351:gst_backgroundaudiomix_ttspad_chain:<mix> gst_backgroundaudiomix_ttspad_chain enter 0:00:00.068177326 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:326:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> gst_backgroundaudiomix_backgroundaudiopad_event caps 0:00:00.068312527 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:351:gst_backgroundaudiomix_ttspad_chain:<mix> gst_backgroundaudiomix_ttspad_chain enter 0:00:00.068373927 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:351:gst_backgroundaudiomix_ttspad_chain:<mix> gst_backgroundaudiomix_ttspad_chain enter 0:00:00.068412427 11240 0x1512800 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:299:gst_backgroundaudiomix_ttspad_event:<mix:sink-tts> gst_backgroundaudiomix_ttspad_event eos 0:00:00.068535027 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:326:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> gst_backgroundaudiomix_backgroundaudiopad_event segment 0:00:00.068581127 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:330:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> ttspad segment base=0, offset=0, start=0, stop=18446744073709551615 0:00:00.068610727 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:326:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> gst_backgroundaudiomix_backgroundaudiopad_event segment 0:00:00.068629627 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:330:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> ttspad segment base=0, offset=0, start=0, stop=18446744073709551615 0:00:00.068652827 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:326:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> gst_backgroundaudiomix_backgroundaudiopad_event segment 0:00:00.068670227 11240 0x15128a0 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:330:gst_backgroundaudiomix_backgroundaudiopad_event:<mix:sink-backgroundaudio> ttspad segment base=0, offset=0, start=0, stop=18446744073709551615 Got EOS from element "pipeline0". Execution ended after 0:00:00.001094202 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... 0:00:00.070237030 11240 0x1500b20 DEBUG backgroundaudiomix gstbackgroundaudiomix.c:283:gst_backgroundaudiomix_finalize:<mix> backgroundaudiomix gst_backgroundaudiomix_finalize start _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |