view TOOLS/mpconsole.sh @ 36147:a657a5332e3a

manpage: document -playlist being unsafe in its option description This really should have been added to the manpage at the start of the previous decade. There's still bad advice about -playlist in the XML docs, but I'll remove that later when purging more obsolete/wrong stuff from there. Patch by Uoti Urpala [uau mplayer2 org]
author reimar
date Sun, 05 May 2013 17:02:35 +0000
parents 305dc504c407
children
line wrap: on
line source

#!/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=`PATH="$PATH:/usr/sbin" 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