Page 1 of 1

Stream Webcam via RTSP via CLI

Posted: 10 Sep 2021 17:18
by ShawnD41
Hello All,

I'm trying to use VLC to stream my webcam using RTSP to another VLC client on my local LAN. This works perfectly if I use the stream wizard in the GUI. But, I want to script this out via a simple batch script so that this can be repeated and users to do have to go through the wizard every time.

This is on Win 10 and VLC version is 3.0.16

Here's my working script:
@echo off
cd "C:\Program Files (x86)\VideoLAN\VLC\"
start "" vlc.exe "dshow:// --dshow-udev="Integrated Webcam --sout=#transcode{vcodec=theo,vb=800,acodec=vorb,ab=129,channels=2,samplerate=44100, scodec=none} --duplicate{dst=rtp{spd=rtsp://:8554/webcam}, dst=display} --no-sout-all --sout-keep"
exit

When I run this the stream starts from the source, but the client cannot connect. Am I missing something?

Re: Stream Webcam via RTSP via CLI

Posted: 10 Sep 2021 18:22
by RĂ©mi Denis-Courmont
Quoting seems very wrong

Re: Stream Webcam via RTSP via CLI

Posted: 13 Sep 2021 13:52
by ShawnD41
I tried with and without quotes, but I get the exact same results.