Log in

View Full Version : Adding Subtitles


PrinceAli0
3rd September 2002, 21:16
Hey,

I'm creating DivX encodes for some animes I have. I can easily created the DivX AVI file now without any issues and they look pretty good. I know with the built in VobSub portion of GordianKnot you can configure colors to your subtitles. What I would like to do is use my own font type and colors. I know how to use Sub Rip to OCR my subltiles from the VOB and then check spelling, ect. Then I use Sub Station Alpha to change the font and color, then convert/save it to a .sub file but when I load this into Gknot it doesn't work, I get an error. How do I add the better font type and color subs I created in SSA an Sub Rip to add to my video. Is there some plugin I have to use with NanDub and encode in Nandub.


Also I've noticed that some people have their names during the tiles of the rips or even throughout the video file. How does one go about doing that or learning how to do that? Please help.

Thanks

PrinceAli0

manono
3rd September 2002, 22:41
Hi-

After you've made the SSA subs, you'll then have to edit the .avs you created through GKnot and use the TextSub Plugin that is installed along with VobSub. And don't change them back to SUB format-leave them as SSA. Add these lines to your script:

LoadPlugin("Path\To\TextSub.vdf")
TextSub("Path\To\Movie.ssa")

Look in the Plugins Directory of VDub and Nandub or in VobSub to make sure the TextSub.vdf is in there. Otherwise reinstall VobSub making sure to install the Options, or whatever they're called.

As for putting "Encoded by PrinceAli0" or whatever you want into the SSA file, it's easy. Open the SSA file in Sub Station Alpha and go Edit-Add New Event, type what you want, and set times for beginning and end. You'll figure it out. Good luck.

PrinceAli0
4th September 2002, 06:52
manono,

I did what you suggested and added that information into the .avs file, the issue I'm having now is even more complicated. When I open the .avs file in VDub I get the following error on the bottom task bar:
Internal error:MMX state left on T:\projects\VirtualDub_old\main\VideoSource.cpp:1101

Next, when I try to play the file I get the following error window:

VirtualDub Error

Avisynth read error:
Avisynth: caught an access violation at 0x010dbbbf, attemption to read from 0x04e26000

I cannot encode the file after this as I get an error. I've double checked the directory and file placement for the TextSub.vdf and the .ssa file I have, both are correct. The problem is when I remove the TextSub and .ssa lines from the .avs file it can preview the video and even encode the file (no passes have been made yet). I can open my .ssa file in Sub Station Alpha and everything plays fine without errors. I even went so far as to use SubRip and re-rip/ocr the subs again to a new .ssa file and did not change the fonts, ect. and still I get this error whe opening the .avs with the TextSub.vdf and the .ssa line included. Is there something I'm doing wrong, please let me know.

BTW, I have the whole anime series on one .d2v file and I'm using the trim command in the .avs file to divide up the individual episodes. The .avs file was created in GordianKnot, I'm also using the alternate IVTC method posted in your XviD guide. I've created the .mp3 file for audio but its not included anywhere yet as I plan on muxing that later on. (I don't think there is an issue here but I felt it might help you helping me.)

Thanks
PrinceAli0

manono
4th September 2002, 10:38
Hi-

I think I know what your problem is, but I want to go through it step by step to make sure. First comment out (put # in front of) the TextSub line to make sure the path of the LoadPlugin line is correct. If you get no crash when opening the .avs in VDub, then the LoadPlugin line is OK. If you crash, then comment out the LoadPlugin line also and open in VDub. If it still crashes, then the error is someplace else in the .avs. Post the .avs here if you can't figure out the problem. If it doesn't crash, then the error is in the LoadPlugin path. Fix the path. Make sense so far? Everything OK so far?

Now, here's where I think the problem is. Remove the #s from Load Plugin and Textsub. You have to name the Movie.ssa in the TextSub line the same as the Movie.d2v in the mpeg2source line. Don't change the name of the .d2v. Change the name of the SSA to match the .d2v. So, for example, it might look something like this:

LoadPlugin("E:\DIVXST~1\GKnot\TextSub.vdf")
mpeg2source("D:\Claire's Knee\Claire's Knee-30fps.d2v")
Textsub("D:\Claire's Knee\Claire's Knee-30fps.ssa")

I hope that fixes it. You think I should have mentioned that in the first place? Yes, probably (sorry-I forgot). But on the other hand, a search would easily have turned up the information.

Now when you add "Encoded By PrinceAli0" into the SSA file, you also have to put "with some little help from manono";) Good Luck.

PrinceAli0
4th September 2002, 16:04
manono,

You are a gift from heaven. It was in the placement of the Textsub line. I had it under the Subtitles field where VobSubfiles were referenced. I put it under the mpeg2source like in your example and it worked :) Encoding small snips here and there to test the different options in XviD. Thank you so much. BTW where would I serach for stuff like this to check myself. Do I just do a search in the forum ?? Let me know this way I don't bug ya. If this all works out I'll have a special thanks to manono in my title :) Thank you sooooooooooooooo much !!!!!!


PrinceAli0