Page 1 of 1

Save a input device capture in a .m3u file

Posted: 14 Jul 2022 17:15
by baj_be
I use VLC to stream my MacBook sound card as an HTTP stream. VLC recognizes the sound card if I install the Blackhole virtual audio driver. Streaming to HTTP is rather straightforward. In my case, I stream to localhost:8090. I further use Universal Media Server to stream the VLC HTTP stream to upnp devices or software (such as VLC installed on another computer in my network). This works well.

However, if I save my VLC playlist (that only contains the device capture) as a .m3u file, the latest doesn't work when I reload it later. Therefore, I have to reconfigure the input device capture each time I want to stream my sound card.

The content of the saved .m3u file is:

#EXTM3U
#EXTVLCOPT:sout=#transcode{acodec="mp3 ",ab=""}:standard{mux=ts,access=http,dst="localhost:8090"}
avaudiocapture://BlackHole2ch_UID

Is there something I can (manually) change in the m3u file to fix the problem ?

Bart

Re: Save a input device capture in a .m3u file

Posted: 15 Jul 2022 09:40
by RĂ©mi Denis-Courmont
For obvious security reasons, VLC ignores any streaming output parameter in playlist files.

You need to use a shell script or similar.

Re: Save a input device capture in a .m3u file

Posted: 15 Jul 2022 09:49
by baj_be
I understand. Thanks for your quick answer.