[MPlayer-users] svn MPlayer + VDPAU = ???
Gregoire Favre
gregoire.favre at gmail.com
Wed Mar 11 15:59:49 CET 2009
On Wed, Mar 11, 2009 at 04:14:26PM +0300, Goga777 wrote:
> Hi
>
> can somebody confirm that svn MPlayer works well with vdpau nvidia cards ?
> is it necessary to take any special actions for it ?
Yes it works really great on vdpau capable cards ;-)
I use this wrapper for my mplayer :
#!/bin/bash
MP=/usr/bin/mplayer
#COM=' -vo vdpau -osdlevel 0 -lavdopts fast:skiploopfilter=nonref -alang fr,en,de,it -fs -vf pp=hb/vb/dr/al -xineramascreen 1 -panscanrange -0.15 -noframedrop -nocache -nortc -dr -stop-xscreensaver'
#COM='-ao pulse -noautosub -osdlevel 0 -lavdopts fast:skiploopfilter=nonref -alang fr,en,de,it -fs -vf pp=hb/vb/dr/al -xineramascreen 1 -panscanrange -0.15 -noframedrop -nortc -dr -stop-xscreensaver'
TMP=/tmp/1234567890abcdef
if [ -z "$1" ]; then
echo "usage :"
echo $0 "Name of the file to be played !!!"
echo "If your gfx card support vc1/wmv3 uncomment the corresponding codecs."
echo "If your received support DTS you need to change the 8193 test."
exit
fi
while [ $# -ge 1 ]; do
sudo rm -f $TMP
$MP -identify -vo null -ao null -frames 0 "$1" 2>/dev/null > $TMP
AUDIO=`grep ID_AUDIO_FORMAT $TMP|cut -d"=" -f2`
VIDEO_CODEC=`grep "video codec" $TMP`
CODEC=`echo ${VIDEO_CODEC} | grep -o "ffh264"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffwmv3"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffvc1"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffmpeg12"`
if [[ -z ${CODEC} ]]; then
CODEC="-cache 8192 -osdlevel 0 -fs -vo gl2 -noass -nofontconfig -vf pp=hb/vb/dr/al -panscanrange -0.15 -noframedrop -nocache -nortc -dr -stop-xscreensaver"
else
CODEC="-cache 8192 -osdlevel 0 -fs -vo vdpau -vc ${CODEC}vdpau -noass -nofontconfig"
fi
sudo rm -f $TMP
if [ "$AUDIO" == "8192" ];
then
$MP ${CODEC} -ao alsa:device="iec958={CARD 0 AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}" -ac hwac3 "$1"
else
if [ "$AUDIO" == "8193" ];
then
$MP ${CODEC} -ao alsa:device="iec958={CARD 0 AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}" -channels 6 -af lavcac3enc=1 "$1"
else
$MP ${CODEC} -ao alsa "$1"
fi
fi
shift
done
And by the way as you also are a VDR user, xine-lib-1.2 and patch from
http://www.jusst.de/vdpau/files/xine-lib-1.2/ are just tremendous !!!
--
Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org
http://picasaweb.google.com/Gregoire.Favre
More information about the MPlayer-users
mailing list