Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] need help to create a advanced mplayer.sh




And want to create a advanced mplayer.sh. It should start the mplayer bin with different codecs, given from the file extension:
.avi - DiVX 3x -> ffdivx
.divx - DiVX 4.x -> odivx
.mpg/mpeg - MPEG -> mpegpes
and others, which mplayer supports.

And the next feature should be:

The script should scan the given directory for other files with the same extension and create a playlist, started by the called file, in alphabetically order. Here is an example:

>mplayer.sh /divx/movie1/movie1 Part2.avi

in the directory /divx/movie1 are: 
movie1 Part1.avi
movie1 Part2.avi
movie1 Part3.avi

Now, mplayer.sh should create a playlist with the files:
movie1 Part2.avi
movie1 Part3.avi

and start mplayer with this playlist.

The advantage of this is, you can watch a movie, splitted in much files, with one button.

Any shell scripter here, who can do that?

Thanks and bye
Marco



Home | Main Index | Thread Index