combine 2 vlc streaming operations

About encoding, codec settings, muxers and filter usage
cryypt
New Cone
New Cone
Posts: 2
Joined: 23 Feb 2023 20:56

combine 2 vlc streaming operations

Postby cryypt » 23 Feb 2023 22:25

I am trying to stream a camera to a browser. I have been successful in getting the stream to go to a video tag using 2 separate vlc operations:

i use the following on the camera device (pi4 running ubuntu 22.10):

libcamera-vid -t 0 --inline -o - | cvlc stream:///dev/stdin --sout '#rtp{dst=192.168.1.18,port=8554,sdp=rtsp://192.168.1.18:8080/cam.sdp}' :demux=h264

then, i use the following configuration on a mac to read that stream and convert to a format suitable http:

Image

Image

This setup actually works to serve the camera stream in a <video> tag in a browser

working on the assumption that it should be possible to collapse the 2 operations into one, i have tried various permutations similar to:

libcamera-vid -t 0 --inline -o - | cvlc stream:///dev/stdin --sout '#transcode{vcodec=h264,venc=theo}:standard{access=http,mux=ogg,dst=192.168.1.18:8080}'

this appears to send the stream fine, but the stream does not appear in the browser. The video element displays the 'spinner' then stops with the play button disabled. no errors show in the console.

Any help on how to convert the ui settings to the right cli command?

thanks in advance

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests