Can't Get VLC To Stream More Than One Song Using HTTP

About encoding, codec settings, muxers and filter usage
joelinux117
New Cone
New Cone
Posts: 2
Joined: 02 May 2008 19:13
VLC version: 0.8.6e
Operating System: Linux

Can't Get VLC To Stream More Than One Song Using HTTP

Postby joelinux117 » 02 May 2008 19:18

I'm using VLC 0.8.6e on Ubuntu 8.04, and I've been able to get a song streamed out over HTTP just fine. However, when I try to stream multiple songs, it won't happen (at least, not continuously, it seems). Maybe the stream is breaking? When I try and play it on another PC (regardless of OS), the stream stops after one song. It actually continues to stream, but I can't get any player to pick up the next song, it just seems to lose connection (I've tried Amarok, Totem, WMP, VLC). In order to get the next song, I have to replay the stream within the client. That's annoying. Could I be doing something wrong? I'm thinking there's just some setting somewhere I don't know about.

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

Re: Can't Get VLC To Stream More Than One Song Using HTTP

Postby Rémi Denis-Courmont » 03 May 2008 12:05

Use

Code: Select all

vlc --sout-keep --sout '#gather:std{access=http,...}'
instead of

Code: Select all

vlc --sout '#std{access=http,...}'
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

joelinux117
New Cone
New Cone
Posts: 2
Joined: 02 May 2008 19:13
VLC version: 0.8.6e
Operating System: Linux

Re: Can't Get VLC To Stream More Than One Song Using HTTP

Postby joelinux117 » 04 May 2008 05:59

vlc --sout-keep --sout '#gather:std{access=http,...}'
Thank you very much, but I've already tried that. I was actually using the graphical wizard in VLC, to try and stream the music, and I added it manually to the displayed command, but that didn't work. Then, I tried just running the stream from the command line, using the "--sout-keep" option, but that didn't work either. My command looked like this:

Code: Select all

vlc Music/*mp3 --sout-keep --sout '#gather:std{access=http,mux=ts,dst=:8080}'
Edit: Actually, when I use that command, the client (usually Amarok) doesn't show that the stream has finished, and VLC will switch to the next song, but won't play it. I try manually clicking "Play", but nothing. However, during the transition to the second song, VLC does close the loop (I believe as indicated by the disappearing playback indicator bar thingy, it's only a split second), and then reopens it with the next song. I know that when I use RTP to stream directly to another computer (an entire playlist), when it goes to the next song that playback bar never goes away, the marker moves directly to the beginning and the next song plays. I don't know if this has anything to do with it.

I was hoping to stream every song in my "Music" folder over http on port 8080. I opened up several different clients (including Amarok and VLC), and after the first song... break. :(

I've read elsewhere (maybe even on this forum) that the continuous stream of a playlist with more than one song is an issue, that the "sout-keep" doesn't work. But I appreciate your help. Any other ideas to fix this?

--JoeLinux


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests