[MEncoder-users] MEncoder and subtitles

Domjan Svilkovic dsvilko at gmail.com
Tue Dec 27 10:40:17 CET 2005


Hi!

I have a problem encoding a movie with a text subtitles. It seems that
mencoder is ignoring all subtitle font related options (-font and
-subfont-text-size).
I am converting a DivX movie to a 3gp format (mencoder/ffmpeg)
suitable for watching on a mobile phone and wanted to add a tiny
subtitles from a '.sub' file.
What is interesting is that mplayer has no problem with subtitle manipulation.

mplayer movie.avi -font
'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf'
-subfont-text-scale 5 -sub "subtitles.sub" -vf
crop=690:570,scale=176:-2,expand=176:144:0:0:1

...works perfectly, but

mencoder movie.avi -oac pcm -af resample=8000,volume=+8db:sc -ovc lavc
-lavcopts vcodec=mpeg4 -vf
crop=690:570,scale=176:-2,expand=176:144:0:0:1 -o out.avi -ofps 12
-font '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf'
-subfont-text-scale 5 -sub "subtitles.sub"

...gives me default subtitle style (default font and default, unscaled
font size)!
Changing -font and -subfont-text-scale has no effect. MEncoder
doesen't even complain if I give it a nonexisting font name (mplayer
complains).
I am using Ubuntu mplayer/mencoder (ver. 1.0-pre7cvs20050) and both
seem to be compiled with the FreeType support:

# ldd `which mencoder` | grep type
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb79b5000)

Has anyone got a clue as to what could be the problem?

Thanks!
Domjan




More information about the MEncoder-users mailing list