Recorded VHS a lot of black frames
any "easy" way to cut the black frames automatically?
thanks
+ Reply to Thread
Results 1 to 13 of 13
-
-
Why is your sample 23.976 fps and poorly deinteralced? Any VHS recording should be 29.97 fps interlaced. You should capture again.
-
If the file is a MPEG2 you could use a function in Womble aka MPEG Video Wizard called blank fades in the bookmark menu http://www.womble.com/support/help.dvd5/chap4b-2.html
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
Hardly. It looks to me like you already screwed it up beyond redemption by giving it a film framerate by blending to get it to 23.976fps when it wasn't shot on film. And it isn't just a case of good video/black frames. If you study it you can see they fade out and in, probably also a result of you not knowing what you were doing. There are plenty of 'half-black' frames. It's a godawful mess.
Is the original tape like this? If so, there's no hope unless you want to fix it manually using frame interpolation. Otherwise do as jagabo suggests and start over again. -
The footage is in bad shape, for sure.
I have written many blank frame removal scripts. In some of them I use motion estimation to create a new frame to replace the black/blank frame. In others, I simple decimate the frame.
Of all the scripts I have posted, you may find this one the most useful:
Finding individual "bad" frames in video; save frame number; or repair -
Here's a simple AviSynth command that will replace isolated black frames (ie, black frames with non-black frames before and after them) with a copy of the frame before it:
Code:ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", 25)
Even after removing the black frames from the OP's video it flickers a lot because there are many dark frames in addition to the black ones. If you raise the threshold it will flicker less but then it will lock up more often and for longer stretches. -
Here's the video with the darkest frames replaced (with the above replacement technique) and flicker reduction. If there was audio it could be retained and remain in sync. Original video (reencoded) on the left, filtered on the right.
-
-
Your script should look something like:
Code:LSmashVideoSource("Untitled.mp4") # open the video Trim(1,0) # first frame is black, get rid of it Crop(8,0,-8,-0) # removing black borders improves autogain later THRESHOLD = "50" # lower values will replace fewer frames, higher values will replace more frames # 14 calls to ConditionalFilter will remove as many as 14 black frames in a row ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ConditionalFilter(last, Loop(2,0,0), last, "AverageLuma()", "lessthan", THRESHOLD) ColorYUV(autogain=true) # even out the brightness of the remaining frames
Similar Threads
-
Black Bars remove
By Krasnal82 in forum Blu-ray RippingReplies: 3Last Post: 1st Apr 2019, 19:53 -
Replace random duplicate frames with black frames (AVISYNTH)
By benzio in forum EditingReplies: 7Last Post: 31st Jan 2018, 16:43 -
Is there any software out there that automatically converts Black and White
By R.STEED in forum Video ConversionReplies: 77Last Post: 4th Nov 2017, 18:41 -
Can you remove duplicate frames without re-encoding?
By VideoFanatic in forum RestorationReplies: 3Last Post: 5th Jul 2017, 14:44 -
Add and or remove black frames from MKV (h.264) file without re-rencoding?
By Krawhitham in forum EditingReplies: 1Last Post: 12th Sep 2015, 02:39