[MPlayer-users] Mencoder and Akaï DV-PX7000E player.

michael.aubertin at free.fr michael.aubertin at free.fr
Sat Dec 13 16:10:59 CET 2003


Hi all,

I bought an Akaï DV-PX7000E player, but when i read a divx, i have video whitout
sound.To build my divx, i have created this scripts. In GPL of course.

The generated divx are correct and can be play fine whit mplayer. Unfortunally,
when i try on my Akaï player, i just have video stream and no sound. Sometimes,
when pause/play/pause/play the sound appears and stay.

I have tryed many options. Whith those (cbr,vhq...) i have all time video and
sound on short avi file (shorter than 10Min). But, with complete film, Akaï
start the same fight and that's become a riot between it and me....lol.


Please, help me before one of our become injured....

TKS.
Mike

PS: If anybody work on a new firmware project (Linux ARM) for this player, i am
intersting.


#!/bin/bash
 
if [ ! "`id | awk '{printf ("%s",$1);}'`" = "uid=0(root)" ]; then
        echo "You must be root to start this program"
fi
 
HOMEDIR="`echo ~`"
 
if [ ! -f ~/.mcreate ]; then
        echo "Your configuration files does not exist."
        echo "Please create the files $HOMEDIR/.mcreate"
        echo "Insert inside the following line:"
        echo "WORKINGDIR=/DATA/FILM"
        echo "BINDIR=/usr/bin"
        echo "ALANG=fr"
        echo "Where /DATA/FILM is your own working dir. Think about the working
dir should be on a filesystem with at least 5GB free."
        echo "Where /usr/bin is the binary path to access to your mplayer and
mencoder program."
        echo "Whare fr is the sound track language"
        exit
fi
                                                                                
for i in `cat $HOMEDIR/.mcreate`; do
        VARNAME="`echo $i | awk --field-separator="=" '{printf ("%s",$1);}'`"
        VALUES="`echo $i | awk --field-separator="=" '{printf ("%s",$2);}'`"
        export "$VARNAME"="$VALUES"
done
 
if [ ! -d $WORKINGDIR ]; then
        echo "The working directory doesn't exist"
        exit
fi
 
cd $WORKINGDIR
echo "Please Insert now the source DVD (and press a key)"
read A
sleep 5
 
$BINDIR/mplayer -identify dvd:// -frames 25 > log.tmp
NUMBERTITLE="`cat log.tmp | grep "titles" | awk '{print $3}'`"
NUMBERTITLE="`expr $NUMBERTITLE + 1`"
 
i=1
cat /dev/null > lgth.log
while (expr $i \< $NUMBERTITLE > /dev/null); do
        $BINDIR/mplayer -identify dvd://$i -frames 25 > log.tmp
        LENGTH="`cat log.tmp  | grep ID_LENGTH | awk --field-separator="="
'{printf ("%s",$2);}'`"
        echo "$LENGTH=$i" >> lgth.log
        i="`expr $i + 1`"
done
 
FILM="`sort -n lgth.log | tail -1 | awk --field-separator="=" '{printf
("%s",$2);}'`"
rm -f lgth.log
rm -f log.tmp
 
echo "Please enter a title (without extention,space and exotic char please...)"
read title
 
if [ ! -f $title.mpeg ];then
        mencoder dvd://$FILM -alang $ALANG -ovc copy -oac copy -o $title.mpeg
fi
 
mplayer -vop cropdetect -frames 500 $title.mpeg | grep -v ":-" | grep "720:" >
log.tmp
CROP="`cat log.tmp | grep crop | tail -1 | awk --field-separator="=" '{print
$2}' | sed -e 's/)//g'`"
 
mencoder -vop scale -xy 512 -aspect 16:9 -vop crop=$CROP -zoom -oac mp3lame
-lameopts cbr -ovc lavc -lavcopts vhq:vbitrate=800 -o $title.avi $title.mpeg



More information about the MPlayer-users mailing list