Follow Us On Follow us on Facebook Follow us on Twitter donate/credits:
Results 1 to 5 of 5
  1. #1

    [Tutorial] How to mix subtitles with AVI files in 2 minutes!

    How to mix subtitles with avi files in 2 minutes! so you can play it on most DIVX standalone players, or on your PS2/PS3.

    Mixing subtitles was a PAIN IN THE *** in the past. because you have to make it HARDCODED subtitles, which means that you have to re-encode the whole AVI, resulting in a quality and time loss.

    There's an easier and new way to mix/slipstream subtitles into your avi files, and it's by adding them as addition streams to your avi. so you'd at the end have three streams into your avi:

    1 stream for VIDEO
    1 stream for AUDIO
    1-8 stream[s] for SUBTITLES

    Enough with the tech talk. lets get to work!.


    1. Get the right subtitle! duh! try extracting it from the movie's DVD (legally you must have the DVD so that you could make the avi file in the first place), or try downloading it from the net, my favorite subtitle site:

    2. Download AVIAddXSubs and extract it anywhere.

    3. Make sure that the subtitles and the movie have the SAME NAME

    4. go to where you just extracted the program (in my case C:\subs) and run "AVIAddXSubs.exe", there are other useful utilities included but we don't need them now.

    I quote from the readme file:

    * AVIAddXSubs.exe : Main utility
    * SUBRenamer.exe : Renames avi and its associated srt under a new name following AVIAddXSubs rules in case of multiple subtitles. Read more in below section.
    * AVIInfo.exe : Displays information of avi/divx files. To inquiry problematic avi. Just drop the avi to its icon and email the information it appears when requested.
    * AVIBitrate.exe: Bitrate analysis tool for those they use the USB 1.1 slot of their player. Generally an avi, where for many consecutive seconds has bitrate above 6.5Mbits/sec, can cause jerky move and bad sound in various scenes. If this appears to be frequent throughout the playtime and especially for many consecutive seconds, then, maybe, is better to use a DVDRW disk instead of USB, for a trouble free playback. If your player has a real USB 2.0 then there will be no problem (if USB device attached is fast enough too).
    * AVIAddXSub.dll, calclib.dll : Needed by the executables.
    * menu.avi. This file is as small video which is used in case the user adds CHAPTERS to the generated files.
    * README.htm : This file
    5. Choose your avi file ( you can just drag and drop)

    6. go to the configuration 1 tab

    If your subtitle is a .srt, configure the first SUB 1 tab, you can add up to 8 srt subtitles as you can see.

    If your subtitles are in idx/sub format (like in my case), than click on the idx/sub tab and configure there.

    I can't explain all these settings better than the included README file, so I quote for lazy people:

    # Break long lines. If this option is ON then long subtitles that do not fit will break in more lines to fit.

    # Max Font Size: You can choose the maximum font size (in points). AVIAddXSubs will choose a smaller font if a specific subtitle doesn't fit in the resolution. Note that this will happen only if Break Long Lines is OFF.

    # Font: You can choose the preferred font.

    # Bold. Check this to get subtitles in bold text.

    # Color (Text and Outline): Click Text button to define subtitle text color. Click Outline button to define outline color.

    # Outline Size: Defines the size or "thickness" of the outline around subtitle text. If it is zero then the outline is disabled.

    # Preview: Invokes a window where a sample text is displayed accordingly to the current subtitle configuration. Gives a quick idea on how subtitle will look like. You can test font, size, colors etc. You can load a srt and browse the subtitles back and forth.

    # Character Set: Choose the correct character set.

    # Language Code: Select language code. This is for displaying the language at the list of available subtitles in your player, if supported by the player.

    # Align: Choose the align between the lines of every subtitle. Left, center or right.

    # Vertical Position (or VP): Choose the position (in vertical axis) where the subtitles will be placed. If you have problems to see selected subtitles in the hardware player, experiment with smaller numbers in this option.

    # Center At (or CP): This options defines the center point of your TV in horizontal axis. It is used for the centering of subtitles. If you found that subtitles are not well centered in your TV then experiment with this option.

    # Opaque Background: When this options is checked an opaque box (in outline color) surrounds the subtitles.

    # Subtitle Bitmaps. Choose the first or second choice depending on your TV system, PAL or NTSC. Please note that this selection provides information to the program on how to construct the bitmaps of the incorporated subtitles. How the subtitles are handled is depended on your player's firmware which can vary a lot. So you can leave the default choice and if you are not getting satisfying results, choose the others. Use custom when subtitles do not appear whatever you do with VP. Play with Width and height to see if you get better results.

    # SRT extension. You can use this option to incorporate many srt files in one avi in different languages and configurations. This option defines the srt which will be loaded from every tab in the range SUB 1-8. The literal entered there is added to the avi file name after a symbol - (dash). If there is no literal then the dash is not added and the srt has the same file name as the avi. The tabs that carry the same literal in this option load the same srt and so you can use this to incorporate it in various configuration. For example other VP, CP, font, font size, color, etc.

    # Full Screen. When is checked a full screen bitmap is generated for every subtitle in the Width and Height of the above options. If not checked then the generated bitmap is as big as the text it contains. if you find out that you need different VP to keep subtitles appear in the preferred TV position for various AVIs, experiment with this option. Also has been found that some players cannot use full screen subtitle bitmaps. In this case uncheck this option.

    # Add Subtitles. Normal program operation. srt or idx/sub subtitle files are incorporated in the generated file.

    # Remove Subtitles. The generated files it doesn't include any subtitle existed in the original and no other subtitle file is incorprated. Please note that the program (in its normal operation) always removes any existing subtitles before add the new. This option is useful in cases you want only some other services of the program, like "unpack packed bitstream" or adding chapters or just a file with no subtitles at all.

    # Add Test Subtitles. When checked sample subtitles are generated. Each of these subtitles remain on TV about three seconds and every time is displayed in a different VP. Starts at VP=100 and increases 50 pixel every time until reach the bottom of the screen, and then starts again. This helps the user, first to know that subtitles can, somehow, appear with his/her player and at which VP.
    This option is only avilable in the idx/sub tab:

    Choosing Subtitles. Under this (at idx/sub tab of "Configuration 1") is a group of three options which affect the way the subtitles included in an idx/sub file are chosen for incorporation. You can choose to include all unconditionally, to be asked which to choose when the processing starts or always to be chosen automatically only those they match the language codes you pass. In the last case you enter the language codes separated with a comma and no spaces.

    7. Click on the Configuration 2 tab

    Make sure that "unpack packed bitstream" is CHECKED, packed bitsream can cause problems (stuttering, skipping) on most old DIVX standalone players.

    I don't play with the other options, here's a brief explanation to all options of the configuration 2 tab from the readme file:

    # Unpack packed bitstream. Some players (like my PHILIPS DVP5980) do not fully support "packed bitstream". This causes some video encoded this way to appear with jerky move, like some frames are dropped, etc. This is a nice way to catch a headache. If this option is checked (default) the frames become unpacked automatically and all "packed" AVIs have a much smoother playback. Unpacking packed bitstream has nothing to do with video compression. The "unpacked" AVI actually can be slightly smaller.

    # Mark DivX as: You can mark generated divx files as DIVX, XVID or DX50. Some players need a specific mark to show the subtitles. This option affects original avi with the above marks that represent compatible encodings. For example DIV3 avi will not be affected by this option. Selection NONE leaves the mark of the original avi.

    # Use .avi for output file(s) if possible. By default the output file is named with extension divx. If this is checked and has been defined an output directory different from the one of the source file, then the generated file is named with extension avi. This cannot work, of course, when input and output directory are the same because we cannot write the new over the original avi.

    # Delete original avi: If this option is checked then after the successful generation of the new subtitled file, the original (or source) will be deleted.

    # Move srt to output directory. When is checked the srt is moved in the output directory. Please note that the srt is not needed to view the subtitles in the player. This option is useful in cases the output directory is used also for archiving purposes. To avoid confusion do not burn the srt together with the avi in the DVD will use to play the video in the player.

    # Start at once: When files or folders are dropped to programs icon or shortcut, or through right click on them, then if this option is checked the processing will start immediately without having the user first to press "Create Subtitled DivX file".

    # Chapter every ... minutes. When a value above zero is entered there then this defines a time interval at which a chapter will be generated. If the value is zero then no chapters are generated. In case of adding chapters then a small avi supplied in the zip is incorporated in the avi. This small avi ("menu.avi") displays the message "Loading... Please Wait...". The user can change that to display another message or picture(s) of his/her preference. See more at "Changing the introductory avi" above. For this feature to work the hardware player has to support officially or unofficially DivX Ultra.

    # Time Shift by ... a number of milliseconds. Using a negative number subtitles will appear the specified milliseconds sooner. With positive numbers later.

    # Increase Duration by ... a number of milliseconds. This is useful in cases that subs go away very fast or the synchronizations is "suspected" not that good. Of course the duration extension is limited by the start of the next subtitle.
    Now after making sure everything is alright, go back to Create DivX with Subtitles tab, and click: Create subtitled DIVX File.

    Just wait for few minutes, there's no re-encoding involved here, it just adds the subtitles as new streams.


    Now you can delete the original AVI and the subtitles if you want to.
    take the new genrated DIVX file and play it on your PS3/PS2 or standalone DIVX players and test it to see if it works.
    That's it.

    Sorry for my English.

    For more information :

    The official website


  2. #2
    i have 2 SAP (stand alone player) that support mpeg4-asp (divx/xvid) and both work just fine with external .srt subtitles.
    they have to be named exactly like the .avi though or it wont work.

    oh and btw. what makes a mpeg4-asp file work on a SAP depends on the features used when encoding the
    file. most SAP dont like qpel or variable/high bitrates (video & audio) and on the chip thats in your SAP.

  3. #3
    Quote Originally Posted by g-tah View Post
    i have 2 SAP (stand alone player) that support mpeg4-asp (divx/xvid) and both work just fine with external .srt subtitles.
    they have to be named exactly like the .avi though or it wont work.

    oh and btw. what makes a mpeg4-asp file work on a SAP depends on the features used when encoding the
    file. most SAP dont like qpel or variable/high bitrates (video & audio) and on the chip thats in your SAP.
    All stand alone players I've seen in my entire life doesn't support many languages correctly when using them with .srt subtitles, it just looks wrong sometimes, or unreadable other times.

    plus, you have to use this tool so you can view the subtitled movie on PS3/PS2 without any problems.

    Agreed with the rest, but some advance players support all these features, like the PS3/PS2 and some other expensive SAP.

    thanks for your comment.


  4. #4
    Great post and very informative many thanks for the share.

  5. #5
    hi i had try work but the subtitle appear on the middle of the screen.
    my video relution is 664x268 what setting do i need to adjust so that it will appear on the bottom of the screen.
    please advise.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts