I have a VLC instance running a broadcast/stream to the local network. It works well, but the problem is that it sometime glitches or crashes after hours of streaming, or ofc it closes when the PC reboots, so in that times I need to create again the broadcast from scratch, it's not efficient as it takes a minute to me.

So what I need for the problem is creating a some kind of profile, I thought. I googled and found a guy having the same issue to me Getting Stream Out settings to Save - The VideoLAN Forums, and I found that an other guy answered it with a CLI solution.

So I tried to construct a command, and tried to run it, but it didn't work.

C:\Program` Files\VideoLAN\VLC\vlc.exe --sout="#http{mux=ogg,dst=:18080/} :no-sout-all :sout-keep"

(Note that it's on Powershell, Windows 10)

Anyways to me it looks missing some information that need to have in the command line argument. I mean, for example where's the "audio device name" I set it to "Cable B Output"? Well, here the below is the steps I do to create the broadcast on the vlc GUI so you can reproduce:

Ctrl-S -> Capture Device -> Capture mode .. DirectShow, Video device name .. None, Audio device name .. Cable B Output -> Stream -> Next -> New destination .. HTTP -> Add -> Port .. 18080 -> Next -> Activate Transcoding .. uncheck -> Profile .. [encapsulation .. Ogg/Ogm, Audio .. MPEG Audio, 320kb/s, 2, 44100 Hz] -> Next -> Stream

So, what can I do to automate the steps through a command (or a profile or whatever)? Thanks.

VLC version: 3.0.18
OS: Windows 10
CLI: Powershell 5.1.19041.2364


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.