Page 1 of 1

how to stream a playlist?

Posted: 13 Mar 2010 09:46
by tokyotech
I have success streaming one file at a time using these steps.

1) In the menu on top, choose Media > Streaming
2) Click the add button on the right and select a video file.
3) Click the stream button on the bottom.
4) Click the next button on the lower right.
5) Switch the new destination dropdown from file to HTTP.
6) Click the add button next to this dropdown.
7) Enter 127.0.0.1 in the address field.
8) Enter 1234 in the port field.
9) Select h264 profile preset.

Now I would like to stream around 100 files using the same h264 profile preset. I first add my 100 files to VLC player. Then I save the playlist as an m3u. I replaced step #2's adding of the single file with adding of this m3u I just created. The result is nothing got streamed. All my files were just played back to me. Any ideas?

Re: how to stream a playlist?

Posted: 14 Mar 2010 21:20
by kanartikin
I've been through the same problem a month ago. VLC couldn't stream the playlist through the UI (i was especially interested in the remote web interface), only plays the files, so you have to use command prompt. So, here is what i did:
1. I built a playlist in the VLC windows UI - multistreams.xspf
2. Then in a simple notepad wrote the command line:

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" "C:\Documents and Settings\My Documents\VLC playlists\multistreams.xspf" :sout=#transcode{...YOUR TRANSCODING OPTIONS...}:rtp{.......}
3. Save the file as VLCbatch.bat.
4. Dragged the .bat file in Windows start up folder.
Now the playlist will start streaming with the Windows start. Of course you can just run the batch file when you need, or even execute the command line in the CMD prompt manually without putting it into a batch file.
Only pay attention to the correct directories c:\Program Files\VideoLAN\VLC\vlc.exe and the playlist location C:\Documents and Settings\My Documents\VLC playlists\multistreams.xspf, these are ofcourse mine.
Works like a charm.
Good luck!

Re: how to stream a playlist?

Posted: 18 Mar 2010 07:12
by tokyotech
Works like a charm. Thanks.

Re: how to stream a playlist?

Posted: 12 May 2013 20:38
by kaizer113
I get same problem in UI and command line, all clients stop playing at the end of first song and fail to reconnect :(

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\playlist.xspf" :sout=#http{mux=ffmpeg{mux=flv},dst=:8002/} :ttl=2 :sout-keep

Re: how to stream a playlist?

Posted: 12 May 2013 23:00
by Jean-Baptiste Kempf
Use --sout ... --sout-keep

Re: how to stream a playlist?

Posted: 09 Jul 2013 01:10
by jdevane
running win 7 64bit, I'm trying to stream a playlist to the same pc playing the playlist, or my wife's laptop on vista... both machines play the first file then stop...

I have tried two different batch files as discussed in this thread... will this work in win7... I've read other posts that don't make me feel this is promising... I do have an old xp machine, but I would have to drag it out and get a montior setup for it (current machine is an all-in-one)

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\Justin\Desktop\1212.xspf" :sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=asf,dst=:6001/},dst=display} :ttl=3 :sout-keep

or

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "C:\Users\Justin\Desktop\1212.xspf" --sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=asf,dst=:6001/},dst=display} :ttl=3 --sout-keep

Re: how to stream a playlist?

Posted: 09 Jul 2013 01:32
by jdevane
I also just checked this streaming it to my android mini pc stick plugged into a tv and it also stops playing after the first file is complete... and I even tried a different video player...