DVDsubEdit Manual
DVDsubEdit Manual
This is very easy. You can either drag/drop vob files, or use the File menu.
DVDSubEdit will start scanning the file(s) for subpicture packs in the background. As
more subpicture units (SPUs) are found, the display is updated but you can start
looking at the subpics before the scanning is entirely done.
• Full title set: To look at the subpictures for an entire video title set, select all
the VOBs of the title domain (for example vts_01_1.vob vts_01_2.vob
vts_01_3.vob) and drag/drop them on the DVDSubEdit window.
• Single or multiple vobs: You can look at selected vob files if you prefer (for
example, dragging/dropping vts_01_2.vob) but it’s possible that the first
subpicture unit will not be detected properly (because part of it is located in
the previous vob file). You can also use “Open file” in the File menu and select
one or multiple vob files. Note that all the vob files have to belong to the same
titleset (VTS) and to the same domain (i.e., menu domain or title domain).
• Fast Reload of last vob(s): You can also select “Fast reload last vob(s)” or use
the Ctrl-O shortcut to reload the last vob (or set of vobs) you loaded.
DVDSubEdit keeps a temporary file that includes all the information about spus
for the last loaded files, so when this option is used the vob files do not need
to be scanned and the operation is very quick.
By default, DVDSubEdit shows you all the subpicture units that it finds. But you can
filter them by stream ID (i.e., by language) or by the video cell (i.e., “chapter”)
they belong to. To do that, use the stream and VCID drop down selectors.
By clicking “Only show modified subpics” you can only show those subpictures that
you have modified one way or another. If you haven’t modified any, no subpicture
will be displayed. “Only show forced subpics” is useful to see which subpictures
have a forced-start command. The other options are explained further down in this
manual.
Once you have selected which subpictures to look at, you can use the slider to
quickly move through them or the arrow buttons to go from one to the next or
previous one.
You can also quickly go to a specific subpicture using the “Goto subpic” field.
If you’ve selected a specific stream, then entering 22 in that field would take you
to subpicture 22 in that stream. If you’ve selected All Streams, then entering 22 in
that field would take you to the 22nd subpicture regardless of stream.
Normally the background video is displayed along with the subtitles but you can
disable that by unchecking “Show video frame”. This can be useful if the
subpicture is difficult to see against a “busy” background. The “No zoom window”
dropdown allows you to view an enlarged version of the subpicture, and will pop a
small window which displays the subpicture bitmap with a 1:1 (no scaling) or a 1:2
(twice as big) ratio. The subpicture background is cropped to only show the
“interesting” part of the bitmap:
Movies that are coded with a 16:9 aspect ratio can be played in three different
ways: original 16:9 (for displays that support this aspect ratio), letterboxed and
Pan&Scan (for 4:3 displays). Some DVDs have separate subtitle streams for each of
these display modes. This info is stored in the IFO files, and DVDSubEdit shows the
target display mode(s) for each subpicture stream in the stream selector (WS for
widescreen, LB for letterbox and PS for Pan&Scan). Note that it is common to have
only 1 subtitle stream for all aspect ratios. DVDSubEdit allows you to visualize the
background video in the way it will be shown on your display, for all three display
modes.
You select a specific
display mode by using the
drop down selector. This
will display the video as
it will appear on the
actual device, according
to the selected mode.
The subpicture is also shown as it will be on your display. This can be quite useful
to check that subpictures do line up with the background video, particularly for
menus. Menus that are encoded in 16:9 almost always have two highlight streams,
one for 16:9 displays, and one for Pan&Scan (menus are almost never shown in
letterboxed format!). DVDSubEdit lets you check that the stream intended for 16:9
does indeed line up with the video in that mode, and likewise for the PS stream.
In the preference panel, you can check the
option “Adapt display mode to subpic
stream”, which makes DVDSubEdit switch
display mode when you change the selected
subpicture stream if the current display mode
is not compatible with the stream’s display
mode(s).
• Selecting “Use IFO CLUT” makes DVDSubEdit use the colors found in the
CLUT of the PGC that references the cell the subpicture belongs to. This
option is only available if DVDSubEdit found an IFO associated with the VOB
files you loaded, or if you loaded an IFO along with a SUP file.
• Checking “Use Automatic CLUT” makes DVDSubEdit use different colors for
“text”, background, outline and antialias pixels. Text pixels are the pixels
used for the body of the subtitle characters, outline and antialias pixels are
used around the text pixels to avoid aliasing problems that could result for
the low resolution used in subpictures. The various types of pixels are
identified from the subpicture itself, and might change from DVD to DVD
(some DVDs use the ‘p’ pixel type for the body of the characters, while
others might use the ‘e1’ type). This option is very useful when you don’t
have the IFO that corresponds to the VOB files, or when you’re loading a
.sup file. You can click on the tiles to change the default colors.
For example, if you’ve modified the start command and you’ve moved the subtitle,
you can decide to only apply the change to the start command by only clicking that
box.
Undoing changes:
You can select “Reload this spu from file” in the Edit menu (or use the Ctrl-Z
shortcut) to reload the currently viewed subpicture from the file, or “Reload all
spus from file” to undo all your changes. At this point, DVDSubEdit does not have
multiple undos.
Changing the transparency of your subtitles can easily be done using the
transparency slider. You must first choose which of the 4 pixel types you want this
to be applied to.
Choosing ‘b’, ‘p’, ‘e1’ or ‘e2’ will select the background,
pattern, emphasis 1 or 2 pixels for modification. The slider
will then only change the transparency of the selected
pixels.
You can choose “All pixels” to modify the transparency of all
but the “true background” pixels. The pixels used for the
background are left alone so the background video can still
be seen by transparency.
To ignore all transparency values, you can check the “Ignore transparency” option:
This is useful to reveal subpictures that are initially transparent, such as button
highlights in menus. DVDSubEdit tries to be smart about identifying truly
background pixels: Assuming that the ‘b’ pixels are indeed used for the background
is a bad idea as this is certainly not mandatory and in many cases, they’re not.
DVDSubEdit assumes that the top left pixel in the subpicture is of the type used for
the background.
Once you’ve changed the transparency of your selected pixel(s), you can apply the
same modifications to all the selected subpictures using the Ctrl-A (Apply to all)
shortcut.
If you want to change the color coded in the CLUT itself, you can Shift-Click any of
the 16 tiles in the “Pick color” dialog, and a color selection dialog will pop-up,
allowing you to change the color stored in the color-lookup table in the IFO file for
that specific tile. This does not modify the IFO file until you save all your changes.
This is available only if an IFO file was loaded with your subpictures: if you open a
.sup file and you don’t open an IFO file to provide a CLUT, this option will not be
available.
2.6 Modifying the “start” command
DVDSubEdit limits the amount you can move subpictures so none of the
“useful”pixels will disappear from the video frame. Once again, this applies to all
but non “truly background” pixels (i.e. pixels that DVDSubEdit has determined are
used as background). If you’re using borders (see below) DVDSubEdit makes sure
none of the useful pixels disappear from inside the selected borders.
You can also use the mouse: Click on the subpicture in the video display and move
it to the desired location… If you press Alt or Ctrl while dragging the subpicture,
you can constrain vertical or horizontal motions.
It is often easier and faster to define borders in which you want your subtitles to
fall. This can be done using the border slider and the border selector.
The slider will only allow valid durations: for example, you cannot display a
subpicture past the start time of the next subpicture (in the same stream).
Similarly, you cannot set the duration to 0 (because two DCSQT normally can’t have
the same delay value).
If you check the “Show frame” checkbox, the I-frame right after the end of the
subtitle will be displayed instead of the one corresponding to its start. This is
helpful to adjust the end of a subtitle to match a specific frame. Note however that
DVDSubEdit cannot show the exact last frame that will have the subtitle (because
it can only show I-frames), so this will be somewhat approximate.
The slider simply alters the delay value of the last DCSQT (which normally holds the
“stop” command). You cannot change the delay of an individual DCSQT (yet).
Clicking the “Inf.” button will remove the last DCSQT which holds the stop
command, thereby making the subpicture of “infinite” duration (in reality, it will
be displayed until the next subpicture starts). Conversely, if a subpicture does not
have a delayed DCSQT with a stop command, clicking the slider will pop a dialog
offering to add a DCSQT with a stop command:
If you have multiple sets of commands (DCSQTs) use the drop-down selector to
choose which one to modify before you apply any modification. At this point, the
only data you can modify in DCSQTs other than the first one is the transparency and
the color assignment. If you move the subpicture, only the first DCSQT is modified.
If you choose “All DCSQTs” in the drop-down selector, your modifications
(transparency or color) will be applied to all the DCSQTs that have corresponding
commands. If you then use Apply to All, your modification will be applied to all
DCSQTs of all selected subpictures.
3. Re-timing subtitles
3.1 Changing the timing of a single subtitle
In some rare cases, you need to move a subtitle from one location to another one,
because this specific subtitle is out of sync with the video.
To do that, make sure that you load the full title domain (by opening the files with
the “Open Full Domain” menu, or making sure you’re dropping all the VOB files of
the VTS in question – but excluding the menu of course, for example vts_01_0.vob).
DVDSubEdit will refuse to re-time subpictures if you’re in the menu domain, or if
you omitted one of the vob files. Then click the “Retime this SPU” button. A small
dialog will popup allowing you to specify either an absolute PTS (presentation time)
where the subtitle should be displayed, or a value by which to move the subtitle.
The PTS values are in seconds. In practice, it’s best to search for the target
location of your subtitle using the preview before applying the move. Note the PTS
of the image you’d like the subtitle to be synchronous with, and use this new PTS
when you use the re-timing function.
Because of the way DVDSubEdit works, if you need to move the subtitle by more
than 3 to 5 seconds, it’s a good idea to do it in two steps, moving it first to an
intermediate location then to the accurate target location. It’s also a good idea to
check with a software player that the subtitle is displayed at the right time, and
readjust if needed.
Note that there is no undo for this operation. The vob files are modified as the
operation completes, along with the corresponding IFO file. There is no need to
subsequently save the subpictures (they’ve already been saved).
In some cases, the entire subtitle track is out of sync with the video, either
appearing too early or too late. DVDSubEdit lets you resynchronize the subtitles by
moving them as a whole by a fixed positive or negative delay. Again, make sure you
load the full domain and click the “Retime selected SPUs” button. A small dialog
will popup where you can specify by how much the selected subtitles should be
moved. Positive values (for example +1s) will make the subtitles appear later than
they currently do. Negative values will make them appear before they currently do.
Since this is a lengthy operation (requiring the modification of many packs in the
vob files), it’s best to have a fairly good idea of how much the subtitles should be
moved by.
The operation takes more time when moving by a larger amount. Adding or
subtracting a small delay (less than 1 second) is relatively fast, but moving by more
than 3-4 seconds can become quite lengthy.
Note that there is no undo for this operation. The vob files are modified as the
operation completes, along with the corresponding IFO file. There is no need to
subsequently save the subpics (they’ve already been saved).
Re-timing subtitles in place (i.e. directly inside the vob file, without
demuxing/remuxing) is tricky. DVDSubEdit tries to do the best job it can, but you
can still run into problems.
• Subpicture collisions happen when one of the subpics you’re re-timing will
end up in the same vobu as another one belonging to the same stream.
While this isn’t illegal, it poses additional problems or subpicture ordering.
For this reason, DVDSubEdit currently refuses to re-time a subtitle if it will
collide with another one. You can run into that problem when re-timing an
individual subtitle, and this is an indication that there’s already a subtitle
that will be displayed around the same PTS. The solution is to make sure
you’re not trying to display two subtitles at the same time. Sometimes, you
will run into the problem when trying to move an entire subpicture track
(for example if the track has a large number of subpics, close to each other,
as in Spiderman R1 for example).
• Angles: Re-timing subtitles in multi-angle movies poses additional problems
that DVDSubEdit isn’t currently able to handle. As a result, re-timing
subtitles is forbidden in such cases.
A few notes:
• The bitmap does not use transparency and all the pixels are rendered as
fully opaque. As a result, it’s quite possible that the saved bitmap looks
slightly different than the subpicture shown in DVDSubEdit or seen during
playback.
• The bitmap’s size is the size of the video frame: 720x480 for NTSC, 720x576
for PAL, and the subpicture is placed exactly where it would be shown by a
DVD player.
It is also possible to save the current video frame as a 24-bit bitmap file. This can
be useful to align menu highlights with the background video. Use “Save current
video frame as .BMP” in the File menu.
Importing a bitmap can be done using “Replace current subpic with .bmp file” in
the File menu. Only bitmap files (.bmp) can be used for that, but they can either
be 4-bit (using a 16-color lookup table included in the bitmap) or 24-bit. More
information on that subject is given below (4.2 ).
DVDSubEdit allows you to edit the subpicture bitmap using any external bitmap
editing tool (such as PhotoShop, Gimp, or even mspaint). This is a very powerful
feature, because it allows you to make changes to the bitmap without having to
demux, edit, then remux the entire VOB file (which would be a lengthy process).
You can achieve this by saving the subpicture as a bitmap (as described above),
opening the saved bitmap with the tool of your choice, editing and saving it, then
going back to DVDSubEdit to re-import it into the subpicture (using “Replace
current subpic with .bmp file” in the File menu). But that’s doing it the hard way!
The same thing can be done in one shot using “Edit subpic bitmap with external
tool” in the File menu. This automatically saves the subpicture in a temporary
bitmap file, opens it with you choice bitmap editing program, waits for you to be
done editing the file, then re-imports it into the subpicture.
Before you can use this feature, you have to select the tool you’ll be using, in the
Preferences.
You can also select whether the bitmap will be saved as a 24-bit or a 4-bit bitmap.
More on that subject below.
Select the “Preferences” item in the File menu to open the setup panel:
In the Optical Character Recognition area, the following options are available:
• Detect italicized text should always be on, otherwise GOCR might make
many errors when subtitles are in italics.
• Case sensitive searches allows you to chose which type of search you prefer
in the OCR output panel.
• Word boundary detection can be used if you find that word boundaries
seem to be poorly detected. Selecting a low number will tend to find more
words, while a large number will tend to cluster words together.
This will run the OCR in the background. When that’s done, you can use the search
box to find occurrences of a word in the selected subpictures. You can select case-
sensitive or insensitive searches in the Preferences panel.
The GOCR code works quite well on many subtitles, and does not require any
preliminary “training”. However, it sometimes has problems with italicized text,
especially when italics are mixed with non-italics.
Also note that DVDSubEdit does not try to run OCR on subpics that seem to contain
button highlights (i.e., spus located in VOBUs where buttons are defined, and which
are turned on by a forced start).
In the Subpicture Selection area, you can type a
set of characters (‘[‘ in the example on the
right) and DVDSubEdit will only show subtitles
that include any of these characters (case
insensitive).
This feature is useful for example to remove subtitles for the hearing impaired,
which are usually enclosed between brackets “[“ or parentheses “(“. You can prune
such subtitles using the OCR function, and quickly hide them if you don’t want
them to appear in the final DVD. Or you can use the automatic removal provided by
the application. More about that below.
You can also export the output of the OCR as a .srt file by clicking the “Save as
.srt” button. This will save the subtitle text for each subtitle in the .srt format
which can then be used by SubtitleCreator or other programs. Note that you should
select a stream before you use this function so you don’t mix various languages in
your .srt file.
This function allows you to remove entire subtitles, or parts of subtitles that are
intended for hearing-impaired viewers. Hearing-impaired subtitles are usually
bracketed between square brackets, for example [laughing], or between
parentheses (laughing). DVDSubEdit can detect such occurrences and automatically
remove the text and the brackets, leaving the useful part of the subtitle intact.
In the OCR setup panel, a few options are available to fine-tune this process:
• Remove text between square brackets. Checking this option will instruct
DVDSubEdit to remove any text located between square brackets.
• Remove text in parentheses. Checking this option will cause text between
parentheses to be erased.
• Remove text between music notes. GOCR can recognize (most) music
notes, which are indicated in the output as ‘#’. This option allows the
removal of any text bracketed by music notes.
• Remove single word followed by colon (e.g. “Man: No way”). This allows
you to automatically remove the parts of the subtitles that indicate which
person is speaking.
• Realign bottom of modified subtitles. If your subtitle has two lines, and the
bottom one is erased, the top one will be moved down in its place if this
option is checked. Note that if the subtitle has three lines and you remove
the middle one, the top line will not move down to replace it.
• Re-center modified subtitles. Some subtitles are centered in the frame,
some are left-aligned (the left side of each line are aligned for multi-line
subtitles). By default, the remaining text in a line is left aligned if a portion
of the line is erased. With this option, the entire line is re-centered so its
middle falls exactly where the middle of the original line fell before the
erasing.
To run the hearing-impaired removal tool on a single subtitle, you can use the Ctrl-
W shortcut or use the OCR menu. If the current subtitle hasn’t been OCR’ed yet,
the OCR function is first run, and the current subtitle is then “cleaned-up” of all
hearing-impaired text. To run the tool on all selected subtitles, use “Hide hearing
impaired text in selected subpics” in the OCR menu.
You can also place the cursor at any point in the OCR output and press Del to erase
the character left of the cursor. This very powerful tool is very convenient to fine-
tune the hearing-impaired removal.
For more detailed instructions, check out CoNS’s cool guide to remove text for the
hearing-impaired…
7. Preferences
Select the “Preferences” item in the File menu to open the setup panel:
The options in the Optical Character Recognition and Hearing-impaired areas are
described above. The general settings are as follows:
• Open IFO after loading sup files will instruct DVDSubEdit to automatically
display an open-IFO dialog so you can load an IFO file to go with your .sup
file. The open-IFO panel by default opens in the same directory as your .sup
is located.
• Alert if Closed Captions will cause DVDSubEdit to pop an alert panel when a
scanned VOB file contains Closed-Captions. Closed-Captions are encoded in
the mpeg video stream. DVDSubEdit is not capable of decoding or saving
Closed Captions yet.
• Adapt display mode to subpic stream causes the display mode (for 16:9
movies) to change automatically when you select a subpicture stream whose
display mode(s) does not match the current display mode. For example if
the current display mode is widescreen and you select a subpicture stream
that is intended for letterboxed, the display mode will change automatically
to letterboxed.
Finally you can select the default background color which is used when no video is
shown (either because you loaded a .sup file or you unchecked the “Show Video
Frame” option).
8. Appendices
8.1 Keyboard shortcuts, command-line arguments
- You can’t change subpicture positions in DCSQTs other than the first one.
- You can’t change the delay of an individual DCSQT
- The video display only shows I-Frames, and therefore, the frame displayed is
not necessarily the exact frame at which the subpicture will start displaying
(because subpictures can start displaying at any frame). The same applies
for displaying the end of the subpicture.
- The OCR code sometimes has problems with italics, and can fail to detect
spaces between words.
8.3 Setup, file location, and troubleshooting
DVDSubEdit saves its settings in a .ini file located in the application data
directory, typically:
C:\Documents and Settings\YOURNAME\Application Data\
DVDSubEdit.ini
where “YOURNAME”is the user name. Some settings can only be adjusted by
editing this .ini file, for example the values used for the border presets.
If you run into problem at startup (for example the app starts but the window is
invisible), quit the app, remove the .ini file and start the app again.
The log file is kept in your $TEMP$ directory, usually
C:\Documents and Settings\YOURNAME\Local
Settings\Temp\DVDSubEdit.log
8.4 Index
2. MODIFYING SUBPICTURES 7
3. RE-TIMING SUBTITLES 13
7. PREFERENCES 21
8. APPENDICES 22