[MPlayer-dev-eng] [PATCH] VobSub scaling

Csillag Kristof fenwick at freemail.hu
Sat Jan 8 17:52:06 CET 2005


Hi there!

I did a quick & dirty change that allows scaling VobSub subtitles to
user-definied sizes. (So that my girlfriend can see them on my TV.)

This brings in a couple of new command-line options, too:

-spu-scale <factor>		this is the factor to scale width.
				(0.1-4.0)
-spu-center / -nospu-center	this flag toggles whether we should
				ident the subs to the center.
				(default: off)

(When not scaling the VobSub, we usually display it at the position
given inside the SPU stream, but whet we scale up, those coordinates
become pretty much useless, so you will probably need to use this,
if you want to see the scaled subs at a sane position.)

The scaling obeys to the already existing -subwidth parameter: 
it is not scaled any bigger in width than the given percentage of the
screen. 

  * * *

Try it:

mplayer -spualign 0 -subpos 80 -spu-scale 1.5 -spu-center -subwidth 80 \
	-slang hun sample.mkv

What do you think?

 * * *

The code is pretty redundant right now; some calculations are done at
more than one places. (I did not do that; it looked like this before I
touched it.) I intend to clean it up sometime.

The docs are also missing, but if you decide to accept this, I promise
to write it! :)

				


-- 
Csillag Kristof <fenwick at freemail.hu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csk-vobsub-scaling.patch
Type: text/x-patch
Size: 5510 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050108/f39e52a1/attachment.bin>


More information about the MPlayer-dev-eng mailing list