[MPlayer-dev-eng] script to include in mplayer TOOLS

D Richard Felker III dalias at aerifal.cx
Wed Jan 16 23:22:26 CET 2002


Hey people, here's a quick script to run mplayer on the console
without all the text, flashing cursor, etc getting in the way of the
movie -- and it also detects and sets mplayer's screenw and screenh
options automatically using fbset to get the screen dimensions. If you
think users might find this helpful, feel free to include it in the
TOOLS directory with mplayer. And if the -vo mga being there is bad,
just remove it.

Rich Felker


 
-------------- next part --------------
#!/bin/sh
# Script to run mplayer on the console (fbdev/mga_vid/etc) without
# the console text and/or flashing cursor getting in the way.
# Written by Rich Felker.

trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT
res=`fbset | grep geometry | sed 's/^ *//'`
width=`echo "$res" | cut -d' ' -f2`
height=`echo "$res" | cut -d' ' -f3`
tput civis
clear
mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1




More information about the MPlayer-dev-eng mailing list