how to stream a playlist?

About encoding, codec settings, muxers and filter usage
tokyotech
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Dec 2009 08:45

how to stream a playlist?

Postby tokyotech » 13 Mar 2010 09:46

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?

kanartikin
New Cone
New Cone
Posts: 3
Joined: 17 Jan 2010 16:31

Re: how to stream a playlist?

Postby kanartikin » 14 Mar 2010 21:20

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!

tokyotech
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Dec 2009 08:45

Re: how to stream a playlist?

Postby tokyotech » 18 Mar 2010 07:12

Works like a charm. Thanks.

kaizer113
New Cone
New Cone
Posts: 2
Joined: 12 May 2013 20:12

Re: how to stream a playlist?

Postby kaizer113 » 12 May 2013 20:38

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: how to stream a playlist?

Postby Jean-Baptiste Kempf » 12 May 2013 23:00

Use --sout ... --sout-keep
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jdevane
New Cone
New Cone
Posts: 3
Joined: 09 Jul 2013 00:11

Re: how to stream a playlist?

Postby jdevane » 09 Jul 2013 01:10

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

jdevane
New Cone
New Cone
Posts: 3
Joined: 09 Jul 2013 00:11

Re: how to stream a playlist?

Postby jdevane » 09 Jul 2013 01:32

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...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 26 guests