[MPlayer-dev-eng] [PATCH] vobsub: keep aspect ratio

Csillag Kristof fenwick at freemail.hu
Sat Jan 22 14:12:19 CET 2005


Hi!

2005-01-22, szo keltezéssel 11.54-kor Guillaume Poirier ezt írta:
> Hi,
> 
> On Sat, 22 Jan 2005 06:39:01 +0100, Csillag Kristof <fenwick at freemail.hu> wrote:
> > What do you think? IMHO the subtitles look much better this way.
> > Shouldn't this be the default behavior?
> 
> You're probably right... but what happens if you use -vf expand to get
> for instance a 4:3 aspect ratio, which was what I used it the past to
> prevent vobsub distortion? (I must admit I haven't tested your patch
> yet).
The -vf expand thing also works, but there are several drawbacks:
	- You usually don't want to give back that large black stripes,
		just a little so that the subtitles can be put on them.
		So you won't have the original aspect ratio, just
		something less distorted.
	- Using a video filter takes more CPU time

However, subtitles under the movie are nice, so you might want to use
the -vf expand anyway.

But these things are not mutually exlusive: you can use -vf expand to
get a black bar under the movie to render the subtitles at,
and -spu-keep-aspect to set them to the correct aspect ratio.
(Probably the best is to use both aproaces.)

For a comparison,

"mplayer aspect-demo.mkv -slang eng -vf expand=0:-100:0:0" gives this:
http://rht.bme.hu/~lunkwill/computer/mplayer/expand-without-keep-aspect.png

...and the same, with -spu-keep-aspect added, gives this:
http://rht.bme.hu/~lunkwill/computer/mplayer/expand-with-keep-aspect.png


-- 
Csillag Kristof <fenwick at freemail.hu>




More information about the MPlayer-dev-eng mailing list