sending usb stream

*nix specific usage questions
xha1e
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2024 06:48

sending usb stream

Postby xha1e » 09 Mar 2024 00:21

Is there anything wrong with my vlc commands for sending and recieving a stream? I would like to send a usb camera stream from one Pi4 to another and view it on a screen. I was able to successfully encoder and decode the stream on teh same device (view the usb camera on the hdmi output of the same device), but cant seem to send it over the network. The pi4's are on the same network and can ping each other.

Encoder command to start stream on pi4-#1 with webcam attached:

Code: Select all

vlc -vvv v4l2:///dev/video0 --sout '#transcode{vcodec=h264,venc=x264{vf=scale=1},acodec=none}:rtp{dst=0.0.0.0,port=1234,sdp=rtsp://localhost:8080/test.sdp}'

Decoder command to view stream on pi4-#2 with hdmi screen attached:

Code: Select all

vlc rtsp://cm4-e45f01b6fd99.local:8080/test.sdp
Result:
vlc rtsp://cm4-e45f01b6fd99.local:8080/test.sdp
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00f87490] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[00f962e0] main interface error: no suitable interface module
[00f08b50] main libvlc error: interface "globalhotkeys,none" initialization failed
[00f08b50] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00fb9520] skins2 interface error: cannot initialize OSFactory
[00fb9520] [cli] lua interface: Listening on host "*console".
VLC media player 3.0.20 Vetinari
Command Line Interface initialized. Type `help' for help.
> Created new TCP socket 7 for connection
Created new TCP socket 7 for connection
[f1200a88] live555 demux error: Failed to connect with rtsp://cm4-e45f01b6fd99.local:8080/test.sdp
[f1202cc0] main stream error: connection failed: Connection refused
[f1202cc0] satip stream error: Failed to connect to RTSP server cm4-e45f01b6fd99.local:8080
[f1202cc0] main stream error: connection failed: Connection refused
[f1202cc0] access_realrtsp stream error: cannot connect to cm4-e45f01b6fd99.local:8080
[f1202cc0] main stream error: Connection failed
[f1202cc0] main stream error: VLC could not connect to "cm4-e45f01b6fd99.local:8080".
[f13006b0] main input error: Your input can't be opened
[f13006b0] main input error: VLC is unable to open the MRL 'rtsp://cm4-e45f01b6fd99.local:8080/test.sdp'. Check the log for details.

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests