<div dir="ltr"><div dir="auto">Hi<div dir="auto"><br></div><div dir="auto">I spent some time today and figured out i can use use the following syntax in my makefile. Its actually the terminal sending a signal to kill the process.<br><div dir="auto"><br></div><div dir="auto">two.mkv:<br>    gst-launch-1.0 -ev \<br>        matroskamux name=mux ! filesink location=two.mkv \<br>        rtspsrc location=$(URLA) $(RTSPSRC_SETTINGS) ! \<br>        queue ! capsfilter caps="application/x-rtp,media=video" ! \<br>        rtph264depay ! h264parse ! mux.video_0 \<br>        rtspsrc location=$(URLB) $(RTSPSRC_SETTINGS) ! \<br>        queue ! capsfilter caps="application/x-rtp,media=video" ! \<br>        rtph264depay ! h264parse ! mux.video_1 & sleep 1800; kill -INT $$!<br></div></div><div dir="auto"><br><div>kind regards</div><div><br></div><div dir="auto">jesper</div><div dir="auto"><br></div><div dir="auto"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 29, 2017 21:58, "Tim Müller" <<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2017-11-29 at 20:57 +0000, Tim Müller wrote:<br>
> > I would like to stop the recording after 10 seconds so I can<br>
> > integrate the command in a Makefile, but cant seem to get my head<br>
> > around how.<br>
<br>
And I completely missed the second part which indicates that you want<br>
to use gst-launch for this. There is no easy way to do this with gst-<br>
launch currently, as far as I know. Write a little app/script around<br>
gst_parse_launch().<br>
<br>
Cheers<br>
-Tim<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
</blockquote></div></div>
</div>