Limiting a RTSP recording after X seconds

Jesper Taxbøl jesper at taxboel.dk
Thu Nov 30 09:22:36 UTC 2017


Hi

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.

two.mkv:
    gst-launch-1.0 -ev \
        matroskamux name=mux ! filesink location=two.mkv \
        rtspsrc location=$(URLA) $(RTSPSRC_SETTINGS) ! \
        queue ! capsfilter caps="application/x-rtp,media=video" ! \
        rtph264depay ! h264parse ! mux.video_0 \
        rtspsrc location=$(URLB) $(RTSPSRC_SETTINGS) ! \
        queue ! capsfilter caps="application/x-rtp,media=video" ! \
        rtph264depay ! h264parse ! mux.video_1 & sleep 1800; kill -INT $$!

kind regards

jesper



On Nov 29, 2017 21:58, "Tim Müller" <tim at centricular.com> wrote:

> On Wed, 2017-11-29 at 20:57 +0000, Tim Müller wrote:
> > > I would like to stop the recording after 10 seconds so I can
> > > integrate the command in a Makefile, but cant seem to get my head
> > > around how.
>
> And I completely missed the second part which indicates that you want
> to use gst-launch for this. There is no easy way to do this with gst-
> launch currently, as far as I know. Write a little app/script around
> gst_parse_launch().
>
> Cheers
> -Tim
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171130/30407041/attachment.html>


More information about the gstreamer-devel mailing list