Thread: mplayer vdpau
View Single Post
Old 11-26-08, 12:23 PM   #163
Civilus
Registered User
 
Join Date: Apr 2008
Location: Russia, Moscow
Posts: 39
Send a message via ICQ to Civilus
Default Re: mplayer vdpau

Gregoire.Favre
You can write a litter wrapper, like that:
Code:
#!/bin/bash
PATH_TO_MPLAYER=""
VIDEO_CODEC=`${PATH_TO_MPLAYER}mplayer "${@}" -ss 00:00:00 -endpos 00:00:00 -loop 1 | grep "video codec"`
CODEC=`echo ${VIDEO_CODEC} | grep -o "ffh264"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffwmv3"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffmpeg12"`
[[ -z ${CODEC} ]] || CODEC="-vo vdpau -vc ${CODEC}vdpau -noass -nofontconfig"

${PATH_TO_MPLAYER}mplayer ${CODEC} "${@}"
__________________
OS: Gentoo Linux, ~amd64. VideoCard: GeForce GTX 470. ASUS P8P67 Deluxe, 2x4GB DDR3-1600 CL9, Core i7 2600k.
Civilus is offline   Reply With Quote