How to play a folders worth of music/video in VLC media player
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: RPG Blues Looping
--
Chapters
00:00 How To Play A Folders Worth Of Music/Video In Vlc Media Player
00:25 Answer 1 Score 6
00:47 Answer 2 Score 2
01:13 Answer 3 Score 1
01:57 Answer 4 Score 1
02:27 Thank you
--
Full question
https://superuser.com/questions/623804/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#commandline #audio #video #vlcmediaplayer
#avk47
ANSWER 1
Score 6
According to this blog post the --playlist-tree will play everything in the folder passed into it. For example:
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --playlist-autostart --loop --playlist-tree c:\playlist\
Also note that the example is for a Windows system, you may need to modify the syntax slightly if you are using a Unix based system.
ANSWER 2
Score 2
As I didn't get tbenz9's solution working, I wrote a little batch script doing the trick:
cd C:\your\directory\with\music
for /r %a in (*) do "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -LZ --one-instance --playlist-enqueue "%a"
The --one-instance
option tells VLC media player to keep only one window, and I think --playlist-enqueue
is quite explicit.
On Linux, it can be simply achieved with:
find /my/music/directory/ -type f -exec vlc -LZ '{}' +
ANSWER 3
Score 1
I often need to work my way thru a lot of videos, in a particular sequence. When I stop watching one, I want my player to remember where I was, and resume from that point.
VLC cannot do either of these, not without extra work. Instead, I use "Media Player Classic - Home Cinema" http://mpc-hc.org/ for this very reason. I even created my own tiny script to launch MPC-HC and resume the most recently-played file automatically.
The VLC development team is opposed to automatically playing the next file, even as an option. They insist that you must select the files manually, and then add them to a playlist, or open the folder (which would start from the first file, which isn't what I want), or add them individually. Their dogma is NOT user-friendly!
ANSWER 4
Score 1
For linux (I have no windows machines handy). All of this is from the man pages and/or --help output. I also TESTED these to work.
find /Music/Directory/ -type f -exec vlc --one-instance --playlist-enqueue --playlist-autostart --fullscreen -Z '{}' +
The "-L" shouldn't be needed because help for "-Z" says "Play files randomly forever"
Or, if you'd prefer to use mplayer (vlc video scaling is currently borked on one of my machines)
find /Music/Directory/ -type f -exec mplayer -enqueue -shuffle -fs -loop 0 '{}' +