Thread: mplayer vdpau
View Single Post
Old 11-26-08, 03:22 PM   #165
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: mplayer vdpau

Quote:
Originally Posted by Civilus View Post
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} "${@}"
Well, it's more or less what I got (I have also test for DTS which I have to convert on the fly to AC3) but I found this quite unpleasant and most unelegant ;-)
Anyway, thank for the answer even if I hope to have something similar be done directly in mplayer...
Gregoire.Favre is offline   Reply With Quote