<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div><div>I am recording a rtsp-stream to a segmented file using splitmuxsink and embedding some text overlay on it. </div>I am implementing this pipeline in the code:<br><br>gst-launch-1.0 rtspsrc location=rtsp://<a href="http://192.168.0.108/media/live/1/2">192.168.0.108/media/live/1/2</a> ! queue min-threshold-buffers=1 !\<br>rtph264depay ! h264parse ! avdec_h264 ! videorate ! videoscale ! capsfilter caps="video/x-raw,width=640,height=480,framerate=(fraction)15/1" ! textoverlay shaded-background=true font-desc=28 text=CAM0 halignment=left valignment=top ! \<br>clockoverlay shaded-background=true font-desc=28 time-format="%Y-%m-%d %H:%M:%S" halignment=right !\ <br>vaapipostproc ! vaapih264enc ! h264parse ! splitmuxsink location=video%02d.mov max-size-time=60000000000<br><br></div></div>I stop the pipeline by sending EOS to it. In message handler I set pipeline to NULL state, upon receiving EOS.<br>It is working fine.<br><br></div>Now I restart the pipeline by :<br><br></div>1. Unlinking all the previous elements:<br><div><br>gst_element_unlink_many(rtspSource,rtpDepay,h264Parse,avDecH264,videoBox,capsfilter,textOverlay,clockOverlay,videoConvert,videoEncode,splitSink,NULL);<br>gst_element_set_state (rtspSource, GST_STATE_NULL);<br>gst_element_set_state (rtpDepay, GST_STATE_NULL);<br><br><br></div><div>2. Relinking them again :<br></div><div>if(gst_element_link_many(rtpDepay,h264Parse,avDecH264,videoBox,capsfilter,textOverlay,clockOverlay,videoConvert,videoEncode,splitSink,NULL) != true)<br> {<br> g_print ("RTSP Elements could not be linked\n");<br> return;<br>}<br><div><div><div><div><div><div><br></div><div>3. Setting the pipeline to playing state :<br></div><div>gst_element_set_state (pipeline, GST_STATE_PLAYING);<br><br><br></div><div>The last step seems to block and does not start the pipeline. It continues to block.<br></div><div>Please help.<br></div><div><br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><span style="color:rgb(76,17,48)"><b><span style="background-color:rgb(180,95,6)"><span style="background-color:rgb(255,255,255)"><font size="4">Thanks & Regards,</font></span><span><br><br></span></span></b></span></span><div><span style="color:rgb(76,17,48)"><b><span style="background-color:rgb(180,95,6)"><span style="background-color:rgb(255,255,255)"><font size="4">Dilip Yadav </font></span></span><br></b></span></div><div><span style="color:rgb(76,17,48)"><b><font size="4">Embedded Software Enginee<span style="background-color:rgb(255,217,102)"><span></span></span>r</font><span style="background-color:rgb(53,28,117)"><span></span></span><br></b></span></div><div><span style="color:rgb(76,17,48)"><b><font size="4"><span style="background-color:rgb(255,255,255)">A. Paul In<span style="background-color:rgb(61,133,198)"><span></span></span>struments Pvt. Ltd.<br>Office: +911140524822,33 Mob: 09582153178</span><br>Website:<a href="http://www.apaulinstruments.in" target="_blank"> www.apaulinstruments.in</a></font></b><br></span></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>