Getting Stream Out settings to Save

*nix specific usage questions
bucknasty72
New Cone
New Cone
Posts: 1
Joined: 29 Aug 2019 00:21

Getting Stream Out settings to Save

Postby bucknasty72 » 29 Aug 2019 00:28

I'm currently using VLC to multicast from a machine to a network of audio receivers. Everything works but when VLC is closed or the computer gets shutdown at the end of the night I have to re-create the stream the next day. Anyway to make VLC automatically resume its stream settings when it reopnes re-opens with same settings?

I can save a playlist and looking at the text file it seems like the :sout chain is embedded but console reads the following:
[0000000003d8cc00] main input error: unsafe option "sout-keep" has been ignored for security reasons

Here's my workflow:
Media -> Stream -> Add File -> Stream -> Add (RTP A/V Profile) -> Set multicast address -> Finish.

:sout=#transcode{vcodec=h264,acodec=mpga,ab=320,channels=2,samplerate=44100}:rtp{dst=225.0.0.1,port=5004,sap,name=MyStream} :no-sout-all :sout-keep

unidan
Developer
Developer
Posts: 1485
Joined: 25 Mar 2018 01:00

Re: Getting Stream Out settings to Save

Postby unidan » 29 Aug 2019 10:16

Hi, you could write this down in a bash file that you use for starting VLC ?

Code: Select all

SOUT_OPTS="#transcode{vcodec=h264,acodec=mpga,ab=320,channels=2,samplerate=44100}" SOUT_OPTS+=":rtp{dst=225.0.0.1,port=5004,sap,name=MyStream}" VLC_OPTS=" --no-sout-all" VLC_OPTS+=" --sout-keep" vlc --sout="${SOUT_OPTS} ${VLC_OPTS} playlist.m3u


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

Who is online

Users browsing this forum: No registered users and 3 guests