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
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