Atlantis
25th September 2023, 14:35
I saw 2 official examples in the manual
t = QTGMC( Preset="Slower", InputType=2 )
b = QTGMC( Preset="Slower", InputType=3, PrevGlobals="Reuse" ) # Reuse motion vectors from first call for a good speed-up
Repair( t, b, 1 )
and
QTGMC( Preset="Medium", ForceTR=2, SubPel=2 ) # Ensure we get temporal radius of at least 2, read note below regarding SubPel
super = MSuper( pel=2, levels=1 ) # Faster to use levels=1, don't usually need more levels once you have the vectors
MDegrain2( super, QTGMC_bVec1,QTGMC_fVec1, QTGMC_bVec2,QTGMC_fVec2 ) # Use QTGMC-created motion vectors
I wanted to use both scripts and combine them, I wrote this
t = QTGMC( InputType=2, ForceTR=3, SubPel=2)
b = QTGMC( InputType=3, ForceTR=3, SubPel=2, PrevGlobals="Reuse" )
Repair( t, b, 1 )
super = MSuper( pel=2, levels=1 )
MDegrain3( super, QTGMC_bVec1,QTGMC_fVec1, QTGMC_bVec2,QTGMC_fVec2, QTGMC_bVec3,QTGMC_fVec3)
It works, but I don't know if it's correct. Not sure where those QTGMC vectors I pass to MDegrain come from and if it's correct. From clip t, clip b, the repair clip?
t = QTGMC( Preset="Slower", InputType=2 )
b = QTGMC( Preset="Slower", InputType=3, PrevGlobals="Reuse" ) # Reuse motion vectors from first call for a good speed-up
Repair( t, b, 1 )
and
QTGMC( Preset="Medium", ForceTR=2, SubPel=2 ) # Ensure we get temporal radius of at least 2, read note below regarding SubPel
super = MSuper( pel=2, levels=1 ) # Faster to use levels=1, don't usually need more levels once you have the vectors
MDegrain2( super, QTGMC_bVec1,QTGMC_fVec1, QTGMC_bVec2,QTGMC_fVec2 ) # Use QTGMC-created motion vectors
I wanted to use both scripts and combine them, I wrote this
t = QTGMC( InputType=2, ForceTR=3, SubPel=2)
b = QTGMC( InputType=3, ForceTR=3, SubPel=2, PrevGlobals="Reuse" )
Repair( t, b, 1 )
super = MSuper( pel=2, levels=1 )
MDegrain3( super, QTGMC_bVec1,QTGMC_fVec1, QTGMC_bVec2,QTGMC_fVec2, QTGMC_bVec3,QTGMC_fVec3)
It works, but I don't know if it's correct. Not sure where those QTGMC vectors I pass to MDegrain come from and if it's correct. From clip t, clip b, the repair clip?