Log in

View Full Version : VobSub : How to overlay 2 different subtitles in the same video


pokipoki08
29th May 2010, 18:23
Here's how to overlay 2 different subs (english & chinese) into 1 video. You need to extract 2 idx/sub streams (one for each language) using vsrip.exe.

- Once the idx/sub files are extracted, make a backup of the .idx files
- Use a text editor to open the .idx file.
- locate & activate one of the lines below (# means not-activated)


# Force subtitle placement relative to (org.x, org.y)
#align: OFF at LEFT TOP
#align: ON at LEFT BOTTOM
#align: ON at RIGHT TOP
#align: ON at RIGHT BOTTOM
#align: ON at CENTER TOP
align: ON at CENTER BOTTOM


I used "CENTER BOTTOM" to align the subtitle at bottom of screen, but centered. Note that "LEFT TOP" is default OFF.

- locate & observe frame size


# Original frame size
size: 720x480


Note that you have to input the correct values for your video size. This allows the centering to take place, it acts as a point of reference

- locate & input desired alignment


# Origin, relative to the upper-left corner, can be overloaded by alignment
org: 360, 240


x = 360, y = 240, these values are derived from the original frame size above (x, y divided by 2), which places the subtitles at the center of the video.

http://img231.imageshack.us/img231/967/screenshot01.png
http://img709.imageshack.us/img709/5922/screenshot02a.png

- open each .idx and edit accordingly


org: 360, 410 # used for chinese.idx
org: 360, 470 # used for english.idx


Note that I did not change the value for x & left it centered on the screen. Simply adjust the value for y to bring the subtitle up or down.

Some subtitles may have multiple lines (3 or 4), make sure to space accordingly.

- load VSfilter.dll into the .avs script and preview in VirtualDub

VobSub("C:\path\to\chinese.idx")
VobSub("C:\path\to\english.idx")