Mplayer vdpau script
Jump to navigation
Jump to search
NOTE: MPlayer filters work fine with -vo vdpau (and using it allows you to enable de-interlacing at any time), so this script does not look useful!
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.
#!/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