view TOOLS/mpconsole @ 9606:0197c1e933fe

This patch corrects the calculation of the MPEG bitrate from the sequence header. The bitrate contained in the sequence header is in units of 400 bits/s, not 500. Eric Lammerts <eric@lammerts.org>
author arpi
date Sat, 15 Mar 2003 21:07:45 +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