Quantcast Avisynth: How to Put Subtitles in Black Area with Right Aspect Ratio? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
09-28-2003, 04:58 PM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
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....


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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-29-2003, 02:22 AM
Edlund Edlund is offline
Free Member
 
Join Date: Jul 2003
Location: Pazardjik, Bulgaria
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
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 )
Reply With Quote
  #3  
09-29-2003, 02:45 AM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
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
Reply With Quote
  #4  
09-29-2003, 03:24 AM
Edlund Edlund is offline
Free Member
 
Join Date: Jul 2003
Location: Pazardjik, Bulgaria
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #5  
09-29-2003, 06:37 AM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
No

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



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)...
Reply With Quote
  #6  
09-29-2003, 06:41 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
If you are on AviSynth 2.52, you need to use a filter called VSFilter.dll which houses VobSub.
__________________
j3llyG0053
Reply With Quote
  #7  
09-29-2003, 06:49 AM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
Quote:
Originally Posted by Jellygoose
If you are on AviSynth 2.52, you need to use a filter called VSFilter.dll which houses VobSub.
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...
Reply With Quote
  #8  
09-29-2003, 11:58 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
__________________
j3llyG0053
Reply With Quote
  #9  
09-29-2003, 01:28 PM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
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?
Reply With Quote
  #10  
09-30-2003, 03:35 AM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
Allrighty

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
Reply With Quote
  #11  
09-30-2003, 05:32 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@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. 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.
I thank you in advance!
__________________
AudioSlave
Reply With Quote
  #12  
10-01-2003, 12:40 AM
TCB TCB is offline
Free Member
 
Join Date: Sep 2003
Location: Europe
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TCB
Sure... I'll work on a small step-by-step today... I'll post it later today
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
TMPGEnc: Aspect Ratio vs Source Aspect Ratio? Brenth Video Encoding and Conversion 3 08-14-2008 03:26 AM
Avisynth: How to convert a standard NTS 4:3 aspect ratio to a 16:9 ? jorel Avisynth Scripting 8 04-23-2004 08:40 PM
Avisynth: 4x3 aspect ratio with no borders? canon Avisynth Scripting 6 11-26-2003 05:14 AM
How to position and resize subtitles In black area? kwag Video Encoding and Conversion 0 09-30-2003 06:38 AM
Avisynth: FitCD and aspect ratio ki1ooo Avisynth Scripting 2 05-26-2002 12:01 PM




 
All times are GMT -5. The time now is 11:45 AM  —  vBulletin © Jelsoft Enterprises Ltd