Mplayer vdpau script
Jump to navigation
Jump to search
A little bash script to select -vo xv if there is also a -vf switch in mplayer command line. Useful due to vdpau problems with video filters - these may in fact be caused by the ff*vdpau codecs, but I know of no way to easily disable the codecs without disabling the output driver, but not permanently.
Obviously paths are hardcoded; change to suit your system.
#!/bin/bash
usevdpau=1
for arg in $@; do
if [ "$arg" = "-vf" ]; then
usevdpau=0
fi
done
if [ "$usevdpau" = "0" ]; then
/usr/bin/mplayer -vo xv "$@"
else
/usr/bin/mplayer -vo vdpau "$@"
fi
Script by Muzer