<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 21 oct. 2020 05 h 30, Sang-Ho Yang <<a href="mailto:sea5727@naver.com">sea5727@naver.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. This is my first post.<br>
<br>
This is about change state and live source..<br>
<br>
this is my pipeline : <br>
rtpbin name=rtpbin filesrc name=filesrc_0 location=/home/me/FirstFile.wav ! <br>
wavparse name=wavparse_0 ! alawdec name=alawdec_0 ! amrnbenc ! rtpamrpay<br>
pt=104 !  rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink<br>
host=192.168.0.219 port=5000<br>
<br>
then I start state to "play"<br>
then I can play vlc with sdp <br>
and then I listen it! Good!!<br>
<br>
but<br>
<br>
I want change the filesrc_0 location=/home/me/FirstFile.wav to<br>
location=/home/me/SecondFile.wav<br>
<br>
therefore I change pipeline state to "ready" and then change location and<br>
then change pipeline state to "play".<br>
<br>
this rtp is sent but timestamp is reset.. ( because filesrc is non-live<br>
source right? )<br>
<br>
how can I change filesrc location?? <br>
<br>
I want to listen smoothly sound file1 -> file2<br>
<br>
thanks..<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">For the very simple case of playing one after another, you can use concat element. Just link all your sources to it, and concat will consume from each pads till EOS, and will fix the timestamp to be contiguous.</div><div dir="auto"><br></div><div dir="auto">You can also append more at runtime.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>