View Full Version : Why subtitle doesn't work?
unplug
15th December 2004, 03:06
I tried to create subtitle with function textsub in vsfilter following the example of textsub package below. I saved it as sub.ssa and created the following avs file.
v1=avisource("seahorse.avi").textsub("d:\temp\sub.ssa")
return v1
I opened the avs file with virtualDub 1.6.1 and the movie played but no subtitle displayed. I wonder why there is no subtitle displayed. Anyone can help?
using: virtualdub 1.6.1
avisynth 2.54
-------------------sub.ssa start---------------
[Script Info]
; This is a Sub Station Alpha v4 script.
;
ScriptType: v4.00
Collisions: Normal
PlayResX: 352
PlayResY: 240
Timer: 100.0000
[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour
, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, Ma
rginR, MarginV, AlphaLevel, Encoding
Style: Style1,Arial,32,&Hffffff,&H000000,&H404040,&H404040,0,0,1,2,0,2,30,30,40,
0,0
Style: Default,Arial,18,&Hffffff,&H00ffff,&H000000,&H000000,-1,0,1,2,3,2,20,20,2
0,0,1
[Events]
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: Marked=0,0:02:12.69,0:05:13.92,Style1,Comment,0000,0000,0000,,San Fran
cisco, 1876 (1st)
Dialogue: Marked=0,0:07:23.37,0:10:24.96,Style1,Comment,0000,0000,0000,,Er ist u
nverschamt. (2nd)
-------------------sub.ssa end---------------
esby
15th December 2004, 16:38
can we assume that:
1- the plugin is autoloaded.
2- the script display something when trying to open it with the textsub vdub filter counterpart?
esby
lamer_de
17th December 2004, 12:47
Style: Style1,Arial,32,&Hffffff,&H000000,&H404040,&H404040,0,0,1,2,0,2,30,30,40,0,0
I'm pretty sure that your style definition is wrong. I only use substation to do it, so it's always in decimal, but seems that newer progs put it in hex. Anyway, it should look like this:
Style: Default,arial,20,&H00FFFFFF&,&H00554400&,&H00FFFFFF&,&H05EDFF55&,-1,0,1,2,0,3,30,30,30,0,0
Please note the added & at the end and that the color information consists of 4 bytes, not 3. Quick c/p from another document (German, but your subs are in German, so I'm assuming you understand it. Else run it through an online translator):
Die Farben: der "SSA-Farbcode" ist nicht wie der gewöhnliche in 3 Bytes geteilt: RR GG BB, sondern besitzt einen Extrabyte für den Alphawert (00(solide)-FF(transparent)) und der Wert wird rückwärts erkannt: AA BB GG RR. (Die Farbe wird bei SSA oder XS immer in Dezimalzahlen angegeben)
CU,
lamer_de
unplug
18th December 2004, 03:17
I changed the style according to your suggestion. But the result is the same as before (no subtitle display). BTW, I just use the example of the textsub package. I don't know German yet. Could you provide me a sample ssa that can work with the subtitle package?
tedkunich
18th December 2004, 06:40
Originally posted by unplug
I changed the style according to your suggestion. But the result is the same as before (no subtitle display). BTW, I just use the example of the textsub package. I don't know German yet. Could you provide me a sample ssa that can work with the subtitle package?
Here is an example....
[Script Info]
Title: <untitled>
Original Script: <unknown>
ScriptType: v4.00
[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,AlternateGothic2 BT,26,14474460,12632256,12632256,6579300,0,0,1,1,0,2,30,30,10,0,0
[Events]
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: Marked=0,0:49:21.08,0:49:22.67,Default,NTP,0000,0000,0000,!Effect,{\b1}Going Somewhere, Solo?{\b0}
Dialogue: Marked=0,0:49:28.01,0:49:29.63,Default,NTP,0000,0000,0000,!Effect,{\b1}It's too late.{\b0}
Dialogue: Marked=0,0:49:29.97,0:49:32.38,Default,NTP,0000,0000,0000,!Effect,{\b1}You should have paid him when you had the chance.{\b0}
Dialogue: Marked=0,0:49:32.80,0:49:35.76,Default,NTP,0000,0000,0000,!Effect,{\b1}Jabba's put a price on your head so large...{\b0}
Dialogue: Marked=0,0:49:36.01,0:49:38.81,Default,NTP,0000,0000,0000,!Effect,{\b1}...every bounty hunter in the galaxy will be looking for you.{\b0}
Dialogue: Marked=0,0:49:39.39,0:49:40.98,Default,NTP,0000,0000,0000,!Effect,{\b1}I'm lucky I found you first.{\b0}
Dialogue: Marked=0,0:49:43.73,0:49:47.02,Default,NTP,0000,0000,0000,!Effect,{\b1}If you give it to me, I might forget I found you.{\b0}
Dialogue: Marked=0,0:49:50.53,0:49:52.20,Default,NTP,0000,0000,0000,!Effect,{\b1}Jabba's through with you.{\b0}
Dialogue: Marked=0,0:49:53.49,0:49:57.12,Default,NTP,0000,0000,0000,!Effect,{\b1}He has no time for smugglers who drop their shipments...{\b0}
Dialogue: Marked=0,0:49:57.33,0:49:58.95,Default,NTP,0000,0000,0000,!Effect,{\b1}...at the first sign of an Imperial cruiser.{\b0}
Dialogue: Marked=0,0:50:02.66,0:50:06.50,Default,NTP,0000,0000,0000,!Effect,{\b1}You can tell that to Jabba. He may only take your ship.{\b0}
Dialogue: Marked=0,0:50:08.84,0:50:09.92,Default,NTP,0000,0000,0000,!Effect,{\b1}That's the idea.{\b0}
Dialogue: Marked=0,0:50:10.51,0:50:14.01,Default,NTP,0000,0000,0000,!Effect,{\b1}I've been looking forward to this for a long time.{\b0}
unplug
20th December 2004, 02:52
Thanks for your code. But no subtitle shown also. :confused:
toysoldier
22nd December 2004, 07:39
tedkunich:
I think vdub cann't autoload subtitle,after you opened you avi in vdub, you should open "filter",then select "vobsub"filter (or textsub? sorry , I cann't remmber exactly), after add vobsub filter,
it's message bar let you add your subtitle file, and you can set font,color,etc.finish this setting, I think subtile will be shown in avi bottom.
tedkunich
23rd December 2004, 03:24
Originally posted by toysoldier
tedkunich:
I think vdub cann't autoload subtitle,after you opened you avi in vdub, you should open "filter",then select "vobsub"filter (or textsub? sorry , I cann't remmber exactly), after add vobsub filter,
it's message bar let you add your subtitle file, and you can set font,color,etc.finish this setting, I think subtile will be shown in avi bottom.
I think this whould be directed to the original poster. I use the VSFilter plugin for Avisynth without problems.
T
toysoldier
25th December 2004, 07:48
@tedkunich:
Sorry,this is my mistake.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.