python-opencv-gstreamer-examples icon indicating copy to clipboard operation
python-opencv-gstreamer-examples copied to clipboard

Get gstreamer logging Text from gst_device_to_rtp.py

Open BestITUserEUW opened this issue 4 years ago • 1 comments

Hey, i have a question do you know a way to get the Output of the gstreamer logging from the cv2.VideoWriter class. I want to wait till gstreamer Stream is Ready and then execute the Python Code that writes to gstreamer pipeline and also process Errors on gstreamer side if they appear.

BestITUserEUW avatar Jan 25 '22 10:01 BestITUserEUW

Hey, sorry for the late answer.

There is a way:

As stated in the gst-doc, the environment variable GST_DEBUG controls the level of debug.

I found the command export GST_DEBUG=4 as the most valuable, because it also prints warnings that may cause malfunctions in the gstreamer pipe. Put that command before you execute your scripts and a lot of (usable and unusable) output should appear.

Best

mad4ms avatar Mar 22 '22 07:03 mad4ms