I am having a problem with a Blu-Ray of mine and I have never needed to fix this before, so I am kind of lost on what to do. The entire screen jerks around quite a bit to the point that it is a huge distraction and annoying. It's not just the rare occasional jerk you might see on older animation either, this happens a lot through the entire movie. The DVD I have does not do this, but the Blu-Ray does it, and it does it a lot.
I have a couple sample videos.
How can I reduce this or stop it from happening? any help would be greatly appreciated. Thanks!!
Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or try PlayON and record Netflix, HBO, Hulu, etc! :)
+ Reply to Thread
Results 1 to 22 of 22
Last edited by killerteengohan; 26th Jul 2018 at 08:17.
Stab() with a moderate range helps a little. But some the frames are distorted too. You can get rid of some of the distorted frames using Dup() with a high threshold. But that will lose some of the small mouth/eye/other movements that you want to keep. Maybe you can work out something with mt_motion() and a threshold that only uses the Dup() frames with larger movements/distortions. Or, since most of the distortions occur around scene changes, only use a strong Dup() within ~4 frames of a scene change.
The film frame was moving as it was being digitized.
There's no way to align the two frames. Dup() converts near duplicate frames to duplicates. With a high threshold it will see those two frames as similar enough to replace one with the other. But with a threshold that high frames with true small motions are replaced too -- like frames where just a character's mouth is moving, or eyes are blinking.
Last edited by jagabo; 26th Jul 2018 at 22:12.
I did notice a much bigger screen movement at that particular part of the scene before that distortion happens when I watched the clip. The large jumps like that one aren't very often and if its on a rare occasion, I can deal with that. That distortion that's in the source doesn't bother me as much as when the entire screen moves around. I didn't even notice it until you pointed it out because the screen movement took my eyes from that and I focused on the entire screen moving around. Its all those tiny full screen jumps and character movements with it driving me nuts. As long as those can be reduced or removed with as little side effects as possible or ruining good frames, I will be happy.
Last edited by killerteengohan; 27th Jul 2018 at 02:22.
Jagabo, I have no function for dup and I cannot find the plugin for the life of me. I keep getting sent to a neuron2.net website where I cannot find it at all and it looks like a fake website to me.
Could you possibly attach or share the .dll I need with me please?
Dup can be found here: http://rationalqm.us/dup/dupnew.html
An update from someone else: http://forum.doom9.org/showpost.php?p=1747207&postcount=17 (dup1.dll can be found in the Release folder).
I have not been able to find a 64 bit version.
Last edited by killerteengohan; 28th Jul 2018 at 01:11.
I gave stab a try and it seemed to work pretty well at reducing the screen shaking being used at it's default settings. I am very satisfied with how much the screen movements are reduced. The only downside I am noticing so far is background movement or some moving objects seem to become a bit jumpy, or bounce around some in multiple directions.
Here is a clear example in this 23 second comparison clip.
The foreground objects seem to be fine, but moving background objects like the clouds for example are what I was talking about. Look closely how smooth the cloud movement is in the original, then compare with the version that has Stab used on it. While not god awful, it is still there.
Is there a parameter I could adjust to keep it's movement more like the original source or at least lessen the noticeability of this? I tried mirror=15 but that made it a lot worse and it jumped quite a bit more. Dup seemed to make it worse as well.
Stab is locking onto the character motion in that shot because the character takes up a large portion of the frame and he's brighter, sharper, and higher contrast. So when the character makes small motions the background clouds and stars bounce. This is often a problem with stabilizers. The only way I see of avoiding this is to add code to Stab to make it base its stabilization on only a portion of the frame. Then special case shots like this.
Also, at times stabilization can make slow pans jerky as it locks motion for several frames, then suddenly makes a large move, locks again, etc.
I suppose I can work on that solution a little later. That aside for the moment, the only other thing I can think of that I would like help with addressing is the black borders that stab causes around the outer rim of the video. I suppose I could just crop 2 off all sides, but I believe I heard you can actually fill that with pixels from the original source and make it appear almost seemless. If this is true how would I go about doing that? I would like to avoid the cropping if that's possible.
Using mirror=15 should get rid of the black borders and shouldn't have any effect on the deshaking. Make sure you crop any existing borders before Stab, then add them back later if necessary.
How do you crop 2 off the border all around the video and then insert them back on afterwards?? I figured once cropped off, they were gone.
Mirror=15 caused the background object movements I mentioned earlier to become much more erratic and noticeable. They seem to move around a lot more.
I never did find out how to crop borders off and put them back on afterwards.
You're talking about black borders, right? Then:
But this is so obvious that I must be missing something. As for working with borders to make them look better, you might try BorderControl. It works nicely with 2-pixel borders. More than that and it becomes progressively messier.
Actually I was talking about borders that were exactly what was cropped off. As in still has the original video in it. I know how to add black borders back on, but thanks for that idea.
I thought he was saying crop 2 video off all 4 sides or somehow make a copy of them, then after stab() did its job and put those black borders on, crop those black borders off and put the original video back on it. I guess I may have misunderstood.
Can I make a second script of the original video uncropped and somehow overlay it over the cropped and stab() version to get the original outer pixels back?
avisynth so only those outer cropped pixels are placed over top of the stabilized video?
I get that I would be using Overlay() but not sure how to write it so it uses only part of a second source.
So I make it like this?
That looks like it would put the second source video over top of the first if that's being used right, but it would also cover the destabilization of the first with untouched video from the second. How do I make it so the second overlays only the outer 2 pixels border all the way around it and doesn't cover the destabilized video in the inner part?
src = last MAX_DESHAKE = 2 Stab(range=4, dxmax=MAX_DESHAKE, dymax=MAX_DESHAKE, mirror=15) Crop(MAX_DESHAKE,MAX_DESHAKE,-MAX_DESHAKE,-MAX_DESHAKE) Overlay(src, last, x=MAX_DESHAKE, y=MAX_DESHAKE)