annotate TOOLS/mpconsole @ 7610:876495f714dc

Enable -subfps for time based subtitles, too. Please update the DOCS for -subfps: "If you have time-based subtitles like subviewer that can't be synced by -subdelay try specifying -subfps with the framerate of the movie the time-based sub was created for, eg. -subfps 25 if you use subs from a 25 fps movie with a movie using a different framerate. If you need to guess -subfps, try 25, 23.98 and 29.97"
author atmos4
date Sun, 06 Oct 2002 02:59:04 +0000
parents a451ba84410d
children a818bbab1525
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4204
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
1 #!/bin/sh
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
2 # Script to run mplayer on the console (fbdev/mga_vid/etc) without
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
3 # the console text and/or flashing cursor getting in the way.
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
4 # Written by Rich Felker.
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
5
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
6 trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
7 res=`fbset | grep geometry | sed 's/^ *//'`
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
8 width=`echo "$res" | cut -d' ' -f2`
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
9 height=`echo "$res" | cut -d' ' -f3`
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
10 tput civis
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
11 clear
a451ba84410d console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
arpi
parents:
diff changeset
12 mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1