Log in

View Full Version : .avs files gets edited when encoded by DVD RB?!


jjabba
18th July 2006, 08:11
I just made a DVD rip where I had to manually edit some of the .avs files between the "Prepare" and the "Encode" steps. But it seems DVD RB is editing the avs files during or perhaps right after it's done encoding a segment.
For example, one of my .avs files looked like this when I started the encoding:
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:01, CELLID:02
#------------------
LoadPlugin("C:\Program\DVD-RB PRO\DGDecode.dll")
LoadPlugin("C:\Program\AviSynth 2.5\egna_plugs\GreedyHMA.dll")
src = mpeg2source("H:\06 DVDRIPPING\WORKING FOLDER\D2VAVS\V04.D2V")
src.FieldMatch()
function FieldMatch(clip c) {
global cc = c
global nn = c.DeleteFrame(0)
global pp = c.DuplicateFrame(0)
return ScriptClip(cc, \
"!cc.IsCombedTIVTC(cthresh=12, MI=40) ? cc : " + \
"!nn.IsCombedTIVTC(cthresh=12, MI=40) ? nn : " + \
"!pp.IsCombedTIVTC(cthresh=12, MI=40) ? pp : cc" \
)
}
clipa = trim(src,2034,4922)
clipb = trim(src,4923,4931)
clipc = trim(src,4932, 18750)
clipb = clipb.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
this = clipa ++ clipb ++ clipc
return ConverttoYUY2(this)
When encoding was done. The .avs was for some reason edited to:
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:01, CELLID:02
#------------------
LoadPlugin("C:\Program\DVD-RB PRO\DGDecode.dll")
LoadPlugin("C:\Program\AviSynth 2.5\egna_plugs\GreedyHMA.dll")
src = mpeg2source("H:\06 DVDRIPPING\WORKING FOLDER\D2VAVS\V04.D2V")
src.FieldMatch()
function FieldMatch(clip c) {
global cc = c
global nn = c.DeleteFrame(0)
global pp = c.DuplicateFrame(0)
return ScriptClip(cc, \
"!cc.IsCombedTIVTC(cthresh=12, MI=40) ? cc : " + \
"!nn.IsCombedTIVTC(cthresh=12, MI=40) ? nn : " + \
"!pp.IsCombedTIVTC(cthresh=12, MI=40) ? pp : cc" \
)
}
clipa = trim(src,2034,4922)
clipb = trim(src,4923,4931)
clipc = trim(src,4932, 18750)
clipb = clipb.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
this = clipa ++ clipb ++ clipc
Omitting the last line and the return statement.
Is this a bug or is there a good explination for this?:confused:

jdobbs
18th July 2006, 13:23
DVD-RB never modifies the AVS after PREPARE unless you run the Viewer/Editor.

jjabba
18th July 2006, 22:51
DVD-RB never modifies the AVS after PREPARE unless you run the Viewer/Editor.
I'm sure that's the way it's intended to work. But then it is odd that I get an error if I make "V040001000001001.avs" write protected and do the an encode. (See image)
As soon as the segment is encoded I get the following error message from DVD-RB. If I do not write protect the file I get no error but the last line in the .avs file is removed.
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:01, CELLID:01
#------------------
LoadPlugin("C:\Program\DVD-RB PRO\DGDecode.dll")
src = mpeg2source("H:\06 DVDRIPPING\WORKING FOLDER\D2VAVS\V04.D2V")
FieldMatch()
function FieldMatch(clip c) {
global cc = c
global nn = c.DeleteFrame(0)
global pp = c.DuplicateFrame(0)
return ScriptClip(cc, \
"!cc.IsCombedTIVTC(cthresh=12, MI=40) ? cc : " + \
"!nn.IsCombedTIVTC(cthresh=12, MI=40) ? nn : " + \
"!pp.IsCombedTIVTC(cthresh=12, MI=40) ? pp : cc" \
)
}
clipa = trim(src,800,899)
clipb = trim(src,900,999)
clipc = trim(src,1000, 1100)
clipb = clipb.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
this = clipa ++ clipb ++ clipc
this = ConverttoYUY2(this)
return this
becomes
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:01, CELLID:01
#------------------
LoadPlugin("C:\Program\DVD-RB PRO\DGDecode.dll")
src = mpeg2source("H:\06 DVDRIPPING\WORKING FOLDER\D2VAVS\V04.D2V")
FieldMatch()
function FieldMatch(clip c) {
global cc = c
global nn = c.DeleteFrame(0)
global pp = c.DuplicateFrame(0)
return ScriptClip(cc, \
"!cc.IsCombedTIVTC(cthresh=12, MI=40) ? cc : " + \
"!nn.IsCombedTIVTC(cthresh=12, MI=40) ? nn : " + \
"!pp.IsCombedTIVTC(cthresh=12, MI=40) ? pp : cc" \
)
}
clipa = trim(src,800,899)
clipb = trim(src,900,999)
clipc = trim(src,1000, 1100)
clipb = clipb.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
this = clipa ++ clipb ++ clipc
this = ConverttoYUY2(this)
Perhaps this is something to look into?

jdobbs
19th July 2006, 00:02
Ahh... now I remember this... it was reported before.

In the last report it was caused by using a badly patched "crack" of DVD-RB. The patch caused that bug....

I'd suggest you download and install again if you are a registered user. What version are you using?

berndy2001
19th July 2006, 08:30
What version are you using?
by the way just an idea: why not put the version of dvd-rb into the avs-file like "# AVS File Created by DVD Rebuilder v1.2.3" ... so we can see the version, if a avs-file is posted.

jjabba
19th July 2006, 12:55
I was running 1.09.3,
After an upgrade to 1.10.2 the problem is no more.
Sorry to have bothered you, I should really have checked for new versions before posting.:o