Saturday, 28 March 2009 17:45
When you want to watch a video file such as a movie or a tv series in your computer all you have to do is use the same name for bothe the video and subtitles file and most modern video players will automatically recognize the external subtitle file such as .srt and .sub. However if you want to view your video in a mobile device or with a player that doesn't support external subtitles you must somewhow embed the subtitles on the video. In this guide I will describe you how to hardcode your subtitles using VirtualDub. Just remember that embeding subs means that you will have to reencode the video file which will take some time and you might have a quality loss.
So let's start with the tutorial. First you must download and install the following applications.
XviD Codec an open source video codec which we will use to encode our video.
VirtualDub a freeware video capture and AVI/MPEG-1 processing utility. This application doesn't need installation. Just extract it somewhere. C:\Program Files\VirtualDub is a good place.
VobSub a subtitle filter for VirtualDub and DirectShow. Any video player - like Windows Media Player - can handle it. Here during the installation in the Choose Components screen select VobSub for VirtualDub and TextSub for VirtualDub and Avisynth as you see in the picture below. TextSub is the subtitler filter we are going to use.

In the Installing screen you will have to select the directory where you have previously extracted VirtualDub.

Now run VirtualDub. You will find it here: C:\Program Files\VirtualDub\VirtualDub.exe Of course you can create a shortcut in your Desktop for accessing it easier.
This is VirtualDub main window.

Go to File -> Open video file and load the file you want to embed subtitles into.
**Note: If your video files have Variable Bitrate (VBR) audio you may encounter syncronization problems. Full processing mode is recommended for those cases.

Next go to Video -> Filters and press the Add button. Select TextSub from the list. This is the filter that adds subtitles from .srt, .sub, .psb, .smi, .ssa, .ass formats into our video.

In the new window click Open and select the subtitles file you want to hardcode.

If you click the Style button you can choose a font type, font size, color, placement and outline for your subtitles.

When you are ready press Ok to close all windows. Use the slider to find a frame with subtitles and check if the result is good for you.

Next press Video -> Compression and select the XviD codec we have installed previously. If you press the Configure button you can access many settings for this codec. Check what is best for you. Better quality always means bigger file size.

Finally press File- > Save as AVI to save your video with embeded subtitles. Depending on your computer and video lenght this might take a while. In my guide I have used a 20 minute video clip on a Intel Core 2 E8400 CPU @3GHz. The proccess took around 8 minutes to complete.

I hope you enjoyed my virtualdub subtitles tutorial!
Set as favorite
Email this
Hits: 119647
Comments (79)
Subscribe to this comment's feedgood guide
thanx a lot that was very helpful now i can watch foreign movies on my xbox 360. thanx again
YOU ARE AWESOME!
I always wondered why it had to be this hard to hardcode subtitles to a file -.- But it's not too hard, and this is the real deal! This guide is the best guide YET! Even though, I wish that sometime it will come a program that hardcodes subtitles for you fast and easy. But THANK YOU for this guide! Now I can watch movies on my ps3 with subs
aaaaagh!
I've followed all instructions, but when I get to the part that says 'Use the slider to find a frame with subtitles and check if the result is good for you.', there are NO subtitles there at all!
any advice most appreciated.
Thanks
any advice most appreciated.
Thanks
I just remembered
I just remembered that I'd used DVD Flick before, and it was great, so
i'll just use it again. Way less complicated than this method for sure.
i'll just use it again. Way less complicated than this method for sure.
4gb restriction
great writeup, but what happens when my movie needs to be split in half for ps3 playback? how do i get the subs to work properly in two files? thanks
...
Thanks kenni.
You can split the movie in half with VirtualDub. Here is a VirtualDub guide to help you.
You can split the movie in half with VirtualDub. Here is a VirtualDub guide to help you.
Issue at TextSub Settings step
It worked great most time. However, I had an issue & don't know how to resolve.
Movie Pinocchio movie, I downloaded SRT file. After filter add Textsub 2.23, I then selected the SRT file under TextSub Settings window. The program didn't pick the SRT file. It keeps going back to same window. There's no other SRT file on the internet.
Please help, let me know what I did wrong. Thank you Kenni.
Sonny
Movie Pinocchio movie, I downloaded SRT file. After filter add Textsub 2.23, I then selected the SRT file under TextSub Settings window. The program didn't pick the SRT file. It keeps going back to same window. There's no other SRT file on the internet.
Please help, let me know what I did wrong. Thank you Kenni.
Sonny
...
Hi Sonny, that's strange..
Have you tried to open the .srt file with a text editor like Notepad and see if it's ok?
If you play the movie with VLC the .srt files loads ok?
Have you tried another word-wrapping style in the open subtitle window?
That's all I can think of..
Have you tried to open the .srt file with a text editor like Notepad and see if it's ok?
If you play the movie with VLC the .srt files loads ok?
Have you tried another word-wrapping style in the open subtitle window?
That's all I can think of..
...
I did not see anything wrong with the SRT file using Notepad. I tried all 4 word-wrapping style in the VirtualDub open subtitle window.
I can see subtitles when playing file using VLC or Media Player Classic - Homecinema.
By the way, I forgot to mention I am adding Vietnamese language SRT subtitles to a movie for my little niece to watch. I don't think it's a problem with the language, VitualDub works well with other SRT files.
Same SRT file works fine when using ConvertXtoDVD program to write to DVD.
Let me know what other steps I should try. Thank you.
Sonny
I can see subtitles when playing file using VLC or Media Player Classic - Homecinema.
By the way, I forgot to mention I am adding Vietnamese language SRT subtitles to a movie for my little niece to watch. I don't think it's a problem with the language, VitualDub works well with other SRT files.
Same SRT file works fine when using ConvertXtoDVD program to write to DVD.
Let me know what other steps I should try. Thank you.
Sonny
...
After over 10 successfully embed subtitles to movies, I now encountered a different issue - large output file size. For example, kid movie Happy Feet, original AVI file size slightly more than 700 MB, output AVI file with hardcode sub is over 60 GB
I don't know what I did wrong, please help. Thank you.
Sonny
I don't know what I did wrong, please help. Thank you.
Sonny
...
Thank you for this guide. I have followed it perfectly and it seemed to work. My problem is that the produced subtitles include some of the programming along the lines of Actual Subtitle . Is this a problem with my .srt file or one of the programs in this tutorial?
Thanks so much for any help here.
Thanks so much for any help here.
...
What do you mean by "some of the programming"? You can open the .srt file with a text editor like Notepad and check if it is alright.
You can also read and try my guide How to hardcode subtitles to AVI files without recompression.
You can also read and try my guide How to hardcode subtitles to AVI files without recompression.
No TextSub?
Thanks for all that!
Installed OK, opened filters, VobSub is there but not TextSub! How come?
Installed OK, opened filters, VobSub is there but not TextSub! How come?
...
During the installation of VobSub have you chosen custom installation and selected TextSub? Take a look at the first picture of this guide.
If not just reinstall VobSub and choose TextSub.
If not just reinstall VobSub and choose TextSub. totally awesome!
One of the most helpful tutorials i have come across. Very thorough. Bookmarked it, thanks!
problems under Win7 64bit
Tutorial looks good and I would really like to try it, only I keep running into problems at the step you add the filters and the SRT-file.
Ik do not get the plugin listed, even though it is installed. It's returning an error of not being a valid Win32 application.
Is this tutorial suitable for 64 bits systems or do I need to look for different solutions?
Ik do not get the plugin listed, even though it is installed. It's returning an error of not being a valid Win32 application.
Is this tutorial suitable for 64 bits systems or do I need to look for different solutions?
FIX :)
Hehe, i have same problem with not seeing subtitles after adding. That can be fixed by going to "View - Pane Layout - Output pane layout. Or by just turing off "Input pane view" in View menu. Also, you can try to maximize whole VirtualDub window and then you'll see two panes one after other, and first one, default, is input, the one that don't have subtitles.
I find out this "fix" when i start to write tutorial on Serbian language on my blog http://www.baguje.com/2010/07/...-film.html
I find out this "fix" when i start to write tutorial on Serbian language on my blog http://www.baguje.com/2010/07/...-film.html
wow
this is the most simple, direct solution for hardcoding subs. amazing. i love virtualdub so much.
Wow, and I thought the AfterDawn tutorial was easy...
I just have to say what a great tutorial! I had been just using the VirtualDub filter, but having to convert the SRT files to SSA was just an extra step that I had to do, but it didn't help me when I had a .SUB file or other type of subtitle. So not only does your tutorial provide one less step (that is, after the first time around) for me to have to do, it also makes provision for other subtitle files without having to convert them also! Two thumbs up, Kudos, etc. etc.
Thanks!
Thanks!
vobsub won't install
hi, I'm having a problem with vobsub. It wont install. it crashes on installation right after I clicked next when I choose where the virtualdub folder is installed in my computer. please help.
...
Hi Neil, try to download and use another version of vobsub. Maybe there is a problem with the one you have.
...
Oh my God, you truly happened to become my saving grace!!! I wasted HOURS and went half- mad! Thank you so, so much!
~ Elusive
~ Elusive
*cry*
i followed all the steps and everything worked great till the end when i had to save as avi, it says i dont have permission to save it in this location (and believe me i tried MANY locations!) and to contact the admin to obtain permission.... great, i am the admin! *cries*
HELP ME
help me please in in the part of selecting the subtitles file you want to hardcode. but when i select it the styles.. and ok button is not clickable only cancel and open..heLLLP Thanks
VobSub Installing issues?
When I try to install VobSub, and once it asks me to select the directory where VD is the installions freezes and closes down... If you can please reply back via email or on here. I seriously need to my parents some American movies with korean subtitles.
VobSub Installing issues on windows 7 32bit
I have the same problem as above when installing VobSub. I refer to the VirtualDub folder and freezes.
...
http://forums.afterdawn.com/t.cfm/f-158/ vobsub_freezes_when_installing_and_selecting_the_direct
ory_for_virtualdub-833806/
ory_for_virtualdub-833806/
Asian characters won't show up...
Thank you for the guide! It solved some of my other problems. However, when I input my file (which has karaoke subs in Korean), the Korean characters came out as gibberish. Do you know how I can fix this? I see that your example is also in a foreign language, so if you can please reply!
your tutorial...
i can't tell you how many problems/how large a problem this tutorial helped me solve...i gladly place myself, karmically, in your debt. i've had, for various reasons, foreign films stockpiling on 3 different ext drives for years now...only watching one occasionally b/c of not being able to watch them on anything but my computer screen. couldn't even get the subs to work on the vlc player at work for whatever(prob missing a codec?) reason/s...
and i felt all this pressure telling myself i was missing a lot of good stories...wasting disk space, too...
anyways...thank you very very much for the enlightenment...
and i felt all this pressure telling myself i was missing a lot of good stories...wasting disk space, too...
anyways...thank you very very much for the enlightenment...
doesn't recognize the file types
hi,
I've been following the tutorials and installed all programs but the movies I have downloaded are different types such as: ISO and ASF and VirtualDub does not support these.
Do I now have to convert these movies into another extention such as AVI or WMV?
hope someone can help me out !
I've been following the tutorials and installed all programs but the movies I have downloaded are different types such as: ISO and ASF and VirtualDub does not support these.
Do I now have to convert these movies into another extention such as AVI or WMV?
hope someone can help me out !
new issue
hi,
disregard previous question.
converted the movies into AVI and this works however, I always get 2 thumbnails in the virtual box iso 1 and it's not filling the box either.
why is this?
in your tut I see a filled up box (how I met your mother) but I do not get this. I see 2 same frames next to each other...
disregard previous question.
converted the movies into AVI and this works however, I always get 2 thumbnails in the virtual box iso 1 and it's not filling the box either.
why is this?
in your tut I see a filled up box (how I met your mother) but I do not get this. I see 2 same frames next to each other...
Also having problems opening subtitle file..
Seen some post about this. Having the same problem. Very irritating. Can't seem to find an answer. When I go to "video->filters->add->Textsub->open" It lets me browse to find my subtitle files, but when I select them it just goes back to asking me to browse for subtitle files. Tried with 5 different subtitle files (all work fine and open in vlc)Also tried with 2 versions of Virtual dub. If anyone knows how to fix this it would be greatly appreciated!
VobSub Freezes after selecting VirtualSub directory. After selecting Sub, OK and STYLES are greyed out.
Problem #1: When I installed VobSub, it froze after I selected which directory VirtualDub was in. But it still appeared to install properly.
Problem #2: After going to Video->Filters->Add->TextSub (In VirtualDub) and selecting my subtitle OK, STYLES and the Directory box are greyed out.
Has anyone had Problem #2 without first having Problem #1? Any help regarding this issue would be much appreciated. Also, does anyone know an alternate way to do this? I'm just trying to embed a .srt to an AVI.
Thanks,
Cody
Problem #2: After going to Video->Filters->Add->TextSub (In VirtualDub) and selecting my subtitle OK, STYLES and the Directory box are greyed out.
Has anyone had Problem #2 without first having Problem #1? Any help regarding this issue would be much appreciated. Also, does anyone know an alternate way to do this? I'm just trying to embed a .srt to an AVI.
Thanks,
Cody
issue free, until
Followed instructions, good until
I loaded the movie into VirtualDub, video, filters, add, TextSub, open, selected my sub file, hit enter and field is still empty, wont allow me to type into field.
Restarted all programs and computer, same issue. How do I get past this?
I loaded the movie into VirtualDub, video, filters, add, TextSub, open, selected my sub file, hit enter and field is still empty, wont allow me to type into field.
Restarted all programs and computer, same issue. How do I get past this?
Data problem
Ok, i used it and it seemed to work, but there is probably something i did wrong, my video data was through the roof.. It didn't even complete the movie ( i ran out of data on my computer before it was done) I currently have around 60GB of memory left on my computer ( free space ) and the video data used up all of that plus wanted more. It gave me an error that it could not finish..
Did i miss something or what? this is crazy lol
Did i miss something or what? this is crazy lol
Think i fixed the data problem
Well the projected file size looks way smaller this time around.
http://maketecheasier.com/how-to-compress-a-video-file-with-virtualdub/2009/05/31/
anyone having a similar problem to mine.. Check out the link posted above.
It helped me, Goodluck!
http://maketecheasier.com/how-to-compress-a-video-file-with-virtualdub/2009/05/31/
anyone having a similar problem to mine.. Check out the link posted above.
It helped me, Goodluck!
Can't install VobSub
VobSub crashes on installation after asking for the location of the VirtualDub directory, anyone having same problem?
Help for PS3 users only
Hey guys,
I've been using virtualdub and vobsub for a while, but now that I watch just about all my video on my PS3 I've found myself using some different options. If you're a PS3 user you're probably dealing with mkv's as well, so I've put together a guide for everything you need to know to watch video on your PS3, including subtitles. If you can't get vobsub working, give this a shot?
http://www.manolution.com/2011/06/the-complete-guide-to-playing-video-on-your-ps3/
I've been using virtualdub and vobsub for a while, but now that I watch just about all my video on my PS3 I've found myself using some different options. If you're a PS3 user you're probably dealing with mkv's as well, so I've put together a guide for everything you need to know to watch video on your PS3, including subtitles. If you can't get vobsub working, give this a shot?
http://www.manolution.com/2011/06/the-complete-guide-to-playing-video-on-your-ps3/
issue
followed steps completely but when i preview the file it shows < font color="#ffffff">SUBTITLED TEXT HERE< /font> for every line of text...wtf? How do I get rid of this?
...
Its a really great way to have the subs embeded, Only thing i really dislike is the fackt taht the file size is usually doubled, i would expect some enlargement of about 200 or 300 mbs. but more than double or double seems quite a lot. but thanks for the tutorial anyway. Its really easy and effective to work with
Help audio problems
when I go to "save as avi" I get a window to save to but when I choose to save the file to the folder I get error "Audio filter graph lacks output node" I used Windows Media Audio V2 for compression. Maybe I should not have used this compression but I was getting another audio error about audio compression when I tried to save the avi file. Help
i want to kill someone
when i try to open subtitle files there are none showing in the folder..i've now been trying to embed subtitles for the last 2 years and not 1 of these internet guides has ever worked..help before i go comit murder..please
...
whitetrash, I didn't understand what you are trying to do. You need a video file and a seperate .srt file that you have downloaded from the internet or created on your own.
Taryn, have you installed VirtualDub as I show in the first picture in this guide?
Taryn, have you installed VirtualDub as I show in the first picture in this guide?
VobSub doesn't work on Windows 7 SP1 x64
VobSub installer crashes on Windows 7 SP1 x64 after selecting the VirtualDub folder. Useless POS
nicholas c.
after adding a filter i selected a .sub file but nothing showed up... kinda mistified actually????
...
Hi Nicholas. I have tried this only with .srt subtitles. However it is supposed to work with .sub subtitles as well. Have you used the slider to move through the movie but not any subtitles appeared?
help huge temp file
I'm trying to use the tutorial to create a new avi of a movie I have the srt file for. The original file is 691 mb, Virtual Dub runs out of memory while creating the new avi. It created a file 111 gb (that is correct: 111gigs) Is it abnormal for Virtual Dub to make such a massive file during the conversion process? All I'm trying to do is add subtitles why would it need 100s of gigabytes to do this?
...
You must have forgotten to choose a video compression method such as Xvid. That's why you ended up with such a huge file. Check my second screenshot from the end.
Brilliant!
Thanks for this, just done three films and every one worked perfectly, very good tutorial, well presented and no jargon, thank you!
my converter doesnt recognize the language of .srt files
Hello there ! i recently download and installed step by step VirtualDub to embed subs in my avi files ! I found it really easy ! i only have one problem ! when i import the subs and check the slider, the subs arent in the language i want but they look like chinese or something ! The same when i play the movie with a player ! Although the subs can be recongnized they lok allien and not Greek ! I made sure the movie and the sub to have the same exactly name but it seems like nothing happens ! Any comments?
...
Fails during installation and probably would not work for the vast majority of people. Thanks for the guide though. Sometimes i wish we could just put subtitles in these files and hard coding was a simple process. There is no reason why this has to be so complicated.
Apple TV is the worst with this crap. They don't take anything that wasn't created by them.
Apple TV is the worst with this crap. They don't take anything that wasn't created by them.
Awesome
Had trouble with one conversion, where I would choose TextSub and then when I would go to select my srt file it wouldn't show up once I clicked it. A decent amount of people have listed that as a problem. The srt file was fine when I used VLC. I don't know if this is a definite fix, but all I did was open the srt file, cut and paste the text into a new notepad/txt file, and save as. Just make sure you save as ".srt". And it worked...so like I said, not sure if it will work for all, but in this instance it did. Hope this helps.
And
Oh and I don't know if it matters, but I saved the new txt file the same way the avi was named, so "movie.title.720p.avi" would be "movie.title.720p.srt"
Done everything in the instructions but textsub doesnt show up on list..
Hey, I've done everything exactly like in the guide, apart from the fact that my version of VirtualDub is 1.9.11 instead of 1.8.8 though I dont think it makes a difference. So I went to the add filters, and TextSub wasnt on the list.
Steph
Steph, if you click 'Load' and go to the 'Gabest' folder and open the 'Vobsub' folder, you can open the textsub.vdf filter and then select it from the list.
I hope that helps!
I hope that helps!
File size
Hello. I have to say I appreciate this guide very much and it has helped me a lot. However, I've noticed that when I've added a 5-10KB srt to my 700MB avi, it always ends up more than doubling the output size. So for a 700MB avi file, after hardcoding a small srt file, the output size usually ends up being around 1.6-1.7GB. It's not that big of a deal, but I was wondering if there was a way to reduce the overall size without compromising the video quality? Thanks again, you've made my life much easier.
SRT files
Hi,
Thanks for your constructive guide.
I have a problem with adding srt files. I have downloaded srt files from one site but some of them could be added to film and the others not. I can not add them at the stage of FILTER, ADD, OPEN : (the OK button is not active)
WHY?
Thanks for your constructive guide.
I have a problem with adding srt files. I have downloaded srt files from one site but some of them could be added to film and the others not. I can not add them at the stage of FILTER, ADD, OPEN : (the OK button is not active)
WHY?
Issue with Subtitles not opening with TextSub Filter *Solution*
When you try and load your .srt file with the TextSub filter, you notice that OK is greyed out and thus you can't load the subtitle.
What you need to do is:
1. Open your .srt file with for example Notepad.
2. Choose "Save As...".
3. Note in the "Save As..." window - "Encoding" = choose "ANSI".
4. Save your new encoded .srt file.
5. Your new file will probably have .srt.txt - remove the .txt and now you should be able to load the file in Virtualdub.
What you need to do is:
1. Open your .srt file with for example Notepad.
2. Choose "Save As...".
3. Note in the "Save As..." window - "Encoding" = choose "ANSI".
4. Save your new encoded .srt file.
5. Your new file will probably have .srt.txt - remove the .txt and now you should be able to load the file in Virtualdub.
64 bit fix
HI All,
This guide is a little out of date. I had the 64 bit version of virtual dub installed and had to get the 64 bit beta version of the vob sub filters to get it working. Get DirectVobSub from here: http://www.videohelp.com/tools...rectVobSub
and install. then you will have to go to where the directVobSub program installed (C
rogram FilesDirectVobSub) and copy the VsFilter.dll file into a folder named plugins in the virtual dub directory. Then rename vsfilter.dll to VSFilter.vdf and when you are in the virtual dub filters dialoug hit load and select vsfilter.vdf. Then the textsub/vobsub filters will appear close to the bottom of the list.
This guide is a little out of date. I had the 64 bit version of virtual dub installed and had to get the 64 bit beta version of the vob sub filters to get it working. Get DirectVobSub from here: http://www.videohelp.com/tools...rectVobSub
and install. then you will have to go to where the directVobSub program installed (C
rogram FilesDirectVobSub) and copy the VsFilter.dll file into a folder named plugins in the virtual dub directory. Then rename vsfilter.dll to VSFilter.vdf and when you are in the virtual dub filters dialoug hit load and select vsfilter.vdf. Then the textsub/vobsub filters will appear close to the bottom of the list. Write comment
| < Prev | Next > |
|---|