Page 1 of 1
streaming from .pls file
Posted: 05 May 2011 13:54
by freenode5
I found libvlc_vlm_add_broadcast for streaming files over network but how would you stream a .pls file?
In the past, I've used the playlist player to play them locally.
I've done some digging in the docs and can't seem to find a way to patch it together.
Re: streaming from .pls file
Posted: 05 May 2011 20:17
by RĂ©mi Denis-Courmont
I think VLM does not support playlists.
Re: streaming from .pls file
Posted: 05 May 2011 22:15
by freenode5
Is there another way?
VLC itself seems to have this ability so I assumed there must be some solution.
Do you happen to know if the add broadcast works with stream URLs as well as files? If so, I could just build my own pls parser.
Re: streaming from .pls file
Posted: 06 May 2011 14:06
by freenode5
The Solution:
It is perfectly possible to stream both regular and pls files with a fairly simple program.
Here's what came out in a later thread.
I had no idea you could use sout in vlc_args.
I really wish I'd known that 3 weeks ago, or that someone had mentioned it earlier.
It's perfect and does exactly what I want.
Now just by adding: "--sout=#transcode{acodec=mp3,ab=128,channels=2,samplerate=44100,mux=mp3}:http{dst=:8090/file.mp3}"
to my list of vlc args, I can use the usual media player and media list player to stream both individual mp3 files, as well as any pls files.
viewtopic.php?f=32&t=90423