Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 9122

Troubleshooting • Re: GStreamer root / sudo bug - app only work with sudo after recent update

$
0
0
Hi neilgl,

Thanks for the response. You're right, of course, that rpicam-focus only exists on my system. I mistakenly posted with a wrong context. It should have been rpicam-vid instead:

Code:

rpicam-vid --camera 1 -t 0 --qt-preview --info-text %focus --width 640 --height 480 --codec libav --libav-format mpegts --inline -o - | gst-launch-1.0 fdsrc fd=0 ! tsdemux ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.0.30 port=8554 sync=false
However, the problem is actually further back in the command line...

Code:

gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink
Through an RDP session, I can only run the command with sudo, otherwise my RDP session gets terminated. I don't even have an idea where to start looking for the solution.

sudo gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink

Code:

Leitung wird auf PAUSIERT gesetzt ...Authorization required, but no authorization protocol specifiederror: XDG_RUNTIME_DIR is invalid or not set in the environment.Authorization required, but no authorization protocol specifiedLeitung läuft vor …Kontext von Element »autovideosink0« erhalten: gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayGBM\)\ gldisplaygbm0";Leitung ist vorgelaufen …Leitung wird auf ABSPIELEN gesetzt ...Verzögerung neu verteilen …New clock: GstSystemClock^Chandling interrupt.Interrupt: Leitung wird gestoppt ...Execution ended after 0:00:11.742836002Leitung wird auf NULL gesetzt ...Leitung wird geleert ...

I've now connected a monitor and keyboard and when I run the command locally, the test image is displayed, but I also get some warnings and critical warnings issued.

admin@raspi5:~ $ gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink

Code:

Xlib:  extension "DRI2" missing on display ":1".Xlib:  extension "DRI2" missing on display ":1".(gst-plugin-scanner:2738): GLib-GObject-WARNING **: 12:42:38.453: cannot register existing type 'GstRtpSrc'(gst-plugin-scanner:2738): GLib-GObject-CRITICAL **: 12:42:38.453: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed(gst-plugin-scanner:2738): GLib-CRITICAL **: 12:42:38.453: g_once_init_leave: assertion 'result != 0' failed(gst-plugin-scanner:2738): GStreamer-CRITICAL **: 12:42:38.453: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed(gst-plugin-scanner:2738): GLib-GObject-WARNING **: 12:42:38.453: cannot register existing type 'GstRtpSink'(gst-plugin-scanner:2738): GLib-GObject-CRITICAL **: 12:42:38.453: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed(gst-plugin-scanner:2738): GLib-CRITICAL **: 12:42:38.453: g_once_init_leave: assertion 'result != 0' failed(gst-plugin-scanner:2738): GStreamer-CRITICAL **: 12:42:38.453: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failedLeitung wird auf PAUSIERT gesetzt ...Leitung läuft vor …Leitung ist vorgelaufen …Leitung wird auf ABSPIELEN gesetzt ...New clock: GstSystemClockVerzögerung neu verteilen …^Chandling interrupt.Interrupt: Leitung wird gestoppt ...Execution ended after 0:01:23.062093793Leitung wird auf NULL gesetzt ...Leitung wird geleert ...

Statistics: Posted by kletternaut — Sun Jun 01, 2025 11:06 am



Viewing all articles
Browse latest Browse all 9122

Trending Articles