Save a input device capture in a .m3u file

About encoding, codec settings, muxers and filter usage
baj_be
New Cone
New Cone
Posts: 2
Joined: 14 Jul 2022 16:47

Save a input device capture in a .m3u file

Postby baj_be » 14 Jul 2022 17:15

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

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

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

Postby Rémi Denis-Courmont » 15 Jul 2022 09:40

For obvious security reasons, VLC ignores any streaming output parameter in playlist files.

You need to use a shell script or similar.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

baj_be
New Cone
New Cone
Posts: 2
Joined: 14 Jul 2022 16:47

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

Postby baj_be » 15 Jul 2022 09:49

I understand. Thanks for your quick answer.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests