[MPlayer-users] playlist file syntax

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Dec 9 21:16:38 CET 2004


Hi,
> >3. A way to reference DVD's.  right now dvd://1 works, but it relies 
> >on the disk being in what mplayer sees as -dvd-device.  If I ever get 
> >that 10 terabyte HD and copy all my DVD's into subdirs, I am not sure 
> >there is a good way to reference foo/video_ts in a playlist.
> >
> I have an idea.  I can't imagine any filename that would start with 
> "/////", can you?  What if mplayer took playlist lines that start with 
> /////, and read them as options to be applied to the preceding file?  So 
> you could have a playlist like
> 
> foo.avi
> dvd://1
> ///// dvd-device=/mnt/reki/fightclub aid=129
> Radiohead - Creep.mpeg

no need for that many slashes - both '#' and '//' at the beginning of
the line are interpreted as comments by the current parser - so you
won't remove a feature.
btw. implementing full, explicit playtree support would be possible like this as
well (though a bit clumsy e.g. by adding tree_up and tree_down commands
or similar things).
But: 1) you should use some kind of keyword to make clear that a _mplayer_
command follows - better not to try to interpret normal comments as
options, and other (non-mplayer) users might want to know what that actually is.
2) interpreting those options must be optional _and_
disabled by default. Keep in mind that playlist are used for files on
the internet and options in playlists are a security risk.

Greetings,
Reimar Döffinger




More information about the MPlayer-users mailing list