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

Troubleshooting • Re: VLC and RTSP incompatibility

$
0
0
Error message from Jounactl:
Feb 10 13:27:27 picam5 systemd[1]: Starting vlc-autoplay.service - VLC autoplay...
Feb 10 13:27:47 picam5 systemd[1]: Started vlc-autoplay.service - VLC autoplay.
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642e7e9a0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642ebca00] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the followin>
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642ebca00] main interface error: no suitable interface module
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642dad530] main libvlc error: interface "dbus,none" initialization failed
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642e869b0] main interface error: no suitable interface module
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642dad530] main libvlc error: interface "globalhotkeys,none" initialization failed
Feb 10 13:27:47 picam5 cvlc[1257]: [0000555642e869b0] dummy interface: using the dummy interface module...
Feb 10 13:27:47 picam5 cvlc[1257]: [h264_v4l2m2m @ 0x7fff580486c0] Could not find a valid device
Feb 10 13:27:47 picam5 cvlc[1257]: [h264_v4l2m2m @ 0x7fff580486c0] can't configure decoder
Feb 10 13:27:47 picam5 cvlc[1257]: [00007fff58010580] avcodec decoder error: cannot start codec (h264_v4l2m2m)
Feb 10 13:27:47 picam5 cvlc[1257]: [h264_v4l2m2m @ 0x7fff580486c0] Could not find a valid device
Feb 10 13:27:47 picam5 cvlc[1257]: [h264_v4l2m2m @ 0x7fff580486c0] can't configure decoder
Feb 10 13:27:47 picam5 cvlc[1257]: [00007fff58010580] avcodec decoder error: cannot start codec (h264_v4l2m2m)
Feb 10 13:27:47 picam5 cvlc[1257]: error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Feb 10 13:27:47 picam5 cvlc[1257]: error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff40002610] gles2 generic error: parent window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff40002610] xcb generic error: window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] gles2 vout display error: parent window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] gl vout display error: parent window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] xcb vout display error: window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] xcb vout display error: window not available
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] drm_vout vout display: <<< OpenDrmVout: J420 1280x738(1280x720 @ 0,0 0/0) or 0, cfg.display: 1280x723, source: 1280x738(1280x720 >
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] drm_vout vout display error: Failed to get xlease
Feb 10 13:27:48 picam5 cvlc[1257]: [00007fff400013f0] drm_vout vout display error: Failed to open vc4
Feb 10 13:27:48 picam5 cvlc[1257]: Error opening terminal: unknown.
Feb 10 13:27:48 picam5 systemd[1]: vlc-autoplay.service: Main process exited, code=exited, status=1/FAILURE
Feb 10 13:27:48 picam5 systemd[1]: vlc-autoplay.service: Failed with result 'exit-code'.

Config.txt:
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Modified for ip camera via VLC

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
# dtoverlay=vc4-fkms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
# disable_fw_kms_setup=1 ************************* Not sure about this

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
[cm5]
dtoverlay=dwc2,dr_mode=host

vlc-autoplay.service
[Unit]
Description=VLC autoplay
After=network.target

[Service]
Environment=DISPLAY=:0
User=picam5
ExecStartPre=/bin/sleep 20
ExecStart=/usr/bin/cvlc rtsp://admin:Cessna210@192.168.1.94/Streaming/Channels/101
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

The project was to use the rpi to pickup the rtsp signal from one of my exterior ipcameras, and display it on my widescreen TV. The sad part about it was that I noticed that my apple TV offered a VLC app, which when programmed with the rtsp stream ( minus the 544) it came up immediately on the screen. Problem solved, but it still doesn't explain why the rpi can't or won't do the same thing!

Statistics: Posted by PilotPi — Tue Feb 10, 2026 4:17 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles