Extract Subtitle File From Dvd



  • This is because, closed captioned subtitles do not last video encoding process and the converted video file gets deprived of the closed captioned subtitles. You can therefore, use CCExtractor to extract these subtitles before encoding video file and later add the subtitles to it. Note: For now CCExtractor only works with American TV captions.
  • On a DVD movie disc, all the video content is contained within a set of files in the VOB format. Most DVD ripping tools out there can extract the video from VOB to MP4, AVI, etc for desktop media player playback but few DVD ripping tools can extract SRT subtitles from VOB that good at all for using and playing.

While most of the subtitle files are in text format, these VOB subtitles in IDX format are not text, but images that are just a repacked file from the DVD and are given the extension of.SUB file. Insert the DVD disc into your computer's DVD drive and click Load DVD to add the DVD files to the program. All loaded files will be displayed on the left item bar. As you can see, you can preview them on the right and take snapshots of your favorite movie scenes. To select the subtitles you like, simply click Subtitle and select the one you prefer. Extract DVD subtitles from DVD-Video Convert DVD subtitles from the whole DVD or convert subtitles by DVD titles or chapters, and output them in PDF, SUB+IDX, JPG, BMP, PNG format. Extract subtitles from VOB/SUB files.

Software name : Avidemux
Software version : 2.4

If you want to extract subtitle files from a DVD you should understand a little how they work. Subtitles in DVDs are contained in VOBfiles along with the main video and audio streams. We can call them all streams here to account for the difference between a self contained file and a stream. Several streams can be included in a file.

The subtitles you see on a DVD are streams of images files which appear one after the other. Each stream displays a different language. When we extract these streams of subtitles the most handy format we can save them as is actually a text file which has the timecode of when the text appears. If the subtitle file you have is in text rather than image format it makes it easier to edit it and translate it. You can easily send that file via the internet or put it on a website for others to download.

In order to create a text-basedsubtitlefile we first need to extract the images files from the DVD to two files:

  1. an *.idx file which has the time code of the image subtitles (this is called a VobSub file)
  2. and a *.sub file and contains the image information.

We can then convert those files into a single text based subtitle file. There are many different formats but Avidemux uses a very compatible one with the '.srt' extention.

note : Screenshots in the following explanation are a combination of Ubuntu (Linux) and Windows operating systems. Avidemux works well in both and the interface looks the same except for a few color differences.

Extracting to an idx / VobSub file

From the Tools menu select 'VOB' and then 'VobSub'


Then you should see the following screen asking you to Browse for three things.

  1. VOB file(s)
  2. IFO file
  3. VobSub file

Finding the VOB Files

SubtitleFile

When you click on the first Browse button in the above image we are asked to browse for the VOB files :

However sometimes it's not that clear where they are. The files we want are in a folder on the DVD (if you are doing this for files on a DVD) called VIDEO_TS folder.

Normally for a short film there is only one VOB file with video data in it. For longer films there is normally more than one, because there is a maximum file size for the VOB files.

Let's have a look at a complicated DVD structure. There are some small entries in the structure which are system files and files for the menu - we should ignore these. The files with the video, audio and subtitle files we need are the big ones. They start with names like VTS_02_1.VOB,VTS_02_2.VOB, VTS_02_3.VOB, VTS_02_4.VOB. If you click 'Browse' next to 'VOB Files' then you should browse to the appropriate directory ('VIDEO_TS') and you should see something like this :

For this task we need to select the first big VOB which in this case is VTS_02_1.VOB. The ones following it will be selected automatically. When you have selected the right one click on 'open' :

Locating the IFO file

If you click on the second button :

you will be asked to look for the IFO file. The IFO file has information on what language the different subtitle streams are, so we need to browse to find this file. If there is more that one IFO file in the DVD we need find the one that has the same beginning as the large VOB files. In this case it is VTS_02_0.IFO

Extract Video Files From Dvd

When you have found it click on 'open' :

Select where to save the VobSub files

The third button :

will ask you to browse for a place to save the VobSub file. When you have found the right directory write the name of it in the box next to 'Name:' and make sure it ends with '.idx'. The below is an example (you can use any name, 'subs' is just my example) :

When you have done this, and if the other three boxes are complete, then press 'Save' :

Saving your files

When you have found or selected all the files. Then click 'OK' to shut the small window with the small buttons :

and you'll get a window telling you how long the process will take.

When this process is complete you will have created a new .idx file and and new .sub file. These will be saved in the directory you choose for saving the .idx file. In my case I saved them to the desktop :

Extract Subtitle File From Dvd

Making the '.srt' File

Now we want to merge the idx file and the .sub file into a '.srt' file. Click on the top menu 'Tools' and then 'OCR (VobSub -> Srt)':

Extract Dvd To Computer

You should see a window titled 'MiniOCR'.

Clip

Click on the 'Open' button under 'VobSub'. You will then see a window called 'VobSub Settings'.

Click on 'Select .idx' and browse for and select the idx file you created in the 'Extracting to an idx / VobSub file' section.

Click on 'Open' when you have selected the idx file. You should return to the 'VobSub Settings' window :

How To Extract Subtitle File From Dvd

If the DVD you are using has more than one language it should be displayed in the 'Select Language' drop down box. Select the language you want to create a subtitle file for.

When you have the right language selected click 'OK', and you should return to the 'MiniOCR' window. Now you need to select a place on your computer to save the target *.srt file to. Click on the 'Save' button in the 'Output srt' section :

You will see a window asking you to choose a folder to save the srt file in.

'

Browse until you find the right place. When you have, give the file a name by typing in a name in the box at the top

make sure the name ends in '.srt' and then click 'Save'

Now you have set your input and output files you can start the process of converting the images file in to a text file. This process is called OCR. Click 'Start OCR'.

You should see a window like this:

The OCR (Optical Character Recognition) process needs you to tell it what the characters (letters and numbers + symbols) in the subtitles are. It will display a character from the image subtitle and you have to then tell the application what the corresponding text character is. Avidemux will show you a phrase and one character for that phrase like this:

Now you must type the right character in the empty text field.

You do this because it is more accurate for you to specific exactly what the characters are than for the application to guess.

Where it says 'Current Glyph Text:' and shows an image of a character you need to enter that character using the keyboard in the box below and then click 'OK'. It does make a difference if it is a capital letter or a lower case letter. Also this process is very unforgiving at the moment. There is no undo option, so don't get it wrong!­

Get Subtitles From Dvd

Sometimes 2 characters well be selected. You should enter those two characters and click enter. This may seem to be taking a long time but when you have entered all the characters and numbers the program should fly through the subtitles. You should be able to process a 90 minute film in 5 -10 minutes.

When you are finished the '.srt' file you saved will have the right ­timecode and subtitle information in it. You can open it with a text editor and it should look something like this: