“The time has come…to talk of many [technologies].” –Lewis Carroll(‘The Walrus and the Carpenter’)
Step 3(a): Merging(Hardcoding) Subtitles With AVI(DivX/XviD) Files Using AviRecomp
When converting a movie from a DVD to the AVI(DivX/XviD) format, the subtitles can be included in the output file by selecting appropriate settings from the conversion software(AutoGK, SimpleDivX, #1 DVD Ripper). Some applications hardcode the subtitles in the output file whereas some also allow external subtitle files to be created. But if you have obtained the AVI files from a different source than a DVD(a friend, Internet etc) then you have to search for suitable subtitles for the movie on the Internet and use a media player that supports displaying the subtitles from external files to play it. VLC Media Player is one such application that supports displaying subtitles in various formats(SRT, SUB etc). One usage scenario is described below:
- You own the DVD of a film but don’t have the patience to use a software to convert it, along with the subtitles, to the compressed AVI format. Or perhaps the DVD doesn’t include the subtitles for the language of your preference at all. In such cases, you can search and download the subtitle files for the film from the Internet. Here are some options to search for the subtitles in various languages:
http://www.divxsubtitles.net/
http://www.opensubtitles.org/
http://subscene.com/ - Now you can view the film with the subtitles that you have downloaded using a media player like VLC Media Player or Windows Media Player. Keep the AVI file and the subtitle file(s) in the same folder and give them the same base file name(they will have different file extensions). If you run the AVI file now, the subtitles will automatically be displayed. You can also manually load a subtitle in VLC Media Player from the ‘Open File’ dialog box.
- The above method works fine as long as you play the movies on your computer using a decent media player. If you would rather watch it on your favourite handheld device(iPod, Creative Vision:M, Nokia N800, Sony PSP, etc), its media player may not support displaying subtitles from external files. In that case, the only option you have is to hardcode the subtitles in the AVI file itself. To do this, I use the Free software AviRecomp, and the procedure to merge/hardcode the subtitles with the AVI file using it is given below. Once the subtitles are thus merged, the resultant AVI file can then be converted to the native formats of different handheld devices(topic of next post).
Merging Subtitles with AVI Files Using AviRecomp
- This is how the example video looks before it is merged with the subtitles(English). We will see the result of the merge process at the end of the procedure to see the difference.
- After installing AviRecomp on the computer, start it from the Start menu. The main window of the application looks like this.
- In the “Source & Output” tab, click the “Open AVI” button and select the AVI file you want to merge the subtitles with. Then click the “Save AVI” button and select a folder where you want to store the output file. Finally, select the size of the output file(if you don’t want to recompress/resize, specify the same size as that of the original file – this will be faster) in “New AVI Size” drop-down box.
- Go to the next tab by clicking on “Additions” button and check the “Enable/Disable” checkbox in the “Subtitles” panel. Then click the “Load Subtitles” button and select the subtitle file that you have downloaded from the Internet(see Step 2 at the top of the post).
- In the “Settings” tab, you can specify various settings such as the priority with which AviRecomp should be run, if the temporary files or the source file should be deleted at the end etc.
- Go to the last tab by clicking the “Queue” button and click the button “Add to Queue” to add this job the to queue. The above steps can now be repeated with more AVI files and added to the queue if multiple merge operations are needed to be performed.
- When ready, click the “Start” button to start the merge process. The status will change from “Waiting…” to “Running…” state as a result.
To see the % progress of the merge process, look at the title bar of AviRecomp in the Windows taskbar.
- After the merge process is finished, go to the folder where the output file is created(as selected in Step 3) and play the file. The subtitles should now be hardcoded into the file. This file can now be converted to the native formats of different handheld devices to enjoy viewing them along with the subtitles.
You can search for a different application that is specifically made for merging the subtitles with the video files but AviRecomp can be used for purposes other than mere subtitle merging. It also allows adding black borders to the movie and place the subtitles on them. It also installs many other useful video related software like VirtualDub, AviSynth, VobSub etc, that it uses for doing its own job, making it unnecessary to download and install these software separately. AviRecomp is a very useful Free software to have on one’s computer.
| Print article | This entry was posted by tabrez on May 20, 2007 at 2:46 pm, and is filed under Video. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
Hey man… you help me so much pal. This wonderful… I never expected a program that make all i need.. the problem is… it could pass to MPG too… hehe, but to Xvid can already help…
O BRASIL AINDA SERÃ UMA POTENCIA MUNDIAL!!!!!!!!
about 1 year ago
Hi,
I have managed to hard sub an avi file which shows the subs and plays the audio and video perfectly with VLC player but if I try to burn the avi to a divx disc or transfer the movie with a portable storage device I end up with three separate files again.
How do I write the movie to a divx or dvd disc please?
I would really like just one file to burn as a date file with Nero if possible.
about 1 year ago
alan: If you have hard-coded the subtiltes in an avi file, then you need to burn/copy only the avi file to a CD or PMP. Try copying the harcoded AVI file to a different location on the hard disk and play from there to see if subtitles are working correctly. Then copy that single file to your PMP and see if you can see the subtitles.
about 1 year ago
Hi, I followed instrucitons and got my AVI file with subtitles. I used an SRT file for subs. Problem is every subtitle comes out with the font color header.
i.e. subtitle
How do I just get the subtitle? Why is it showing the font color coding?
about 1 year ago
hello. when the converted it. they give the video and the audio seperately. is there a way i can add the sound into the video itself as well?
about 1 year ago
Hi,
While the merger is taking place, i am unable to see the progress (%) in the taskbar. plz advise.
Thanks
about 1 year ago
my first convertion was successful except the sound started to delay about 2-3 seconds. it was fine before the hardcoding the subtitles though. any suggestions?
about 1 year ago
it took me 4 hours for 500MB DivX. whew
about 1 year ago
I tried to merge with chinese subtitle, but it doesn’t works. If I convert with ConvertXtoDVD, I’m running with NJStar Communicator (chinese)and it works!
about 1 year ago
I have tried to merge subtitles as described above. When I run it, the status goes as follows:
Demuxing video stream
Demuxing audio stream
Running first pass
First pass failed
What’s going on? Thanks in advance for any help!
about 1 year ago
I guess the log might be helpful. What is an avisynth open failure?
**3/1/2009 11:49:08 PM** First pass duration was: 0 hr 0 min. 0 sec.
**3/1/2009 11:49:08 PM** EXCEPTION: Error during the first pass!
**3/1/2009 11:49:08 PM** Avisynth open failure:
AVISource: couldn’t locate a decompressor for fourcc xvid
(C:\Users\Owner\Videos\wrong number_001_turkishsubt.avi_AVI ReComp_temp\script.avs, line 1)
**3/1/2009 11:49:08 PM** Temporary files have been protected against being deleted.
**3/1/2009 11:49:08 PM** Total working time: 0 hr 0 min. 16 sec.
about 1 year ago
Note – I have downloaded the xvid codec.
about 1 year ago
Thanks, well written, good read, works brilliantly.
about 1 year ago
it might be nice, but i’m loosing my mind for he last 3 days trying to make this to work. i converted a WMV file (avi converter) into AVI and when i put it into this program it says it has an unsuported audio file. and i tryed to change the audio outputs (from mp3, to ac3, etc…) and it stil deosnt work. all i need is a program, where i can make subtitles for a 6 minute WMV video and merge it with subtitles. but that seems harder than climbing the Mount Everest. might be because i’m using free software, but i’m soo happy that i didn’t spendany money for programs that fuck with my head for 3 days and don’t work no matter what.
about 1 year ago
[quote comment="137535"]it might be nice, but i’m loosing my mind for he last 3 days trying to make this to work. i converted a WMV file (avi converter) into AVI and when i put it into this program it says it has an unsuported audio file. and i tryed to change the audio outputs (from mp3, to ac3, etc…) and it stil deosnt work. all i need is a program, where i can make subtitles for a 6 minute WMV video and merge it with subtitles. but that seems harder than climbing the Mount Everest. might be because i’m using free software, but i’m soo happy that i didn’t spendany money for programs that fuck with my head for 3 days and don’t work no matter what.[/quote]
Hi guys,
forget about the above (first one) option! when googling around I found another small (800KB) freeware that does the job in 2-3 minutes (for a movie of 700 MB).
check the link yourselves.
FYI my setup is HP Mediasmart connect x280n running on laptop vista premium 32bit.
http://www.calcitapp.com/AVIAddXSubs.php
the subtitles are hardcoded on the fly AND you can stream your movie with any media receiver!
happy watching!!
about 1 year ago
Thnx men , i really prisciate your work and the good explanation :d , it works very vell :D regards
about 1 year ago
I agree
[quote comment="130813"]Thank u so much It’s the best topic on the net.[/quote]
about 1 year ago
WOW thanks a lot you did saved me, and your teaching style is just amazing :D
about 1 year ago
Hello, I read till about 50 and gave up. My problem is that the subtitles appear too small after i hardcode (and before, but when i watch on my laptop i can adjust the fonts via Vobsub) however, i want to burn a DVD and they appear very small. I tried openning the srt file copying the contents and pasting on a notepad (txt) and saving unicode format and increasing the size of the font, but no matter how much i enlarge the font nothing happens same small fonts after hardcoding this is killing me for the past week i read so much shit. pleeease help (btw, the subtitles are in arabic so i have less control because they appear in a funky language) Anyway, what do you suggest?
about 1 year ago
Well done! Thank you so much for helping!
about 1 year ago
I noticed this will not work if your avi has two audio stream, what do you do in this case?
about 1 year ago
Uhh.. Thanks for this but I need help..
I am able to do all the things until the 6th part…
When I click the ‘Add to quote’ button, it pops up a warning that says theres is not enough space..
But the space needed for this movie is only 698.5MB and the disk space available is 900+MB.. Can you give me any help..? D:.. Im getting irritated..
about 1 year ago
the first pass took 1hr15min.. thats ok.. but after the first pass , the second pass is taking 4hrs 23min..whats the reason..??pls help..this is for a 700MB movie..
about 1 year ago
i have a problem when using arabic subtitle, can u tell how to use arabic title in this program. thank u
about 1 year ago
Hi, I have ripped the film Letters from IwoJima and created it into an AVI file successfully. The quality was great, crystal clear. Then when i hardcoded english subtitles, the quality became crap, HUGE pixels. The original siz was 1.4 gb and thats what i put as the new size but the final file was 500 mb. What should i do?
about 1 year ago
I just can’t thanks you enough for this tutorial, it really helped me after downloading about 9 different programs to merge .avi files with .srt files.
After I found this this website all my problems finished, recommended 100%!!
Thanks a million!!!
about 1 year ago
[quote comment="137657"]I just can’t thank you enough for this tutorial, it really helped me after downloading about 9 different programs to merge .avi files with .srt files.
After I found this this website all my problems finished, this program has all you need recommended 100%!!
Thanks a million!!![/quote]
about 1 year ago
i tried to do this but after it finished the movie still did not have any subtitles what do i do?
about 11 months ago
Hi, what that means??? Somebody can help me, please??
DirectShowSource: Could not open as video or audio
No combination of filters could be found to render the stream. Thank you in advance.
about 11 months ago
Hi. The subtitles from the SRT are now appearing on the AVI (thanks for the tutorial on how to do this) however the HTML coding that makes up the SRT is also appearing as subtitles, e.g. segment of the SRT:
Spain, 1984
The subtitle “Spain, 1984″ is appearing on the AVI, and overthat is also written “Spain, 1944”
Why is that and how can it be stopped? Thanks.
about 11 months ago
Update to my post #83: I removed all the HTML coding (find & replace in notepad) and re-encoded the AVI + SRT – it now displays perfectly.
about 10 months ago
A grrrrrrrreat help to me :)
Thanks a lot dear
God bless you :)
about 7 months ago
I’ve down loaded a copy of Avatar with german subtitles when the Native speak is there a way to change the subtitle language from german to english.
about 7 months ago
[quote comment="137065"]I have added the output file of the process. I believe i might just need to install the Virtualdub Plugin.
**20/04/2008 11:28:16 PM** Running first pass…
**20/04/2008 11:28:17 PM** First pass failed :( .
**20/04/2008 11:28:17 PM** First pass duration was: 0 hr 0 min. 1 sec.
**20/04/2008 11:28:17 PM** EXCEPTION: Error during the first pass!
**20/04/2008 11:28:17 PM** Avisynth open failure:
LoadVirtualdubPlugin: Error opening “C:\Program Files\AVI ReComp\Filters\textsub.vdf”
(D:\Other\Movies\Counterfeiters.avi_AVI ReComp_temp\script.avs, line 1)
**20/04/2008 11:28:17 PM** Total working time: 0 hr 2 min. 44 sec.[/quote]
I have the same problem like that >< after many programs, I found this most successful to me and then this suddenly happened at the end, I'm sad at that point, Please help me out with this problem!!! WHy does it fail at the first pass??? What happened?
about 6 months ago
Does this program only work for avi files or can it work for mp4 also?
about 6 months ago
Hello,
I’m trying to play MKV files on my xbox 360 which i bought to play HD content on my TV. So I have a movie that I want to play on my xbox
I currently use Moyea Converter to get the MKV-AVI but I lose quality of the audio by using it. It seems only to convert to stereo 128 kpbs (maybe because I’m using the trial) This allows me to play the movie with HD quality but the sound is not as good as I want. I got the system to play at the top (without the cost of a PS3). Then I get the free subtitles somewhere and I use AVI ReComp to hardcode them onto the movie/tv show because my girlfriends english is not perfect or some movies are in foreign languages.
I was hoping to find some easier way to do this. I’ve tried using Media Coder but it doesn’t start all the time, seems to have audio issues with the client, or sometimes no output. I’m pretty good with software but this stuff is all new to me. Please can someone help me. I would really appreciate it. The guides and all that have been confusing usually with some key point or information not clearly explained.
Thank you
about 6 months ago
[quote comment="137626"]the first pass took 1hr15min.. thats ok.. but after the first pass , the second pass is taking 4hrs 23min..whats the reason..??pls help..this is for a 700MB movie..[/quote]
I have the same problem, help me please
about 6 months ago
Hi! Thank you for the tutorial. It’s extremely user friendly. However, I am having a problem that I can’t seem to conquer. Although I follow the tutorial to the letter, my susbtitles still seem to be out of sync in the film. They usually appear after the on-screen dialogue. Can you tell me what I am doing wrong and how to fix it? Thank you.
about 6 months ago
Works like charm! :) Thanks!
about 5 months ago
[quote comment="138203"]Hi! Thank you for the tutorial. It’s extremely user friendly. However, I am having a problem that I can’t seem to conquer. Although I follow the tutorial to the letter, my susbtitles still seem to be out of sync in the film. They usually appear after the on-screen dialogue. Can you tell me what I am doing wrong and how to fix it? Thank you.[/quote]
Had the same problem. I then wrote my own tool, and made it freely available. can be downloaded from http://users.telenet.be/srtburner. Try it and let me know if your subtitles are still out of sync.
about 1 day ago
Thanks a lot! I’ve been trying to get a fast software to do this and this one is great, and above all…FREE!!!
Well Done