Log in

View Full Version : Add permanent subs to avi on os x


colonel32
11th December 2005, 11:07
I have a hardware dvd player that plays divx and xvid cds. I regularly add permanent subs from srt files to my to divx avis, and watch them on this player. I've previously been doing this on Windows using GordianKnot very successfully.

Can somone recommend a tool for OS X 10.4 that will do a similar thing for me? All the guides I've found so far have been geared up for format conversion, rather than transcoding in the same format while adding permanent subs.

Cheers for any pointers : )

echo
11th December 2005, 11:49
mencoder is available on OS X and it is able to do what you want. A quick google search gave me this: http://sourceforge.net/projects/mplayerosx/

colonel32
11th December 2005, 14:11
THanks a lot echo. I've having probs though. Even though I added -sub mysubs.srt to the additional parameters, no subs appear in the output file. I was getting this message:

New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

I managed to get rid of this by copying MPlayer OS X 2.app/Contents/Resources/Fonts/TeX Sans bold.ttf into ~/.mplayer/ and renaming it subfont.ttf. However, I still get no subs in the output file.

Also I tried starting mplayer from terminal like this:

/Applications/MPlayer.app/Contents/MacOS/MPlayer\ OS\ X\ 2 -sub ~/Desktop/mysubs.srt ~/Desktop/mymovie.avi

and again, I got no subs displayed. But If I added the movie to the mplayer playlist through the GUI, then set the subs through the Info button, I did get the subs displayed.

What am I doing wrong?

echo
11th December 2005, 14:22
I'm not certain but try renaming mysubs.srt to mymovie.srt (or whatever you .avi filename is) while having them in the same directory. Maybe this will help.

colonel32
11th December 2005, 17:28
Hi, no it isn't that I'm afraid. I don't get subtitles whatever I name the subtitle and movie files. Any other ideas?

echo
12th December 2005, 12:51
Try setting -sub-fuzziness=2 and see what happens. Leave only the srt file you want in the same directory.

In linux there is a ~/.mplayer/gui.conf file for the gui mplayer part and a ~/.mplayer/config for the plain mplayer part. I think they should be the same in OSX. If the gui plays the subtitles try copying the contents of the gui.conf to the config file. I canŽt figure out what setting has to be tweaked.

If you still get nothing try looking at the output of mplayer in a console window. Are there any SUB: lines and is there an Žadded subtitle fileŽ line in those?

EDIT: That should be -sub-fuzziness 2 (no equals sign) from the console.

colonel32
4th February 2006, 19:02
Sorry, didn't have any luck with this. Have given up now and sorry for delay replying, but thanks for trying!