View Full Version : Only RGB32 supported for VirtualDub filters with AviSynth??
storebror
20th July 2004, 18:01
Ok, i'm trying to convert my video with subtitles but they never shows up in the new outputfile. Why?
My entire script looks like this:
--------------------------------------------------------------------
#Import("D:\VirtualDub\plugins\vdub_filters.avs")
AVISource("D:\movies\The Jackal\The Jackal.avi")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\mpeg2Dec3.dll")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\VSFilter.dll")
TextSub("D:\movies\The Jackal\The Jackal.ssa")
AVISource("D:\movies\The Jackal\The Jackal.avi")
ConvertToYUY2()
BicubicResize(656,448,0,0.6,0,0,720,368)
AddBorders(32,16,32,16)
#Trim(0,179119).FadeOut(150)
#AddAudio()
#resampleAudio(41000)
SSRC(48000)
---------------------------------------------------------------------
What's my option?
manono
20th July 2004, 19:01
Hi-
You probably should have continued this in your other thread. However, when I said before, "Install VobSub along with the TextSub Plugin for VDub and AviSynth ", I wasn't positive you had the TextSub plugin. It's not installed by default. So, maybe reinstall VobSub, hit the "+" and check the appropriate box.
And I'm far from an AviSynth expert, but I don't quite understand why you are using AviSource twice with the same movie. I wouldn't be surprised if the second AviSource knocked out the subs. I think I'd do it like this:
LoadPlugin("D:\Program\AviSynth 2.5\plugins\mpeg2Dec3.dll")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\VSFilter.dll")
AVISource("D:\movies\The Jackal\The Jackal.avi")
BicubicResize(656,448,0,0.6,0,0,720,368)
TextSub("D:\movies\The Jackal\The Jackal.ssa")
AddBorders(32,16,32,16)
SSRC(48000)
ConvertToYUY2()
If you want the subs in the black, then put Textsub after the AddBorders, and play with the positioning if you have to. I guess you know better than I if the ConvertToYUY2() is needed (CCE, maybe?). And I don't know if you need the SSRC line. I strip the audio from the .avi, convert it if necessary, and mux it again after encoding. But maybe you have your own reasons for that.
But to answer your question; since TextSub is an AviSynth filter, then you don't need to be in RGB32.
And I'm willing to stand corrected by my betters on anything I've said. But I use TextSub with my SSA subs quite a lot, so that's at least one thing I know about.
storebror
20th July 2004, 19:35
Thanks a lot:D It finally Worked! I got the subs in place. Must have been something with the position of the lines. I had the Textsub installed and everything. And yes, i'm doing the encoding in CCE. I'm also using the SSRC(48000)-command because i read that this makes the audio stay in sync with the video while encoding..or? If not, i have a problem since i haven't found out of any proper way to sync that m2v-file with the separate audiofile except for wavelab 3 which i don't have. Did tried in Soundforge but it didn't worked. and how does one do that in eg. CoolEdit?
manono
20th July 2004, 23:19
Good. Glad it's working. You've been working on this for awhile, haven't you? But just think how much you've learned in the process. :)
Sorry, I don't know anything about audio inside of an AviSynth script. Like I said, I always handle the audio separately. However, if it's a non-progressive asynch (it's off by the same amount all the way through), then you fix it by adjusting the delay when muxing, or by adding silence. If it's a progressive asynch (maybe it's in synch at the beginning, but off at the end), then you can stretch the audio. Sometimes making sure the audio is exactly the same length as the video works. Sometimes it's trial and error. CoolEdit Pro can stretch the audio (Time/Pitch->Stretch in v 2.0), but it does a pretty lousy job of it, often making it warbly. BeSweet can (usually) do it. But if the AviSynth advice you were given works, then stick with that.
storebror
20th July 2004, 23:34
Yes. You're right about that. I've been working on this for quite a while and it's really fun(hard like hell though). According to my opinion so far,(have messed with quite alot of progs by now :p ) an avisynth script combined with CCE in the "right" hands produces an awesome great result. I'm almost there..
Also learned a LOT of stuff thanks to all you people out there! Internet is fantastic.
Thx:D
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.