I have an example gstreamer pipeline: gst-launch-1.0 v4l2src device=/dev/video2 ! image/jpeg,width=1280, height=800, framerate=30/1 ! v4l2jpegdec ! queue ! v4l2h264enc extra-controls="controls, h264_profile=4, video_bitrate=620000" ! 'video/x-h264, profile=high, level=(string)4' ! h264parse ! matroskamux ! filesink location=output2.mkv
That I run it from the command line. Instead of doing ctrl+c to kill the process, I want to send an EOS event to the process.
Is this possible? And if so, has anyone done it or what is the solution?
From the --help
output of gst-launch-1.0
:
-e, --eos-on-shutdown Force EOS on sources before shutting the pipeline down