You are not logged in.

#1 2005-10-01 15:07:39

MAC!EK
Member
Registered: 2005-09-27
Posts: 265

How to add subtitles to a DVD Video?

I have DVD Video files on my HDD. This movie has no subtitles. I want to add subtitles as on option like in normal DVDs.
Is it possible?
I think I shoul convert my txt file to VOBsub or smth.

Any ideas?

Offline

#2 2005-10-01 22:34:26

MAC!EK
Member
Registered: 2005-09-27
Posts: 265

Re: How to add subtitles to a DVD Video?

I'm trying to mux subs with the video, but smth goes wrong.

mplayer dvd:// -dumpstream -dvd-device /home/pliki/DVD/ -dumpfile DVD_all.vob

spumux.xml is:
<subpictures>
   <stream>
            <textsub filename="microdvd.txt" characterset="WINDOWS-1250"
            fontsize="28.0" font="subfont.ttf" horizontal-alignment="center"
            vertical-alignment="bottom" left-margin="60" right-margin="60"
            top-margin="20" bottom-margin="30" subtitle-fps="25"
            movie-fps="25" movie-width="720" movie-height="574"
            />
  </stream>
</subpictures>

spumux spumux.xml < DVD_all.vob > 1.mpg

DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=pl_PL
INFO: Converting filenames to ISO-8859-2
INFO: Detected subtitle file format: microdvd
INFO: Opened iconv descriptor. *UTF-8* *WINDOWS-1250*
INFO: Read 512 subtitles
INFO: Unicode font: 1185 glyphs.
INFO: Found EOF in .sub file.
WARN:  Read 0, expected 4
INFO: 512 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.36

Statistics:
- Processed 512 subtitles.
- The longest display line had 45 characters.
- The maximum number of displayed lines was 3.
- The normal display height of the font subfont.ttf was 32.
- The bottom display height of the font subfont.ttf was 45.
- The biggest subtitle box had 4832 bytes.
And after spumux finishes there no subs in the mpg neutral

Offline

Board footer

Powered by FluxBB