I am asking because I am wanting to make a Jukebox kind of thing on a RasPi.
But early testing with VLC is ... well: not the best.
I'll put that down to me and my (in)ability to use programs.
Not to extreme a number - say 4000 - I want to get random playback.
So my thoughts are turning to: rather than giving VLC the whole list, I get Node-Red to pick a random value.
This is used to pick what is to be played.
As is I have directories with the audio files.
Some by album, some by artist.
So there are ... 300 directories.
Alas I can see problems here as it isn't 2 levels. Some could be 3 deep for directories.
So the thought is:
Create a number to pick the directory.
Enter that directory.
If it has directories, pick another random number to pick the next one.
Repeat until there is/are not directories.
Random number to play that file.
Andrew, this might be possible, but why not just use a player with a shuffle function?
The amount of time you would invest in this project in Node red is enormous, for the same result.
If you use the ls -R function on the main folder you will get a list of all files in all subdirectories. If you put on some filtering you can indeed do some random stuff to start it. But you have to poll VLC the whole time to see status of songs before you can start the next one.
But when I google to the VLC command line options, I think all is possible to do just with VLC.