I have 2 parts of an interlaced video where only the 2nd part has screen shake (I've uploaded a short test clip where the whole thing has screen shake but for the purposes of this script just pretend the 1st part doesn't have screen shake). The 2nd part needs to be progressive while DePanStabilize is working to fix the screen shake so I re-interlaced it again after that. However I noticed that the filter has no effect unless the weave line is before DePanStabilize but if I do that then it won't work properly. It's a catch 22 situation.
I want QTGMC used on the whole video and then re-interlaced and I would like the screen shake fixed on only the 2nd part of the video. How can I do that?
The tweaks are not important - it's just to show the layout of my script.
The following doesn't work when fixing screen shake on the 2nd part:
Code:AssumeTFF() QTGMC(Preset="Super Fast") filtered=Tweak(Hue=10, Sat=0.7, Bright=10, Cont=0.95, Coring=False) ReplaceFramesSimple(last,filtered,Mappings="[0 10]") filtered=Tweak(Hue=0, Sat=0.6, Bright=10, Cont=0.95, Coring=False) ReplaceFramesSimple(last,filtered,Mappings="[11 124]") mdata=DePanEstimate(dxmax=0) filtered=DePanStabilize(last, data=mdata, initzoom=1.05, dxmax=0, dymax=4) ReplaceFramesSimple(last,filtered,Mappings="[11 123]") SeparateFields() SelectEvery(4,0,3) Weave()
+ Reply to Thread
Results 1 to 10 of 10
-
Last edited by VideoFanatic; 7th Sep 2013 at 13:10.
-
split the video in two parts using trim(..), filter both parts separately
-
here an example:
Code:#load video video = DGSource(...) #or whatever you use #deinterlace video video = video.AssumeTFF() video = video.QTGMC(Preset="Super Fast") #split video videoPart1 = video.Trim(0,100) videoPart2 = video.Trim(101,0) #filter second part videoPart2 = videoPart2.Stab(range=1,dxmax=4,dymax=4,pixaspect=1) #join videos video = videoPart1 + videoPart2 #reinterlace video = video.SeparateFields() video = video.SelectEvery(4,0,3) video = video.Weave() #return video return video
-
OK but how do I get this working for videoPart2?:
Code:mdata=DePanEstimate(dxmax=0) filtered=DePanStabilize(last, data=mdata, initzoom=1.05, dxmax=0, dymax=4)
-
Code:
mdata=videoPart2.DePanEstimate(dxmax=0) videoPart2 = videoPart2.DePanStabilize(last, data=mdata, initzoom=1.05, dxmax=0, dymax=4)
-
OK so I've got this:
Code:video = video.AssumeTFF() video = video.QTGMC(Preset="Super Fast") videoPart1 = video.Trim(0, 10). Tweak(Hue=10, Sat=0.7, Bright=10, Cont=0.95, Coring=False) videoPart2 = video.Trim(11, 249). Tweak(Hue=0, Sat=0.6, Bright=10, Cont=0.95, Coring=False) mdata=videoPart2.DePanEstimate(dxmax=0) videoPart2 = videoPart2.DePanStabilize(last, data=mdata, initzoom=1.05, dxmax=0, dymax=4) video = videoPart1 + videoPart2 video = video.SeparateFields() video = video.SelectEvery(4,0,3) video = video.Weave() return video
Last edited by VideoFanatic; 7th Sep 2013 at 13:18.
-
videoPart2 = videoPart2.DePanStabilize(last, data=mdata, initzoom=1.05, dxmax=0, dymax=4)
->
videoPart2 = videoPart2.DePanStabilize(data=mdata, initzoom=1.05, dxmax=0, dymax=4)
or
videoPart2 = DePanStabilize(videoPart2, data=mdata, initzoom=1.05, dxmax=0, dymax=4) -
I tried each of those line instead of the red line in my previous post. DePanStabilize is still being applied to the whole file instead of just part 2
-
you can try:
videoPart2 = videoPart2.DePanStabilize(videoPart2, data=mdata, initzoom=1.05, dxmax=0, dymax=4)
if that also still applies to the whole script I don't know either
Similar Threads
-
How to fix screen shake with Avisynth?
By VideoFanatic in forum RestorationReplies: 2Last Post: 23rd Apr 2013, 11:56 -
How to get DePan for AviSynth to fix Screen Shake?
By VideoFanatic in forum RestorationReplies: 45Last Post: 30th Nov 2011, 07:49 -
Possible to convert ONLY audio part of WMV, but not the video part?
By tigerb in forum Newbie / General discussionsReplies: 2Last Post: 27th Jun 2011, 18:57 -
TMPGEnc cannot open the video part of the file, only the audio part can.
By dzsoul in forum Authoring (DVD)Replies: 15Last Post: 3rd Apr 2009, 08:36 -
Remove some shake from video
By helper in forum Newbie / General discussionsReplies: 1Last Post: 6th Oct 2008, 14:39