@ holygamer
Download all the filters required then paste these lines at the beginning of the script:
Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED_MT2.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dctfilter\DCT.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\masktools-v2.0a35\mt_masktools-25.dll")
It should work with all that
+ Reply to Thread
Results 31 to 54 of 54
-
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
-
I tried this but it didn't work and gave the same error message:
Code:Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED_MT2.avs") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-25.dll") Deblock_QED_MT2(24,28,uv=3)
What am I doing wrong? I got McTemporalDenoise noise to work and that had a lot more work to it than this, yet I can't get this simple thing to work! -
Thanks but what's that setting supposed to do? You already said that McTemporalDenoise is not for deblocking.
Anyway, I've uploaded a short 18 second clip here of my original file if anybody wants to play with it. You can't really see any problems when you play it on you PC but when you play it on your TV, you'll see blocking which is what I want to remove. -
I've now tried Deblock at http://avisynth.org/mediawiki/DeBlock
It worked without error messages but it didn't actually remove the blocking. It says it works by default so I just used minimal code. This is what I used:
Code:loadplugin("C:\Program Files\AviSynth 2.5\plugins\unblock.dll") DirectshowSource("I:\New\1 = Test files\18 seconds test file.mpg") converttoYV12()
-
LoadPlugin only makes the plugin available (and in fact, since it's in the plugins folder, is unnecessary).
You need to call the function as well, by adding this line to the end of your script:
Deblock()
That gives the default settings - you can also try adding parameters as described on the wiki page. -
Did you download and view the clip I included? Did you see much blocking? Mpeg2Source() has optional deblocking and de-ringing filters built in. "CPU=6" turns them on. It works better than DeblockQED at its default settings. McTemporalDenoise() reduces noise -- in this case static from a VHS recording. It's very slow. Don't use it if you don't want it. Trim(0,800) limits the video to the first 800 frames so the size of the file (encoded at 8000 kbps) would be small enough to upload here.
-
-
OK I don't know why this isn't working, I'll go through what I did again. I downloaded Deblock QED from http://avisynth.org/mediawiki/Deblock_QED. It says it needs these:
I put the following in the plugins directory:
- Deblock_QED.avs
- deblock.dll
- mt_masktools-25.dll
- DctFilter.dll
For the Deblock_QED.avs file (I just copied and pasted the download code from http://avisynth.org/mediawiki/Upload/f/f7/Deblock_QED_MT2.avs into a text file and saved as Deblock_QED.avs
Should it be called Deblock_QED.avs or Deblock_QED_MT2.avs ? I tried either method but it didn't work
This is the script I'm using:
Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Deblock.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-25.dll")
Deblock_QED(24,28,uv=3) -
Maybe you should try opening your source video.
Code:Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED_MT2.avs") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-25.dll") WhateverSource("yada yada yada") Deblock_QED(24,28,uv=3)
-
for Deblock QED I used this script and it loaded without error:
Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED_MT2.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Deblock.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-25.dll")
DirectshowSource("I:\New\1 = Test files\18 seconds test file.mpg")
Deblock_QED(24,28,uv=3) -
If trying! it's just that you guys reply quite quickly with multiple ways to do things and I'm trying to go through each one before I go through the next! I did test the file you made with HC Enocder on my TV and you're correct, it did get rid of the blocking. Thanks
I am now trying to repeat your method with HC Encoder. This is what I used in my script:
Mpeg2Source("I:\New\1 = Test files\18 seconds test file.mpg", CPU=6)
ColorYUV(off_y=-24)
McTemporalDenoise(settings="low", interlaced=true)
error loading Avisynth script: there is no function named "Mpeg2Source"
(I:\New\1 = Test files\davidlind MPEG2Source.avs, line 1) -
Mpeg2Source() is just another source loader for AviSynth. It's designed for use with Mpeg 2 (MPG and VOB) files.
Did you download DgMpgDec and install it? Did you copy DgDecode.dll to your AviSynth plugins folder? Did you use DgIndex to build the index (.D2V) file? You open the index file, not the MPG file, with Mpeg2Source().
You don't have to use HcEnc or HcGUI. Use whatever encoder you want that supports AviSynth script.Last edited by jagabo; 20th Sep 2011 at 11:32.
-
-
-
Everything that happens in an AviSyth script happens before the editor/encoder gets the frames. So yes, you must have everything working in AviSynth before you can do anything with a script.
Mpeg2Source() is much more reliable than DirectShowSource(). DirectShowSource() relies on installed DirectShow filters. Those can change any time you install a program, codec, or file reader/splitter. And it isn't frame accurate. When zipping through a file in your editor a particular frame might come up as frame 1000 one time, frame 1001 the next time. and frame 999 the next time. -
-
-
I got it working in TMPGEnc. I used this script:
Mpeg2Source("I:\New\1 = Test files\18 seconds test file.d2v", CPU=6)
ColorYUV(off_y=-24)
McTemporalDenoise(settings="low", interlaced=true)
It seems to work and has got rid of most of the blocking. However if I use the same bitrate as my video of 4.5 Mbps the quality isn't very good. I have to raise the bitrate a lot higher to get the same quality as before.
If I just use McTemporalDenoise on it's own, it obviously only works on denoising the video and it does a good job. I can do 4.5 Mbps and it looks the same quality as the original video so why can't I use the same bitrate with MPEG2Source to deblock and get the same quality? -
jagabo - I've got this code that works:
Code:Mpeg2Source("I:\New\1 = Test files\18 seconds test file.d2v", CPU=6) ColorYUV(off_y=-24) McTemporalDenoise(settings="low", interlaced=true)
I looked at this page and it says you can also use this:
Deblock(quant=25)
Can I use that in addition to the first line of my code which already does deblocking?
Last edited by VideoFanatic; 20th Sep 2011 at 15:14.
-
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
-
Mpeg2Source() doesn't have any controls over the strength of the deblocking. No deblocking program will completely remove block artifacts. I've never tried using both Mpeg2Source() and Deblock(). I suggest you play around with deblocking without McTemporalDenoise() since it's so slow. Once you have your deblocking "perfected" you can play around with McTemporalDenois(), or some faster, simpler, denoiser.
Regarding bitrates: you started with a noisy VHS source and over compressed which caused a loss of detail and noise, and the generation of blocky artifacts. Deblocking has created a new kind of detail (smooth gradients) so if you compress the same amount as before you will get blocky artifacts again. You need to use a higher bitrate (or lower resolution -- like 352x480) to keep from getting blocks. -
In addtion to deblocking you can use fft3dfilter (denoiser), something like that:
separatefields()
fft3dfilter(sigma=2.0,sigma2=4.0,sigma3=6.0,sigma4 =7.0, bt=3, bw=32, bh=32, ow=16, oh=16,plane=4, sharpen=0.0,interlaced=false,dehalo=0.0)
# Gpu version if you have a recent graphic card:
fft3dgpu(bt=3,sigma=2.0,sigma2=4.0,sigma3=6.0,sigm a4=7.0,bw=32,bh=32,ow=16,oh=16,sharpen=0,plane=4,m ode=1,precision=2,interlaced=false,oldfft=false)
weave()
Change the sigmas values according to your need (from 0.0 to 10)*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
Similar Threads
-
Picture-noise on DVD
By lcphr3ak in forum Newbie / General discussionsReplies: 5Last Post: 20th Jul 2010, 22:12 -
Remove Noise from VHS Videos
By abazabam in forum RestorationReplies: 12Last Post: 23rd Jun 2010, 12:04 -
Removing noise from video that's possibly from aerial noise/broadcast/vhs
By filnads in forum RestorationReplies: 10Last Post: 11th Jan 2010, 00:57 -
Diamond Noise Pattern - VHS
By phineasbg in forum RestorationReplies: 6Last Post: 29th Aug 2008, 21:36 -
Noise in VHS audio
By Cormanrocks in forum Capturing and VCRReplies: 6Last Post: 28th Mar 2008, 00:15