How can I make make the gstreamer plugin appsink work with a pipeline using Python?
The attached code is supposed to stream the camera image over UDP to a given IP address. That codes works IF the line 98 (pipeline.add(appsink)) is removed. And by work I mean: I can receive the images on the host using the following gst pipeline:
gst-launch-1.0.exe -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
However the callback that was defined is not called (i.e. I can’t see the “new sample” prints on the console)
As soon as the appsink element is added to the pipeline (uncommenting line 98), the program runs fine (no gst errors) but I don’t receive any images on the host side
It looks like adding the appsink to the pipeline stalls the whole pipeline, but no errors are show
Any input will be greatly appreciated!
simple_camera.py (3.4 KB)