<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">you should read the gstreamer doc available at its website!!!<div><span><div style="background-color:transparent;"><br></div></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">De :</span></b> Lautaro Woites <lauchapc87@gmail.com><br> <b><span style="font-weight: bold;">À :</span></b> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Mercredi 11 septembre 2013 17h01<br> <b><span style="font-weight: bold;">Objet :</span></b> how to change sources while pipeline is on PLAYING
state?<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1610019610"><div dir="ltr">Hi all again.<br><br>I'm using gstreamer 0.10.36 and I have a pipeline like this:<br><br>filesrc ! decodebin2 ! valve ! queue2, ! videorate ! video_scale ! xvimagesink<br><br>I'm trying to change the filesrc/decoder when the pipeline is on PLAYING state. I've tried the following:<br>
<br>1) create the new filesrc and decoder<br><br>2) close the valve<br><br>3) set filesrc and decoder on NULL state<br><br>4) remove the filesrc and decoder from the pipeline<br><br>5) add the new filesrc and decoder to the pipeline<br>
<br>6) link them and set to playing<br><br>This doesn't work for me (the video freezes when I remove the filesrc).<br><br>I've also tried to send a FLUSH_STOP event before step 6). This work better but:<br><br>* The sources have started to change but they hasn't started from the beginning. For example, if I change the filesrc in second 10, the new filesrc starts playing from second 10.<br>
<br>* and almost in every source change the video freezes notoriously<br><br>I still don't know if this the correct/standard way to do this. Can someone help me? <br><br> Thanks in advance<div style="margin:0px;text-indent:0px;">
<style type="text/css">#yiv1610019610 p, #yiv1610019610 li {white-space:pre-wrap;}
</style></div></div>
</div><br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br></div> </div> </div> </div></body></html>