Stream all videos in a folder?

About encoding, codec settings, muxers and filter usage
ncsuapex
New Cone
New Cone
Posts: 4
Joined: 13 Nov 2008 17:59

Stream all videos in a folder?

Postby ncsuapex » 13 Nov 2008 18:09

Ive had success streaming specific files using VLC, but what I would like to do is use VLC to stream the contents of a folder, preferably not using playlists as the contents of the directory will change and I'd like the new videos to get in line and be streamed without changing a script or restarting VLC. So this is my requirements:

command line:
Linux(CentOS5.1)
stream all *.avi from a certain folder
When a new video is put in the directory it is put in queue and will play without starting VLC(This may not happen but it's on my wishlist) If I can at least get it to stream *.avi in a directory then I can set a cron job to just restart my VLC script every 15 minutes or so.

is it even possible to stream the contents of a folder? I have searched far and wide on the great interwebs and have not seen this mentioned anywhere.

Thanks!

j

ncsuapex
New Cone
New Cone
Posts: 4
Joined: 13 Nov 2008 17:59

Re: Stream all videos in a folder?

Postby ncsuapex » 14 Nov 2008 23:31

Looks like this command will play all .avi's in the folder. But how can I make vlc play new files that I add after starting the command? Right now it will only play the .avi's that are in the directory when I run the command, but I'd like to be able to add new .avi's and have vlc put them in queue to play without restarting vlc.


cvlc --playlist-tree ~/*.avi --sout "#transcode{vcodec=WMV2,vb=512,scale=1,acodec=mp3,ab=128}:std{access=mmsh,mux=asfh,dst=:1234" --loop


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests