streaming from .pls file

This forum is about all development around libVLC.
freenode5
New Cone
New Cone
Posts: 9
Joined: 05 May 2011 13:48

streaming from .pls file

Postby freenode5 » 05 May 2011 13:54

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.

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

Re: streaming from .pls file

Postby Rémi Denis-Courmont » 05 May 2011 20:17

I think VLM does not support playlists.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

freenode5
New Cone
New Cone
Posts: 9
Joined: 05 May 2011 13:48

Re: streaming from .pls file

Postby freenode5 » 05 May 2011 22:15

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.

freenode5
New Cone
New Cone
Posts: 9
Joined: 05 May 2011 13:48

Re: streaming from .pls file

Postby freenode5 » 06 May 2011 14:06

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests