[Mplayer-dvb] [PATCH] mplayer.sh: try to scale as little as possible

Adis Salcin crow at linux.org.ba
Fri Jan 3 18:39:14 CET 2003


Hello Juri,

Friday, January 3, 2003, 3:15:18 AM, you wrote:

JH> Hi Martin et al.

JH> I did some changes to mplayer.sh that I want to share.
JH> The main reason was that my VDR box is not fast enough to scale all
JH> videos up to full PAL resolution. As some of the videos already are in a
JH> format that could be directly played via mplayer without additionaly
JH> scaling I put some logic into mplayer.sh to try to play videos with as
JH> little scaling as possible.

JH> E.g.:
JH> I have a video with, say, 160x120.
JH> Why should I scale it up to 640x480 whereas 352x240 would be enough;
JH> or:
JH> the video is already in VCD format, so there's no need to scale at all.

JH> I also discovered that the sound get's out of sync if a video with 25
JH> fps is played as, e.g. 640x480, because mplayer plays it as a NTSC video
JH> with 29.97 fps. If I force mplayer to use 25 fps the video isn't
JH> fullscreen anymore :(
JH> So I added more logic to distinguish between framerates and adjust the
JH> resolution accordingly.

JH> There are two major drawbacks with this version:

JH> 1.) it uses a new feature of mplayer: '-identify'
JH>     This is faster and gives more reliable output of the video format
JH>     and is easier to parse.
JH>     I don't know when this option was added to mplayer - it is at least
JH>     in -rc1

JH> 2.) your TV set must be capable of viewing NTSC video or you will have a
JH>     b/w picture or no picture at all when you try to play a video with
JH>     15, 29.97 or 30 frames/second.

JH> There're still some rough edges but feel free to comment on it.

JH> Cheers,
JH> Juri



DIdnot try your mplayer.sh but will try, what i wonna ask you is:
is it posible to add suport to choice subtitler when choising video
from mplayer(in vdr) so i dont more need to start moive manual that
use TVout of DVB card.
like: when select moive from directory to choice eny */.sub file from
that directory or when select movie that ask for subtitler if dont
need subtitler just pres enter and moive go on.

thnx
-------------------------------- 
Adis Salčin,                    |
IT Computers (Mostar) - Servis  |
http://www.webmaster.co.ba      |
--------------------------------




More information about the MPlayer-dvb mailing list