Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th September 2021, 10:07   #21  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
Quote:
Originally Posted by Pauly Dunne View Post
Ok, I will test this tomorrow, and report back.

Removegrain is part of RGTools, isn't it....

Cheers
Great thanks! Yes removegrain is part of rgTools.

EDIT: BTW. you might need to adjust the settings since I think the default values (especially LT, LS, CS and CT) are too high for low/mid noisyness.

Last edited by anton_foy; 16th September 2021 at 16:49.
anton_foy is offline   Reply With Quote
Old 17th September 2021, 04:27   #22  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by anton_foy View Post
Great thanks! Yes removegrain is part of rgTools.

EDIT: BTW. you might need to adjust the settings since I think the default values (especially LT, LS, CS and CT) are too high for low/mid noisyness.
Hello,

OK, back to it...

This is my current script :- doesn't even start in AVSMeter

Quote:
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\FFT3dGPU\FFT3dGPU.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools56c.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack28.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack v1.2.avs")
video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4)
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 17th September 2021, 05:22   #23  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
You are not returning any video clip with that script. video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4) should be HQMC(lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4).
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 17th September 2021, 05:35   #24  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by Boulder View Post
You are not returning any video clip with that script. video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4) should be HQMC(lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4).
I shared his that script but don't work in his ripbot
kedautinh12 is offline   Reply With Quote
Old 17th September 2021, 05:54   #25  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by Boulder View Post
You are not returning any video clip with that script. video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4) should be HQMC(lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4).
Hey Boulder,

Thanks for joining in, but that IS the way that scripts are written in RipBot.....

Have you had any experience with RipBot ??

But I did try your suggestion, and same result.
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 17th September 2021, 06:07   #26  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
No, but if you try running that script in AVSMeter, it won't work What is the complete script? There's no line for importing any source.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 17th September 2021, 07:52   #27  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by Boulder View Post
No, but if you try running that script in AVSMeter, it won't work What is the complete script? There's no line for importing any source.
Alrighty, then, well the way Atak has built RipBot, the other required info is "scattered" around...

This script works a treat:-

Quote:
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\BM3DCPU\BM3DCPU_AVS.dll")
LoadPlugin("%AVISYNTHPLUGINS%\BM3DCPU\BM3D_VAggregate_AVS.dll")
LoadPlugin("%AVISYNTHPLUGINS%\dfttest\dfttest.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\LSFmod32ex.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools56c.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack v1.2.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\SMDegrain330d cpu.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Utils-r41.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Zs_RF_Shared.avs")
video=SMDegrain(video,tr=6,thSAD=600,contrasharp=30,str=1.2,refinemotion=true,prefilter=5)
This is a typical RipBot script :-

Quote:
#MT
#PREFETCH_LIMIT=32

#VideoSource
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("H:\Married... with Children (1987) Season 1-11\Season 7\edits\Married... With Children (1987) - S07e15 - Heels On Wheels.mkv",cachefile="F:\Temp\RipBot264temp\job26\Married... With Children (1987) - S07e15 - Heels On Wheels.mkv.lwi")

#Deinterlace

#Decimate

#Crop
video=Crop(video,0,0,-0,-0)

#Downscale

#Tonemap

#Levels

#Colours

#Denoise

#Custom
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\mvtools\mvtools2.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\BM3DCPU\BM3DCPU_AVS.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\BM3DCPU\BM3D_VAggregate_AVS.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\dfttest\dfttest.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\RgTools\RgTools.dll")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\ExTools56c.avs")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\Sharpeners Pack v1.2.avs")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\SMDegrain330d cpu.avs")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\Utils-r41.avs")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\Zs_RF_Shared.avs")
video=SMDegrain(video,tr=6,thSAD=600,contrasharp=true,refinemotion=true,prefilter=5)

#Prefetch
video=Prefetch(video,16)

#After_Prefetch_Denoise

#After_Prefetch_Custom

#Sharpen

#Upscale
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\Plugins_JPSDR\Plugins_JPSDR.dll")
video=Spline36ResizeMT(video,960,720)

#Borders
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\Scripts\AutoBorders.avs")
video=AutoBorders(video,16.0/9.0)

#Subtitles

#AudioSource
Import("F:\Temp\RipBot264temp\job26\job26_a1.avs")

#Triming

#AVSameLength

#ColorSpace

#Return
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 18th September 2021, 16:33   #28  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
Quote:
Originally Posted by Pauly Dunne View Post
Alrighty, then, well the way Atak has built RipBot, the other required info is "scattered" around...

This script works a treat:-



This is a typical RipBot script :-
Okay I never used RipBot but what if you just use:
Code:
video=HQMC(lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4)
?
anton_foy is offline   Reply With Quote
Old 19th September 2021, 05:45   #29  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by anton_foy View Post
Okay I never used RipBot but what if you just use:
Code:
video=HQMC(lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4)
?
Sorry, still doesn't even want to try and start !!!

What do you use to test your scripts ??
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 19th September 2021, 08:25   #30  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
anton_foy's suggestion won't work because there is no "last" for HQMC to use. RipBot seems to store the clip in the "video" so it must be included.
Open the script in VirtualDub2 and you'll what the error message is (though I would have expected AVSMeter to return it as well).
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 19th September 2021, 10:17   #31  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 996
Quote:
Originally Posted by Pauly Dunne View Post
This is a typical RipBot script :-
or This is my current script :- doesn't even start in AVSMeter
But it's not a typical Avisynth script.
You have over 500 posts here ...

Where is the clip located ?:
Answer: in the variable 'video'

How can avisynth access it?
Answer: 'return video'

So at the end of the script write 'return video' without the quotation marks
__________________
Live and let live
gispos is offline   Reply With Quote
Old 19th September 2021, 20:54   #32  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
Updated the script due to problems with auxclip and put new default values since the older values were set too high.
Try again and see if the error still remains Pauly Dunne.
anton_foy is offline   Reply With Quote
Old 20th September 2021, 04:23   #33  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by anton_foy View Post
Updated the script due to problems with auxclip and put new default values since the older values were set too high.
Try again and see if the error still remains Pauly Dunne.
Hi anton,

I have a major apology to make here, there was a complete line missing from that script, and NOBODY picked up on it.

#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\FFT3dGPU\FFT3dGPU.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools58.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack29.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack14c.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\HQMC012.avs")
video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4)

When I went to find my first script attempts, I couldn't find them, and that's when I realised something was very wrong

So, now it works, I just need to test it out...

Regards
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 20th September 2021, 04:53   #34  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Lol, i don't take note about it
kedautinh12 is offline   Reply With Quote
Old 20th September 2021, 07:51   #35  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
Quote:
Originally Posted by Pauly Dunne View Post
Hi anton,

I have a major apology to make here, there was a complete line missing from that script, and NOBODY picked up on it.

#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\FFT3dGPU\FFT3dGPU.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools58.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack29.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack14c.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\HQMC012.avs")
video=HQMC(video,lt=9.0, thsad=240, blocksize=32, ct=12.0, cs=6.0, ls=1.4)

When I went to find my first script attempts, I couldn't find them, and that's when I realised something was very wrong

So, now it works, I just need to test it out...

Regards
Great! Well it was right in our faces. Hqmc_ex with the new defaults I think you should try also and compare to the hqmc line in your script. Hows the speed on your side, is the filter fast?
anton_foy is offline   Reply With Quote
Old 20th September 2021, 09:35   #36  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by anton_foy View Post
Great! Well it was right in our faces. Hqmc_ex with the new defaults I think you should try also and compare to the hqmc line in your script. Hows the speed on your side, is the filter fast?
Yes, it certainly was...haven't tested anything yet.

So the new script would be :-

video=HQMC_EX(video, lt=9.0, thsad=240, blocksize=32, ct=9.0, cs=0.0, ls=0.0)
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 20th September 2021, 11:16   #37  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
Quote:
Originally Posted by Pauly Dunne View Post
Yes, it certainly was...haven't tested anything yet.

So the new script would be :-

video=HQMC_EX(video, lt=9.0, thsad=240, blocksize=32, ct=9.0, cs=0.0, ls=0.0)
Yes or just:
Code:
video=HQMC_EX(video)
I think.
anton_foy is offline   Reply With Quote
Old 20th September 2021, 12:28   #38  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by anton_foy View Post
Yes or just:
Code:
video=HQMC_EX(video)
I think.
I'll try a couple of scripts, and report back, when done.

Thanks
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 20th September 2021, 22:11   #39  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
New alternative experimental version HQMC_EXL, updated post #1.

Here is before/after comparison with default values (maybe too high still):

original
HQMC_EXL

EDIT: it is not really the original, I actually added autolevels afterwards in photoshop on both images since they were so dark and washed out because of sLog2 and also the script contained more than just HQMC_EXL:

Code:
FFVideoSource("F:\...mp4")
Deblock_QED(quant1=26, aOff1=1, aOff2=1, bOff1=2, bOff2=2, uv=3)
convertbits(16)
Levels(0, 1, 65280, 0, 235*256, coring=false, dither=false)
hqmc_exl(lt=9,ct=12,cs=6,sigma=1.9)
neo_f3kdb(range=15, Y=45, Cb=30, Cr=30, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, mt=true)
ConverttoYUV444()
ConvertBits(bits=10, dither=1)

Last edited by anton_foy; 20th September 2021 at 22:52.
anton_foy is offline   Reply With Quote
Old 21st September 2021, 06:46   #40  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Hi anton,

So I have been just checking some of your scripts to see if they "pass" the AVSMeter test,

and most have , until I tried HQMC_EXL..

This is my script :-

Quote:
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\hqdn3d\x64\Release\hqdn3d.dll")
LoadPlugin("%AVISYNTHPLUGINS%\FFT3dGPU\FFT3dGPU.dll")
LoadPlugin("%AVISYNTHPLUGINS%\neo-f3kdb\neo-f3kdb.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CAS\CAS.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\ExTools58.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Grade Pack29.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\Sharpeners Pack15.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\HQMC_EXL.avs")
video=HQMC_EXL(video)
I got this error :-

Line 66 :- [COLOR="Red"]den = Input.lremovedustC().fft3dfilter(sigma=sigma, sigma3=sigma3, bt=bt, plane=0, ncpu=4)[ /COLOR]
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)

Last edited by Pauly Dunne; 22nd September 2021 at 01:36.
Pauly Dunne is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:52.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.