Could anyone guide me to remove the artifacts found in the attached sample video? Assuming that the defect may be due to interlacing, I tried VidCoder -> VideoFilters-> Deinterlace-> Decomb with Preset - Bob. But, with no effect.
https://files.videohelp.com/u/198504/Sample%20Video-%20720p%20x264.mkv
Thanks.
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 21 of 21
Thread
-
-
About the best you can hope for is to blur the artifacts away with some thing like:
Code:LWLibavVideoSource("Sample Video- 720p x264.mkv") original = last Spline36Resize(width, 240) Spline36Resize(original.width, original.height)
You can try protecting the still areas with a motion mask:
Code:LWLibavVideoSource("Sample Video- 720p x264.mkv") original = last Spline36Resize(width, 240) Spline36Resize(original.width, original.height) mmask = original.mt_motion().mt_expand().Blur(1.0).Blur(1.0) Overlay(original, last, mask=mmask)
Last edited by jagabo; 21st Sep 2018 at 12:56.
-
Thanks Jagabo. I appreciate your suggestion. I copied the above commands in note pad, saved as .avs file and tried to open in VirtualDub. But, it did not open. Could you please elaborate the procedure step by step as I am not conversant with these commands.?
-
What was the error message? You probably don't have the LSMASH package (LWLibavVideoSource is part of it). For the second script you may not have mt_masktools (mt_motion, mt_expand).
-
This is the error message I got when I tried to open the avs file in VirtualDub:
Of course, I have not installed LSMASH package. Should I install this package in my system? -
Have you installed AviSynth? Keep in mind that 32 VirtualDub (or other editor/encoder) requires 32 bit AviSynth and 32 bit filters. 64 bit VirtualDub (or other editor/encoder) requires 64 bit AviSynth and 64 bit filters.
-
-
In VirtualDub: did you use File -> Open Video File to open the AviSynth script? Don't use File -> Run Script -- that's for VirtualDub scripts, not AviSynth scripts.
-
-
LSMASH: http://avisynth.nl/index.php/LSMASHSource
mt_masktools2: http://avisynth.nl/index.php/MaskTools2
Download the archives then put the x86 versions of LSMASHSource.dll and mt_masktools2.dll in AviSynth's plugins folder. LSMASH includes several other dll files. I don't remember if you need them all but put those in the plugins folder too.
You may also need Microsoft Visual C++ 2015 Redistributable. A URL for that is in the LSMASH package.
By the way, the simple downscale/upscale works with any editor which lets you apply two resizes. So you don't need AviSynth for that. VirtualDub's resize filter will work. -
After installing LSmash.dll plug-in, I could open the video in VirtualDub and the artifacts disappear to a great extent. I could see much improvements.
The video plays well. Is it like I could only play the video in VirtualDub? How do I save the video duly eliminating the artifacts? Let me know the procedure, please .
You can try protecting the still areas with a motion mask:
Code:mmask = original.mt_motion().mt_expand().Blur(1.0).Blur(1.0) Overlay(src, last, mask=mmask)
Anyway, I am much satisfied now having removed the artifacts to great extent. Thanks a lot. -
Sorry, I made a mistake in the Overlay ("src" instead of "original"). I changed the script in my earlier post.
-
After the correction in 'mmask' function, now the video plays correct. I am not getting the audio. Do I need to add separate avs scripts to play the audio? Is it like I could only play the video in VirtualDub? How do I save the video and audio duly eliminating the artifacts? Let me know the procedure, please . I want to watch the movies with WDTV media player.
Thanks. -
To add audio in the script, you can use AudioDub()
eg
Code:aud = LWLibavAudioSource("Sample Video- 720p x264.mkv") LWLibavVideoSource("Sample Video- 720p x264.mkv") original = last Spline36Resize(width, 240) Spline36Resize(original.width, original.height) mmask = original.mt_motion().mt_expand().Blur(1.0).Blur(1.0) Overlay(original, last, mask=mmask) vid = last AudioDub(vid,aud)
-
I usually use the x264 command line encoder to encode the video then mux the original audio with the new video with MkvToolNix. You can use VirtualDub to encode the video. Just select the video codec you want to use (Video -> Compression) and File -> Save as AVI. If you want something other than AVI I recommend you use VirtualDub2 which supports other containers.
The script with the motion mask only detects motion in the luma channel. It leaves some comb artifacts in the chroma. Here's a modification that detects motion in the chroma as well as the luma and eliminates the chroma combing too:
Code:function YUVMotion(clip c) { mot = mt_motion(c, U=3, V=3, thT=255) U = mot.UtoY().BilinearResize(c.width, c.height) V = mot.VtoY().BilinearResize(c.width, c.height) Overlay(U, V, mode="add") Overlay(mot, last, mode="add") mt_expand() Blur(1.0) Blur(1.0) GreyScale() } LWLibavVideoSource("Sample Video- 720p x264.mkv") original = last Spline36Resize(width, 240) Spline36Resize(original.width, original.height) mmask = YUVMotion(original) Overlay(original, last, mask=mmask)
-
I just followed the modified script. The outcome is great. I saved the video part alone using x264 external encoder, and then muxed the original audio with MkvToolNix. Excellent result. I have many movie files with the same type of artifacts and I wanted to throw them after watching. Now, all of them could be saved. Thank you very much, Jagabo.
Thanks @poisondeathray. -
Congratulations. Glad to help out. You may need to adjust the downscale size for each video as some will need more, some less.
-
-
Similar Threads
-
Interlacing artifacts
By Randombit in forum RestorationReplies: 45Last Post: 16th Jul 2017, 12:15 -
Interlacing artifacts when changing size of interlaced video
By Bencuri in forum Video ConversionReplies: 25Last Post: 25th May 2017, 22:03 -
Keep Interlacing while processing a video
By Marcoh_ in forum RestorationReplies: 10Last Post: 25th Jul 2016, 18:03 -
Avermedia Game Capture HD II showing interlacing artifacts on playback
By Fadedown in forum CapturingReplies: 6Last Post: 22nd Aug 2015, 17:57 -
s-video artifacts?
By VCRcomp in forum CapturingReplies: 235Last Post: 29th Oct 2013, 11:42