AVIAddXSubs

(http://www.calcitapp.com/AVIAddXSubs.php)

Overview

This utility is used to incorporate subtitles (XSUB) in DivX/XVid avi files. Subtitles are provided through srt and idx/sub external files.

Alternatively can be used to generate idx/sub subtitles. Those subtitles are provided in the form of two files, one with the extension .idx (text file) and the other with the extension .sub (binary file) that can accompany (like a srt file) the avi and be played in many hardware players.

In both cases the subtitles are created as bitmaps in user's PC and so are ready to be used in any capable player without any language or character set considerations. Because of that they are the most universal ways to subtitle videos in any language with the only assumption that at least the user's PC is capable to handle the specific language.

So the user is now able to choose the subtitle format (XSUB or idx/sub) with which his/her DivX/XVid player gives the best results.

In both cases subtitles can be configured in font, font size, bold, text color and text outline.

Up to 8 subtitles can be provided from  8 separate srt (ANSI format) files. Also user can choose to generate up to 8 subtitles from one and only srt file, in various configuration regarding font, font size, position on screen and many others. So at playback time, through remote control, can choose any of them that looks more favorable to him/her.

Specifically in the incorporation of XSUB subtitles in avi up to 8 subtitles can be provided from one idx/sub pair of files and be combined with those coming from srt. Please note that the total of subtitles cannot be over the specifications limit of 8. AVIAddXSubs automatically enforces this limitation. Please note that because the program can generated idx/sub subtitles too ensure that the generated idx/sub files go to a different directory than the one of source files to avoid repetitive XSUB incorporation if you repeat the process.

Just drag & drop the srt (subtitle text) or avi file to program's icon (or shortcut) in your desktop. A new file with extension divx will be created ready to view it in your hardware DivX player. Note that you can drag&drop more than one files for a batch subtitle incorporation.

ZIP File contents

What you need

  1. Create a shortcut of AVIAddXSubs.exe in your desktop.
  2. In a directory place the AVI file and its associated (same name) srt. e.g. movie.avi and movie.srt.
  3. Drag & Drop any number of avi files (in the same folder) to the icon of AVIAddXSubs in the desktop. You can also drag&drop any number of folders instead of separate files. In this case avi/divx files in these folders and their sub-folders will be processed.
  4. At Configuration/SUB1 edit character set and language to your local (Use ANSI for character set in case of English/Spanish/Italians/Germans etc).
  5. Press "Create"

That’s it!

Multiple Subtitles from srt (up to 8)

In configuration page you can configure up to 8 srt subtitle files. There are 8 tabs, SUB1 through SUB8, with a number of configuration options. For every tab corresponds a srt file that is searched through a specific naming convention. This naming convention is controlled through a literal at option "SRT extension" found in every such tab. The corresponding srt file name is composed from the avi file name and the literal defined in the aforementioned option, that is [AVI name]+[SRT extension]+[.srt]. For example, to an avi lost0204.avi and a "SRT extension" "-en" corresponds a srt "lost0204-en.srt". If "SRT Extension"  is empty the srt file has exactly the name of the avi: lost0204.srt.

In case you wish to incorporate the same srt more than once in an avi, using different configurations in every incorporation, enter the same literal in "SRT extension" option for all those tabs (SUB 1-8) that represent those configurations.

Examples:

For a file lost0303.avi, a tab (SUB 1-8) with "SRT extension":

 

Adding/Removing Right Click Menu option

An alternative way to start the program and instruct it to process avi files (or avi files contained in folders in case folders are selected) is through a right click menu option. A right click on any file or folders generates a menu from which the user can choose from a number of actions upon to the right clicked items. An action can be added that starts AVIAddXSubs on those items. This option has to be added first through Configuration page 2 of AVIAddXSubs. Press buttons "Add Menu Option" or "Remove Menu Option" according to your wishes. The menu option "AVIAddXSubs: Add Subtitles" will appear only when folders or AVI files are right clicked.

Starting and ending AVIAddXSubs without user intervention.

Normally to start the processing the user has to press "Create Subtitles DivX file". But if the program starts through a drag&drop or through right click menu option and if the configuration page option "Start at once" is checked, then this step is bypassed and the processing starts immediately.

Also there is a capability so AViAddSubs can stop its execution after finishing processing. This is intended to advanced people that wish to use the program in batch processing jobs that do various thing and a XSUB subtitle incorporation in addition. This capability can be accessed only through AVIAddXSubs configuration file (aviaddxsubs.txt) and through the parameter ENDATONCE. Its default value is 0. Just put an 1 there.

About Idx/Sub subtitle files (in case of conversion in XSUB format)

Any such file pair can contain subtitles for more than one languages. In case of more than one language a dialog will appear so the user is able to choose which of them to include. Up to 8 languages can be selected and included.

Also in case the subtitle colors are not satisfactory the user is able to intervene in the idx file with any text editor, like Windows notepad, and get better results. First check the text entry Custom Colors. This entry provides a palette of 4 colors that can be used in subtitle bitmaps. This entry appears as in the following example:

custom colors: ON, tridx: 0001, colors: 000000, 808080, FFFFFF, 0000FF

Check if marked as ON or OFF. If it is OFF make it ON and check again in case you get better results. If not you can change any of these colors as follows: In the same entry there is a section with the name tridx. This defines which of the palette colors are used as transparent. Its value is four digits of 0 or 1. If you see 1, then in the corresponding palette position there is a transparent color. Then you point your attention to the rest of palette colors. To get letters with white body and black outline, use the (RGB in hex format) color FFFFFF (white) and 00000 (black). Put these values in the various none transparent positions of the palette (all except the last in the example above), every time save the idx file, run AVIAddXSubs and see if the result is now satisfactory.

SUBRenamer utility

This utility is used to rename easily an avi file and its associated srt. The easiest way to use it is to create a shortcut of the program in your desktop. Then select an avi and all its associated srt and drag&drop them to program's shortcut. When the program runs resembles in a way the list of SUB 1-8 + idx/sub tabs in AVIAddXSubs itself. The avi will appear under an edit box named "AVI File" and all srt (or idx) in the list at the bottom. The list has always 9 lines. The lines 1-8 represent SUB 1-8 tabs of AVIAddXSubs and the 9 the idx/sub tab. Every file will go in an appropriate position. You can use "UP" and "Down" buttons to rearrange the list so every srt file is listed in the SUB position you prefer.

In the list there are four columns. The first is the SUB number and the second is the current srt/idx file name. The third (ext) and four (lang) display information read from AVIAddXSubs configuration file. They display the literal found in "SRT extension" and the language for all tabs 1-8.

Under the edit box "New common name for avi and idx/sub" will appear automatically the name of the AVI without extension. For example if the avi was "lost0209.avi" there will appear "lost0209". You can accept or modify this name. Under this name all files (avi, srt, idx, sub) will be renamed if you press the button "Rename".

Changing the introductory avi

When user chooses to add chapters in the generated avi then a small supplied avi ("menu.avi") is incorporated in the final file. This avi displays a message ("Loading... Please Wait...") briefly at video initialization. User is able to replace this avi with another that display what it prefers. To do so just use an imaging software to create an image (.jpg) with 720X576 resolution. Then use VirtualDub to make an avi based in this image (or many images if you prefer). Load the image(s) with VirtuaDub. Then select any Frame Rate (I choosed 1) and choose for compression XVid. These options are under the menu "Video" of VirtualDub. Then you can save the new avi under the name "menu.avi". Finally replace the supplied avi with this one and start incorporating subtitles as usual using any interval for the generated chapters.

IMPORTANT NOTES

At the configuration 1&2 pages