MPV – How to Play VIDEO_TS DVD Folder with a Generic Command

dvdmpvmultimediapathvideo

I want to use a command for mpv video player that would play the VIDEO_TS folder (which in the case of MPV means starting directly the main video of the DVD. The main advantage of this is that in this way MPV can play a DVD movie with external subtitles.)

Normally this can be achieved by drag&drop VIDEO_TS folder onto the player window, which is similar to mpv file:///media/username/NAME-OF-DVD/VIDEO_TS.

MPV is not good at using DVD menus and multiple streams: mpv /dev/sr0 plays all DVD contents including menus one after the other as one stream and that beats my purpose.

On the other hand, as the name of the dvd varies, mpv file:///media/username/NAME-OF-DVD/VIDEO_TS cannot be used as a generic command to start DVD the way I want (namely the VIDEO_TS folder of the DVD).

Is there a such generic path to the VIDEO_TS folder that can be used to have a generic command to play that folder?

There is also the more generic question if it is possible to specify a path in which one of the directory names is variable.

Best Answer

User MelBurslan answered in a comment under this more general question (Is it possible to specify a path in which one of the directory levels is variable?):

as long as the varying directory level is a single directory, what I mean by that, if you have /dir1/dirX/dir3/dir4 and the dirX part is not changing like dirX/dirY/dirZ but can only be one of the dirX, dirY or dirZ, then you can reference /dir1/dirX/dir3/dir4 as /dir1/*/dir3/dir4

So, in the case above, the command that works is simply something like mpv /media/username/*/VIDEO_TS

Related Question