how to kindly stop a pipeline?
nicolas at ndufresne.ca
Sat Dec 24 11:57:25 UTC 2022
Le sam. 24 déc. 2022, 06 h 16, Maurizio via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> a écrit :
> Hi all, i have this pipeline to capture a live video source and a live
> audio source in an mkv file
> gst-launch-1.0.exe -v videotestsrc ! queue ! videoconvert ! mfh264enc
> bitrate=1024 ! h264parse ! mux. wasapisrc ! queue ! audioconvert ! opusenc
> ! opusparse ! matroskamux name=mux ! filesink location="E:\test.mkv"
> when I press CTRL+C on the console to stop the pipeline I get a corrupted
> mkv file. Some players do not open it at all, while VLC open it but it's
> not seekable. Audio and video are ok but probably the matroskamux is not
> finalizing the file.
gst-launch-1.0 have the -e parameter. This will send an EOS event on CTRL-C
and wait for the stream to terminate.
> How I can exit gst-launch in a kindly way, I mean I want the muxer to
> complete the file index and exit.
> Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel