Folders in a Playlist

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
DanTheUser
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2012 06:08

Folders in a Playlist

Postby DanTheUser » 03 Sep 2012 00:38

Hi VLC gang,

This question has bugged me for a while. A playlist can include folders that include media files. Folders within a playlist are treated as individual tracks in the list until they are chosen, and they expand and all their entries are now treated as individual track. Is there a way to auto-expand all folders that have been placed in the playlist so that all files in a large set of folders can truly be played randomly? If a playlist includes folders, and random is used, the first choice will expand that first folder, which means the random function disproportionately plays files from within that folder because its contents now each hold equal probability of being chosen as the unopened folders. This simple shortcoming has led me to use other media players for my music library when I'd rather just use VLC for everything. Some advice would be greatly appreciated.

Thanks,

DanTheUser

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Folders in a Playlist

Postby Arite » 03 Sep 2012 03:06

VLC by default performs an "expand" with directories added. From the command-line help:

Code: Select all

File input Directory: --recursive={none,collapse,expand} Subdirectory behavior Select whether subdirectories must be expanded. none: subdirectories do not appear in the playlist. collapse: subdirectories appear but are expanded on first play. expand: all subdirectories are expanded.
The settings for this can be found in the Preferences. Go to:
Tools >> Preferences >> (Select "All" for "Show settings) >> Input / Codecs >> Access modules >> File

And you can change the directory behaviour etc.

If you are referring to playlist files being opened, I made a *.m3u that just pointed to a directory with subdirectories etc. It treated it as a normal list of files (from all directories), so seems to work OK.

Can you give an example of when it doesn't?

Arite.
Don't use PMs for support questions.

DanTheUser
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2012 06:08

Re: Folders in a Playlist

Postby DanTheUser » 03 Sep 2012 04:13

Arite,

Thanks so much for your response. I tried your method of creating an *.m3u from the root directory folder, and although that autoexpands all the folders, the random track selection still seems to follow the same pattern as if all of the folders were not expanded, and this method also makes vlc very unstable - it crashes often, most likely because the root folder I am using contains so much media - about 400GB of music.

As an example of the original problem. Take six folders, each with an album full of tracks. Drag those six folders into the vlc playlist and click random and play. You will notice that the first track chosen will have it's folder expanded and the other five folders remain closed. Because the open folder has so many more entries in the list, the next track will most likely be one within the same folder. If another folder does get chosen, the odds of a third are even less. With a few trials of this you will definitely notice it. It becomes very obvious with large numbers of folders.

Thanks a lot for the advice. Please let me know if I misunderstood your suggestion.

DanTheUser

solazy
Cone that earned his stripes
Cone that earned his stripes
Posts: 128
Joined: 13 Nov 2008 17:45
VLC version: 1.1.11
Operating System: Windows XP SP3

Re: Folders in a Playlist

Postby solazy » 03 Sep 2012 12:39

Hi Dan,
A very interesting post indeed, you explained well the issue and it's reproducible.

A workaround could be this, for example with 6 different music folders :
* Add them to a new playlist.
* In the playlist, expand them manually, one by one.
* Save the playlist to a file (Media >> Save Playlist to file) : for example "my 6 music folders.xspf"

Now each time you'll double click the .xspf file, Vlc will be launched with a playlist containing all 6 expanded folders (this is because you saved the playlist at a moment when all 6 folders were expanded in it)

Of course, if those folders are not static (i.e if you add periodically new audio files) this won't be enough to solve your issue, but it may help you in case you just want to listen "really" randomly what's already stored in your computer.

Hope it helps :D

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Folders in a Playlist

Postby Arite » 05 Sep 2012 03:38

Thanks so much for your response. I tried your method of creating an *.m3u from the root directory folder, and although that autoexpands all the folders, the random track selection still seems to follow the same pattern as if all of the folders were not expanded, and this method also makes vlc very unstable - it crashes often, most likely because the root folder I am using contains so much media - about 400GB of music.
Ah OK. One way would be to make a playlist that lists all of the files (not them as directories). Then VLC would treats each item separately from the start.

Have you tried using the Media Library? You'll have the same issues with folders, however you could try adding (as a one time thing) a giant playlist with everything in it (each entry corresponding to a file, not a folder), then when you re-open VLC is everything should still be there. Everything will be contained in a single folder (the same name as the playlist), but everything should be there. The meta-data won't be loaded until a track is played however, it's remembered are closing and reoping VLC though. Then you could use the search, select tracks, right click and "Add to playlist" if you want a custom order/set of files.

I tested this with 12000 items, ~115GB in size so shouldn't cause a crash (haven't tried with 400GB though). I used foobar2000 to create the *.m3u playlist file BTW (just make a giant playlist in that then export it).

As solazy said you could also do something similar in VLC by exporting a fully expanded playlist to a playlist file etc.
As an example of the original problem. Take six folders, each with an album full of tracks. Drag those six folders into the vlc playlist and click random and play. You will notice that the first track chosen will have it's folder expanded and the other five folders remain closed. Because the open folder has so many more entries in the list, the next track will most likely be one within the same folder. If another folder does get chosen, the odds of a third are even less. With a few trials of this you will definitely notice it. It becomes very obvious with large numbers of folders.
Yeh I see what you mean now.

You could make this feature request - e.g. to "Automatically pre-parse/expand (prior to playback) folders when added to VLC's Playlist/Media Library". Otherwise/in the meantime you could try using the Media Library/creating playlists with each entry as a file instead of a folder.

Cheers, Arite.
Don't use PMs for support questions.

DanTheUser
New Cone
New Cone
Posts: 4
Joined: 02 Sep 2012 06:08

Re: Folders in a Playlist

Postby DanTheUser » 09 Sep 2012 05:28

Thanks for the advice Arite. How would I go about adding "each entry to a files, not a folder", without navigating to each folder and selecting all the files within them? This seems like it will take forever.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Folders in a Playlist

Postby Arite » 11 Sep 2012 00:18

Well you could use something other than VLC to make it. I used foobar2000. Just drag and drop you entire music folder into it, and a giant playlist will be made. Then save the playlist as an *.m3u file and open it in VLC etc.

Arite.
Don't use PMs for support questions.

Motoman4540
New Cone
New Cone
Posts: 3
Joined: 14 Jan 2014 17:29

Re: Folders in a Playlist

Postby Motoman4540 » 15 Jan 2014 20:55

Wow! How about just setting up the next release of VLC to automatically play each song in a folder, and not require users to mess around with customized playlists... Is that such a complicated feature to add? I love VLC but this is a basic feature that should not require a workaround, IMHO!

texastuner_raceward
New Cone
New Cone
Posts: 2
Joined: 18 Feb 2014 20:38

Re: Folders in a Playlist

Postby texastuner_raceward » 18 Feb 2014 20:48

well hello fellow VCL'er

i have a problem ive been using .m3u playlist to play movies from my secondary drive
#EXTM3U
#EXTINF:0,AJE Video
directory:///D:/My%20Videos/AJE%20Video

i set it up this way so when i add a new video to the folder it will be in the playlist without having to update the .m3u file with the new file and up until 4 days ago it was working just as expected, but now it just opens the playlist and wont play or show files in folder.

im running windows xp 32bit home edition sp3

my thoughts are a windows service that may have disabled...

thank you in advance for any intel

Kusko25
New Cone
New Cone
Posts: 1
Joined: 08 Oct 2014 13:49

Re: Folders in a Playlist

Postby Kusko25 » 08 Oct 2014 13:53

Another workaround is to navigate to the folder containing your files in explorer (assuming you use windows) and search for * in the search window. That lists all files within that folder which you can then add to your playlist.

roysarver9
New Cone
New Cone
Posts: 1
Joined: 01 Jun 2021 17:20

Re: Folders in a Playlist

Postby roysarver9 » 01 Jun 2021 18:05

Just can not seem to get files to play like they used to.. I
like the way you can dump in whole files now. But individual files within will not play consecutively..

arcadezyra
New Cone
New Cone
Posts: 2
Joined: 15 Oct 2020 17:56

Re: Folders in a Playlist

Postby arcadezyra » 28 Jun 2021 05:52

i was gonna say just search with file explorer in the parent folder of said folders. "kind:music" or "kind:audio" no quotes. select all and drop them in the playlist. ez pz


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests