I'm trying to make this capture better in avisynth by stabilizing the video, denoising and make any corrections as needed before upscaling to 720p. I think the video is too jumpy. How do I stabilize it?
This is what I've researched so far but I'm missing a bit of cleanup before resize.
Code
# 720x480, 4:3 source
FFMPEGSource2("GV-USB2Capture2.avi")
ConvertToYV12()
#deinterlace
AssumeTFF()
QTGMC("Slower",edithreads=3)
#crop
crop(10,2,-6,-6)
addborders(8,4,8,4)
#Upscale
nnedi3_rpow2(2,cshift="spline36resize", fwidth=960,fheight=720)
aWarpSharp2(depth=2)
Sharpen(0.5)
Prefetch(10)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 29 of 29
Thread
-
-
The camera movement is too fast.
What have you tried so far? Deshaker ? DepanStabilize ? etc...
Beware that the more you stabilize, the more black borders result, the more you have to crop and /or zoom in, the lower the quality
If you use ConvertToYV12(), it should be ConvertToYV12(interlaced=true) if you apply it before QTGMC. Otherwise you get chroma artfacts
Consider adjusting the levels, because you have lots in the Y 235-255 range . You generally want it in the Y 16-235 range -
I think it looks pretty good. Nothing to stabilize here. The videographer should have taken some classes. Too late for this now
-
I don't see anything in your script that will stabilize a video. As poisondeathray says, Depanstabilize (AVISynth plugin) or Deshaker (VirtualDub filter) are two free motion stabilizers. Both have primitive forms of border reconstruction, but there is a limit to what they can do.
I just looked at your video and you would actually NOT want to stabilize the moments when the camera rapidly pans because, while the movement is too fast, it is "natural." Put another way, what can you do to make it look better? You might want to consider using slow motion to slow down the speed of the pan. I've done that on many occasions and if you use good slow motion software, the result can be quite pleasing.
The short portion where the video looks across the field through the chain link fence could easily be stabilized and could look as good as if it had been done on a tripod.
In general, there are two situations where stabilization is useful: hand-held static shot where you want to simulate a "locked-down" (i.e., tripod) shot; and where the camera is in motion (not panning), such as shooting from a car or walking. In this case you want to simulate a SteadiCam.
Years ago I wrote extensively about how to use Deshaker. Here is my long guide:
Deshaker Guide
I think Gunther Thalin updated the program a few times after I wrote that, but I'm sure most of it still applies.
I also wrote extensively in the old Sony Vegas forums about using Deshaker inside of Vegas, and I wrote interlocking VirtualDub and Vegas scripts that let you apply Deshaker individually to each event. The nifty thing about that approach is that you could stabilize videos in segments and, because Deshaker always leaves the first and last frames untouched, you could seemlessly go from stabilized to unstabilized footage, something you'd want to do with your video.
There are also some really nifty commercial stabilization programs. Some, like Mercalli (which is probably the best), are absolutely amazing. I think After Effects and other post production programs also have stabilization built in.
If you want to do everything inside of AVISynth, then you should start with Depanstabilize.
BTW, if you don't know this, when you stabilize video of the type you uploaded, since the shutter speed is 1/30 or 1/25 of a second (NTSC or PAL), when the camera moves, the frame becomes blurred. You don't notice the blur when the camera is moving but when you then stabilize the video, the now-stable video seems to pop in and out of focus (like auto-focus hunting for a lock). This is often as unsettling as the original motion. -
-
The title is the killer.
Some, like Mercalli (which is probably the best), are absolutely amazing. -
-
How do you do Mercalli?
It can be very good, but isn't infallible and occasionally I have had to do a manual stabilise, correcting each frame. Sometimes it "jumps" so I smooth out the jump manually.
Yes, those burned-in titles ruin it for sure. Gives a great idea of what any of these stabilisers are actually do though. -
Let me start by saying that the wealth of knowledge that you and others share in this forum is very much appreciated. These fundamental concepts of video restoration combined with digital modification is fascinating and much needed in the industry, so thank you. As for my video, I didn’t want to go crazy but perhaps I thought there was one size fit all stabilizing script to help a bit. These are my own precious home videos that my father shot many years ago and I recently got into this world of transfer and restoration as a hobby and present this gift to my family. I was one to throw away (perfectly good) VCR just because the formats changed without realizing how stupid that was. Thankfully I preserved the masters.
Now what can I do to my script in terms of improving picture quality and playback? I don’t necessarily think it’s too bad but perhaps I’m missing some usual suspects that can make my project go from ok to very good or excellent. I do see a little bit of white shadows on the edges. I’m not sure if that’s halo, or ghosting, I don’t know what the term is. I also didn’t pay attention to the levels during my capture so I don’t know if it’s necessary to recapture and adjust the levels (which is something I need to do research on as well because I don’t understand how to load histograms and do what needs to be done).Last edited by lovethisnation; 25th Jul 2023 at 08:24.
-
Here’s a new clip.
No post adjustments were done to the picture, no denoising, no stabilization, no sharpening, it is essentially a GV-USB2 lossless LAGS codec capture using default picture levels, a 720x480 resolution QTGMC deinterlaced video in Avisynth and Vdub2 to decompress to H.264 8 bit 4:2:0. Since I thought the video quality came out good I thought this may be a good candidate for an upscale solution to 720p. Now before attempting to do that, I thought perhaps I need to smooth things out and clean/sharpen the image. Am I on the right track?Last edited by lovethisnation; 25th Jul 2023 at 09:20.
-
-
-
Mercalli is expensive, but the results are amazing:
proDAD Mercalli V6 Trailer english -
Not really, with QTGMC you deinterlace, and denoise, and apply other processing.
If you wish to upscale you should not compress and change colorspace, but rather feed the upscaler with the output of QTGMC, or any other additional filter.
Sharpening before of after the upscale depends on the source, experiment both.
Your capture may suffer of having no lineTBC correction and oversharpening halos.
The levels are ok, but you can reduce a little bit the whites. Also convert to limited 16-235 range if further processing concerning RGB conversion is involved.
But again, your sample is not the raw capture, better to analyze on it for final statements. -
For Clip1.MOV - You did not use ConvertToYV12(interlaced=true) before deinterlacing. Do you see the flickering chroma artifacts ? Look at the red lights on top of the bus. The color moves "outside the lines" every 2nd frame.
QTGMC can work with YUY2, you actually don't need YV12 until the final delivery format
If you were going to RGB to apply some filters (some stabilizers like deshaker work in RGB) , it would make more sense to go from YUY2 to RGB directly, because the YV12 step is downscaling the chroma - going down, then up is avoidable loss -
QTGMC can work with YUY2, you actually don't need YV12 until the final delivery format
-
-
Not a fan of the wobbling/floating date timestamp. It's far more distracting than the original camera movement. Personally I wouldn't stabilize it because of that
-
Only a demo of what Mercalli can do, I said above "title kills it".
-
-
-
-
.
Done, i do see the issue.
QTGMC can work with YUY2, you actually don't need YV12 until the final delivery format
FFMPEGSource2("GV-USB2Capture2.avi")
AssumeTFF()
QTGMC("Slower",edithreads=3)
nnedi3_rpow2(2,cshift="spline36resize", fwidth=960,fheight=720)
aWarpSharp2(depth=2)
Sharpen(0.5)
Then before encoding in virtualdub2 convert to YV12 (for distribution online) or keep it YUY2 for HD media?
If you were going to RGB to apply some filters (some stabilizers like deshaker work in RGB) , it would make more sense to go from YUY2 to RGB directly, because the YV12 step is downscaling the chroma - going down, then up is avoidable lossLast edited by lovethisnation; 25th Jul 2023 at 13:00.
-
If you're upscaling, you'd normally shift 601=>709 using a colormatrix or similar filter , because HD uses rec709 by default . Otherwise will get a color shift in many playback scenarios
Code:Colormatrix(mode="rec.601->rec.709", clamp=0)
If youi're not using vdub2 filters, it should be ok . But there are other potential issues with some filters in vdub that work in RGB. It does the RGB conversion using Rec601 by default - wrong colors for "HD" -
Here is the raw capture. I need help with adjusting the white?. If I adjust the white in the VirtualDub2 filter slider i feel that it becomes a bit darker and pale when i play the file on my TV and it doesn't have the same pop. I guess i don't really understand this picture level stuff too well and I need help in adjusting the levels. I used the avisynth histogram code but I don't see any numbers that corelates to the spikes, I don't know what I'm looking at. -
This is what I did on the latest encoding but I'm not sure if the levels are correct.
Code:FFmpegSource2("Clip1.avi") ColorYUV(gain_y=-24, off_y=4) ConvertToYV12(interlaced=true) McTemporalDenoise(last, settings="medium", interlaced=true) #TurnRight().Histogram().Turnleft() AssumeTFF() QTGMC("faster",EZDenoise=2) crop(10,2,-6,-6) addborders(8,4,8,4) Sharpen(0.3) Colormatrix(mode="rec.601->rec.709", clamp=0) nnedi3_rpow2(2,cshift="spline36resize", fwidth=960,fheight=720) aWarpSharp2(depth=2) Sharpen(0.1)
-
Similar Threads
-
Dual VHS/VHS-C VCRs to play VHS-C tapes wthout adapter
By Bsmarado in forum RestorationReplies: 7Last Post: 18th Mar 2021, 06:04 -
Converting a vhs pal 25fps video into bluray 23.967 (audio & video)
By theundertaker180 in forum AudioReplies: 9Last Post: 3rd Jun 2020, 05:08 -
Is a UK PAL video tape compatible with a continental Europe PAL VHS/S-VHS p
By arjaydavis in forum CapturingReplies: 7Last Post: 21st May 2019, 04:38 -
difference between using a s-vhs scart socket contra a s-vhs s-video jack
By Desve in forum Newbie / General discussionsReplies: 6Last Post: 11th May 2019, 11:59 -
can you rub out tracking from a vhs video when the video file is on a pc
By elm in forum CapturingReplies: 5Last Post: 13th Dec 2018, 03:38