VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 54 of 54
  1. @ 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
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  2. Originally Posted by themaster1 View Post
    @ 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
    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)
    I have those exact dll files in the plugins directory. Like I said before I also I went to http://avisynth.org/mediawiki/Deblock_QED and clicked on the download link which only takes you to a page with the code on. I copied all the code into Notepad and saved the file as "Deblock_QED_MT2.avs" and I also tried the same but saving it as an ".avsi" file. Either file when copied into the plugins directory gives me the above error when I try and load a script in TMPGEnc.

    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!
    Quote Quote  
  3. Originally Posted by jagabo View Post
    Mpeg2Source("Test File RAW December 30 1997.d2v", CPU=6)
    ColorYUV(off_y=-24)
    McTemporalDenoise(settings="low", interlaced=true)
    Trim(0,800)
    Encoded with HcGUI, 8000 kbps average, 9000 kbps max.
    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.
    Quote Quote  
  4. 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()
    How do I get it to work?
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    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.
    Quote Quote  
  6. Originally Posted by holygamer View Post
    Originally Posted by jagabo View Post
    Mpeg2Source("Test File RAW December 30 1997.d2v", CPU=6)
    ColorYUV(off_y=-24)
    McTemporalDenoise(settings="low", interlaced=true)
    Trim(0,800)
    Encoded with HcGUI, 8000 kbps average, 9000 kbps max.
    Thanks but what's that setting supposed to do? You already said that McTemporalDenoise is not for deblocking.
    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.
    Quote Quote  
  7. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by holygamer View Post
    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)
    Although the source file is called Deblock_QED_MT2.avs, the actual function is just called Deblock_QED.
    Quote Quote  
  8. Originally Posted by Gavino View Post
    Originally Posted by holygamer View Post
    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)
    Although the source file is called Deblock_QED_MT2.avs, the actual function is just called Deblock_QED.
    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)
    I changed the red text like you said. But I still get an error message when I load the script. How do I get it working?
    Quote Quote  
  9. 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)
    Quote Quote  
  10. 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)
    However it didn't get rid of the blocking. Is there a better setting I could use?
    Quote Quote  
  11. Why don't you use Mpeg2Source() with it's deblocking feature?
    Quote Quote  
  12. Originally Posted by jagabo View Post
    Why don't you use Mpeg2Source() with it's deblocking feature?
    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)
    I load HC Gui and click the input file name button. I select my .avs script but I see an error message in the info box:

    error loading Avisynth script: there is no function named "Mpeg2Source"
    (I:\New\1 = Test files\davidlind MPEG2Source.avs, line 1)
    What exactly does MPEG2Source do - is is just telling it to use my MPEG file to perform the edits on?
    Quote Quote  
  13. 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.
    Quote Quote  
  14. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    For future reference:
    Originally Posted by holygamer View Post
    Should it be called Deblock_QED.avs or Deblock_QED_MT2.avs ?
    It doesn't matter what the file is called as long as it matches the name in your Import command.
    However, if you rename it with suffix .avsi, it will be Import'ed automatically if installed in the plugins folder.
    Quote Quote  
  15. Originally Posted by jagabo View Post
    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 don't have to use HcEnc or HcGUI. Use whatever encoder you want that supports AviSynth script.
    OK so if I use TMPGEnc with your script do I still need to do what you said here:

    Download DgMpgDec and install it? Copy DgDecode.dll to your AviSynth plugins folder. Use DgIndex to build the index (.D2V) file.
    Quote Quote  
  16. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by holygamer View Post
    OK so if I use TMPGEnc with your script do I still need to do what you said here:

    Download DgMpgDec and install it? Copy DgDecode.dll to your AviSynth plugins folder. Use DgIndex to build the index (.D2V) file.
    Yes. There is no other way of using Mpeg2Source.
    Quote Quote  
  17. 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.
    Quote Quote  
  18. Originally Posted by jagabo View Post
    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.
    Good to know. I make cuts in VideoRedo before I put it through avisynth so when I put the video through Avisynth and TMPGEnc or whatever program (without making cuts), I'll get the exact video output that I input won't I? (I don't want to lose any frames)
    Quote Quote  
  19. Originally Posted by holygamer View Post
    I'll get the exact video output that I input won't I? (I don't want to lose any frames)
    With Mpeg2Source() you will. With DirectShowSource() you might not.
    Quote Quote  
  20. 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?
    Quote Quote  
  21. 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)
    However there is still slight blocking. How can I increase the deblocking strength?

    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.
    Quote Quote  
  22. Use Hcenc Holygamer for your mpeg2 convertion , tmpgenc use rgb24 (info source here ) HCenc YV12/YUY2 and is " avisynth ready" not to mention the customizable matrix and parameters
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  23. 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.
    Quote Quote  
  24. 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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!