Stream Webcam via RTSP via CLI

About encoding, codec settings, muxers and filter usage
ShawnD41
New Cone
New Cone
Posts: 2
Joined: 10 Sep 2021 17:06

Stream Webcam via RTSP via CLI

Postby ShawnD41 » 10 Sep 2021 17:18

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Stream Webcam via RTSP via CLI

Postby Rémi Denis-Courmont » 10 Sep 2021 18:22

Quoting seems very wrong
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ShawnD41
New Cone
New Cone
Posts: 2
Joined: 10 Sep 2021 17:06

Re: Stream Webcam via RTSP via CLI

Postby ShawnD41 » 13 Sep 2021 13:52

I tried with and without quotes, but I get the exact same results.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests