view TOOLS/mpconsole @ 15559:9f157ca7e3c2

Make sure that samplesize is at least 2, as some demuxers set it to 1 (demux_ogg for ac3 in ogm) or possibly even 0, and it causes preinit to set audio_out_minsize too low, which causes overflow (assert).
author hzoli
date Tue, 24 May 2005 06:54:19 +0000
parents a818bbab1525
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