2008-03-15

simplified chinese srt and spumux

I downloaded a AVI and its srt(simplified chinese). When converted it to DVD by using DeVeDe, I got a error message,like "conversion failed","maybe a SPUMUX's bug",etc. So I tried to 'merge' srt into mpg via spumux, like this:
$ spumux -s0 movie_sub.xml
movie.mpg

But still get below error message:
DVDAuthor::spumux, version 0.6.14.
Build options: gnugetopt magick iconv freetype
Send bugs to

INFO: Locale=en_US.UTF-8
INFO: Converting filenames to UTF-8
INFO: Detected subtitle file format: subviewer 2.0
INFO: Opened iconv descriptor. *UTF-8* *UTF-16 BE*
INFO: Read 0 subtitles
INFO: Unicode font: 22059 glyphs.
ERR: Couldn't load file rambo.srt.

Finally,I got the solution.Here are the steps:
- open rambo.srt via Text Editor and save it as rambo_1.srt, which character coding is 'GB18030';

- copy simhei.ttf in ~/.spumux;

- next,add rambo_1.srt subtitles to movie by using spumux;
$spumux -s0 movie_sub.xml "<"in.mpg">" out.mpg
The movie_sub.xml as following:


- If everything went Ok, you should have a good movie.mpg file with the subtitles, now you can author that like this:

$ dvdauthor -x dvdauthor.xml
dvdauthor.xml:

NOTE:If you have more than one mpg files, you can add corresponding "vob file" tag into above xml.

This will create a dvd-structure that you can then create an ISO image from:

$ mkisofs -dvd-video -V Title -o dvd.iso DVD

And then just burn dvd.iso to a DVD disc.

No comments: