PDA

View Full Version : filename as subtitle


perthmetro
2nd June 2007, 16:18
Hi All,

I was hoping I could insert the filename of the home movie i'm encoding as a subtitle on the new encoded movie. I asked this question some time ago but just for virtualDub and not AutoGK and got it working, but i don't know how/where to insert it into AutoGk... I'm a real dummy at this.

Thanks Pete

function FindStrR(string s, string t)
{
index = FindStr(RevStr(s), RevStr(t)) - 1
return (index == -1) ? 0
\ : StrLen(s) - StrLen(t) - index + 1
}


function LabeledAVISource(string filename)
{
baseOffset = FindStrR(filename, "\")
baseOffset = baseOffset != 0 ? baseOffset : FindStrR(filename, "/")
extOffset = FindStrR(filename, ".")
Assert(extOffset != 0)
AVISource(filename)
Subtitle(MidStr(filename, baseOffset + 1, extOffset - 1))
return last
}

http://forum.doom9.org/showthread.php?t=108605

perthmetro
12th June 2007, 10:14
anyone?

CWR03
12th June 2007, 18:18
You can create your own text subtitle, which is just the text you want displayed along with the start and end times it will be shown.

perthmetro
14th June 2007, 18:32
i want to do a whole heap of files so i was hoping i could incorporate this script... your way needs me to manually put in every subtitle

perthmetro
11th July 2007, 13:33
Any takers on the above? I'm willing to pay someone if they can solve my problem.