digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: How to put subtitles in black area with right aspect ratio? (http://www.digitalfaq.com/archives/avisynth/5866-avisynth-how-put.html)

TCB 09-28-2003 04:58 PM

Avisynth: How to put subtitles in black area with right aspect ratio?
 
I'm using subtitles (srt) with my movies. So I add the Textsub("(url to subtitle)") line manually in the avs scripts that I use. I'm using Avisyth 2.52...

I have no problems adding the subtitles, but have one problem: when I add this line before the resize lines, the subs are in the right aspect ratio, but can't be placed in the black borders. To be able to place them in the black borders, I have to add the line after the resizing lines. Now I have the real freedom of where to place the subs, but have one big disadvantage: they are in the wrong aspect ratio....

When I start tmpgenc and first select a movie (not a avs script), then a kvcd script, I can place the subs everywhere i want. From the black borders, to the movie, to even the top-borders. The subs are also always in good aspect ratio. Problem with this method is that I can't use the avisyth scripts....


:arrow: My question is: can I place subtitles in the black borders, use avisuth scripts AND have the subs displayed in the right aspect ratio?

Thanks a million for the help :D

Edlund 09-29-2003 02:22 AM

Yes, you can name your .srt file the same as the .avs file and then VobSub appears during the encoding and you can place the subs where you want (I think that's what you do when it's not .avs, so you can use .avs too but just set the same name as the subtitles-file 8) )

TCB 09-29-2003 02:45 AM

thanks for the suggestion.... :( but it didn't work.... when I load the avs file in tmpgenc, vobsub gets loaded, but the whole movie looks corrupt: heavy interlacing, up-side-down, subs in weird colours, screen split in two: right side black with nothing, left side divided in three with two versions of the movie....

Weird problems... Without renaming the srt file to the same name as the avs file, it all worked like a charm. So it shouldn't be the script..

However, from what I could see, the subs were placed somewhere in the black area, so with a bit of tuning we might have the ultimate sollution :D

Edlund 09-29-2003 03:24 AM

Oh yes, you are right, there are problems with vobsub and .avs
Then why don't you convert the .srt file to .sub? This way the subtitles are shown well. Or if you want to put them exactly on the black borders you can convert them to .ssa, I use the program sub2ssa and in this program you can define how far the subtitles will be displayed from the bottom.

TCB 09-29-2003 06:37 AM

No :?

.sub, .srt, .ssa ....... as soon as I open tmpgenc and load the avs, vobsub gets loaded and I get this screen:

http://www.digitalfaq.com/archives/error.gif

It's pretty weird, considering that Tempgenc has no problem adding the subs using an avi as source, or a avs (when the sub-line is added to the script)...

Jellygoose 09-29-2003 06:41 AM

If you are on AviSynth 2.52, you need to use a filter called VSFilter.dll which houses VobSub. :wink:

TCB 09-29-2003 06:49 AM

Quote:

Originally Posted by Jellygoose
If you are on AviSynth 2.52, you need to use a filter called VSFilter.dll which houses VobSub. :wink:

I have the .dll..... I have no problems with creating files with subtitles, whether it's with an avs or an avi. The only problem is that I want to put the subs in the black border, using an avs and have no aspect-ratio problems with the subs...

Jellygoose 09-29-2003 11:58 AM

ok, I see your problem, however, I haven't seen that kind of problem with any of my encodes. I just thought you might still be using the old VobSub.dll... :roll:

TCB 09-29-2003 01:28 PM

So you have -for example- made a script called movie.avs, and you have a movie.srt file in the same directory? And when you load the avs in tmpgenc, the subs are placed in the black bar of the movie?

TCB 09-30-2003 03:35 AM

Allrighty :lol:

After searching on a whole bunch of terms on this messageboard last night, I found the sollution. Use the .srt.style file to change the ScaleX. Just divide (source Xscale / (S)KVCD Xscale) and you'll have the right number that you've got to add to the .srt.style file. Now you can add the TextSub("(link to your subtitle file)") line in the avs script, after the resize line. So you can place the subs in the black border, use AVS scripting and maintaining the right aspect ration for the subtitles.

http://www.kvcd.net/forum/viewtopic.php?t=4935

audioslave 09-30-2003 05:32 PM

@TCB

Could you please show exactly what you did to get this to work? I've been trying to put the subs in the black borders myself (with .srt files) but I ended up with the EXACT same picture that you posted earlier. :cry: So, what I need to know is what numbers you changed, on what file you changed them, and how you came up with these new numbers. :roll:
I thank you in advance! :wink:

TCB 10-01-2003 12:40 AM

Sure... I'll work on a small step-by-step today... I'll post it later today :D


All times are GMT -5. The time now is 07:35 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.