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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Dima_Retunskiy
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel