How send EOS signal to gst-launc-1.0 pipeline?

Dima_Retunskiy dimaru2002 at mail.ru
Wed Aug 21 12:33:19 UTC 2019


Hi, I try record video from camera use Python, I try use subprocess to launch
pipeline:

cmd = "gst-launch-1.0 nvarguscamerasrc !
'video/x-raw(memory:NVMM),width=1280, height=720, framerate=120/1,
format=NV12' ! omxh264enc ! qtmux ! filesink location=test.mp4 -e"
pro = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True,
preexec_fn=os.setsid)
time.sleep(5)
os.killpg(os.getpgid(pro.pid), signal.SIGUSR2)

I send SIGUSR2 to close pipeline, but after this I can't open file test.mp4
How send EOS signal to the process?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list