Hi,
I have added a feature which adds individual options
for each film (like different aspect ratios). You have
just to add the following lines after line 645 in movix.pl:
readPLXFile();
if( @PLX > 0 ){
$mplayerArgs =~ s/ -playlist \/movix.list / /;
readFilmListFile();
my $i = 0;
while( $i < @FILMLIST ){
$mplayerArgs .= " \"$FILMLIST[$i]\" $PLX[$i++]";
}
}
And somewhere in the sub-routines section, like after
loadBootParm, add the following lines:
sub readPLXFile {
return unless -e "/cdrom/movix.plx";
open PLX, "/cdrom/movix.plx" or return;
while(<PLX>){
s/#.*//; # ignore comments by erasing them
next if /^(\s)*$/; # skip blank lines
chomp; # remove trailing newline
characters
push @PLX, $_; # push the data line onto the array
}
close PLX;
}
sub readFilmListFile {
return unless -e "/movix.list";
open FILMLIST, "/movix.list" or return;
while(<FILMLIST>){
s/#.*//; # ignore comments by erasing them
next if /^(\s)*$/; # skip blank lines
chomp; # remove trailing newline
characters
push @FILMLIST, $_; # push the data line onto the array
}
close FILMLIST;
}
This code searches for a file called movix.plx, which
has to be in the same directory as the films. When a
file with this name is found the parameter "-playlist
movix.list" is removed. Then the filename of each film
is added (list is read from movix.list) to the
parameter list. After each filename a line of movix.plx
is added. Each line is for one film and can contain
several parameters.
Example:
movix.list contains:
Film one.avi
Film two.avi
movix.plx contains:
-aspect 16:9
-aspect 4:3
The first film will be played with aspect ratio 16:9
and the second one with aspect ratio 4:3.
For me it's a very useful option and I think for others
two. Please add it.
Cheers, Martin
Logged In: YES
user_id=457157
That's nice, but you can create a .conf file for each video
file (e.g. video.avi.conf) and put mplayer options into
that, too.