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 3rd September 2021, 16:38   #801  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by LeXXuz View Post
Well that clip is quite noisy. Will see how much I can remove without losing noticeable detail. Why that 7Mbit goal?
I put myself a limit with x264 CRF 20 at around 3600 kbps.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 3rd September 2021, 16:42   #802  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by LeXXuz View Post
Look for yourself at the samples I sent you. Can provide script if you like what you see.
Very nice piece of work, please share the script.
Quote:
Originally Posted by LeXXuz View Post
I don't like x264 deblocking filter, that's why it is set to -3:-3.
I will try too.
Quote:
Originally Posted by LeXXuz View Post
10-bit video would improve backgrounds
I love HEVC @ 10bit but my PC is getting old and encoding at 3-5 fps is a bit slow I do that only for masterpiece movies.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 3rd September 2021, 16:43   #803  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by Dogway View Post
You can use mfilter to blur where motion vectors fail, like
Never thought about that. Thank you!
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 3rd September 2021, 18:11   #804  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Quote:
Originally Posted by tormento View Post
please share the script.
No problem. Nothing spectacular. I used this for the first clip:
Code:
ConvertBits(16)
Original=last
neo_fft3d(sigma=6, sigma2=1.50, sigma3=1.50, sigma4=1.50, bt=1, sharpen=0, Y=3, U=2, V=2)
neo_fft3d(sigma=3, sigma2=0.75, sigma3=0.75, sigma4=0.75, bt=1, sharpen=0, Y=2, U=3, V=3)
pre=RemoveGrain(mode=2, modeU=17, modeV=17, planar=false).sneo_dfttest(slocation="0.0:6 0.6:24 1.0:48", chrslocation="0.0:3 0.6:12 1.0:24", tbsize=1, Y=3, U=3, V=3).Blur(0.25)
SMDegrain(tr=12, thSAD=500, contrasharp=true, CClip=Original, refinemotion=true, truemotion=false, Str=1.2, pel=1, subpixel=2, prefilter=pre)
neo_f3kdb(range=30, Y=64, Cb=64, Cr=64, grainY=64, grainC=64, sample_mode=4)
ConvertBits(8, dither=1)
Prefetch(20,20)
Return(Last)
And this one for the second:
Code:
ConvertBits(16)
Original=last
neo_fft3d(sigma=6, sigma2=1.50, sigma3=1.50, sigma4=1.50, bt=1, sharpen=0, Y=3, U=2, V=2)
neo_fft3d(sigma=3, sigma2=0.75, sigma3=0.75, sigma4=0.75, bt=1, sharpen=0, Y=2, U=3, V=3)
pre=RemoveGrain(mode=2, modeU=17, modeV=17, planar=false).sneo_dfttest(slocation="0.0:6 0.6:24 1.0:48", chrslocation="0.0:3 0.6:12 1.0:24", tbsize=1, Y=3, U=3, V=3).Blur(0.25)
SMDegrain(tr=6, thSAD=300, contrasharp=false, refinemotion=true, truemotion=false, Str=1.2, pel=1, subpixel=2, prefilter=pre, globals=2)
SMDegrain(tr=6, thSAD=300, contrasharp=true, CClip=Original, refinemotion=true, truemotion=false, Str=1.2, pel=1, subpixel=2, prefilter=-1, globals=1)
neo_f3kdb(range=30, Y=64, Cb=64, Cr=64, grainY=64, grainC=64, sample_mode=4)
ConvertBits(8, dither=1)
Prefetch(16,16)
Return(Last)
These are the filters and scripts needed:
Code:
LoadPlugin("...\neo-dfttest_rf-fix\64\neo-dfttest.dll") #fixed version by real.finder from 05/29/21
LoadPlugin("...\neo-f3kdb_r6\clang-x64\neo-f3kdb.dll")
LoadPlugin("...\NeoFFT3D_rf-fix\64\neo-fft3d.dll") #fixed version by real.finder from 05/29/21
#
LoadPlugin("...\masktools2-v2.2.26\x64_clang\masktools2.dll")
LoadPlugin("...\mvtools-2.7.44\x64\mvtools2.dll")
LoadPlugin("...\RgTools-v1.1\x64_LLVM_build\RgTools.dll")
LoadPlugin("...\MedianBlur2_v1.1\x64_Clang\MedianBlur2.dll")
#
Import("...\SMDegrain.avsi") #v3.1.2d
Import("...\Zs_RF_Shared.avsi") #v1.147
Import("...\mtmodes.avsi")
These scripts are taylored to my machines, my personal taste and my viewing equipment for very noisy films. On slower machines this may be a little bit overkill.

So, for speed improvement lower the temporal radius in SMDegrain from what I used. => tr=6 for that single-stage filtering and tr=4 for those two 2pass-stages in the other script.
You could also try to disable contrasharp which will give you more speed and surely even more compressibility. But the picture may look too smooth in the end. Remove the blur for SMDegrains prefiltering if you don't use contrasharp.

neo_fft3d is pretty quick so I would not touch that. It removes high pitched noise in all planes in the spatial domain. Otherwise you may get a "curtain-like" effect on camera pans as SMDegrain tends to leave 'static' pixels in the picture on higher settings. Prefiltering with a spatial denoiser helps to reduce that effect.

I use my own dfttest-settings with higher sigma ramps for prefiltering in SMDegrain instead of the default values (prefilter=3).

I prefer to filter chroma planes about half as much as the luma plane. I don't like the effect that too strong chroma filtering has on moving objects in the picture.

Last edited by LeXXuz; 3rd September 2021 at 20:11.
LeXXuz is offline   Reply With Quote
Old 4th September 2021, 08:27   #805  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
tormento, you can try https://forum.doom9.org/showthread.p...67#post1910867
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th September 2021, 12:30   #806  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by real.finder View Post
tormento, you can try
I will. It seems I am a bad transfer movie subscriber...
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 11th September 2021, 13:26   #807  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Sorry, if this may be a little OT.

I have a film here which got some very bad post processing.The studio really went over the hill with edge sharpening.

So I was wondering, is there some kind of counterpart to LimitedSharpen? I mean a filter which does soften sharp edges/high contrasts way more than subtle textures/details?

I know LSFmod has a built-in softener but that only affects the prior sharpening effect if I'm not mistaken.
LeXXuz is offline   Reply With Quote
Old 7th October 2021, 06:34   #808  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
in case someone need fmtconv/fmtcavs for winxp https://github.com/realfinder/Univer...us/fmtcavs.dll (Maybe once in the life, in the next UniversalPluginsFolders update it will be replaced with Official one but the link should be permanent)
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th October 2021, 17:24   #809  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
I'm trying to use sh_LimitChange, but it gives me an error for invalid arguments. I don't see anything wrong with them I'm using the Avisynth_3.7.1_20210911_test12 build, and just loading the source with DGSource prior to the call.

sh_limitchange(last, last.blur(0.15), limity=1)
__________________
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 13th October 2021, 18:14   #810  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Boulder View Post
I'm trying to use sh_LimitChange, but it gives me an error for invalid arguments. I don't see anything wrong with them I'm using the Avisynth_3.7.1_20210911_test12 build, and just loading the source with DGSource prior to the call.

sh_limitchange(last, last.blur(0.15), limity=1)
this sh_limitchange(last, last.blur(0.15), 1) seems work
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th October 2021, 18:47   #811  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Quote:
Originally Posted by real.finder View Post
this sh_limitchange(last, last.blur(0.15), 1) seems work
Thanks, that one works but now I got a second issue. Looks like limit 0.5 is the lowest one to set, anything below that gives an identical limit which seems to be close to zero.

Easy to test with ex_makediff(last, sh_limitchange(last, last.removegrain(17), 0.5), aug=true).
__________________
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 13th October 2021, 19:54   #812  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Boulder View Post
Thanks, that one works but now I got a second issue. Looks like limit 0.5 is the lowest one to set, anything below that gives an identical limit which seems to be close to zero.

Easy to test with ex_makediff(last, sh_limitchange(last, last.removegrain(17), 0.5), aug=true).
that normal if you use 8bit video
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th October 2021, 20:51   #813  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Quote:
Originally Posted by real.finder View Post
that normal if you use 8bit video
I think I also had 16-bit video as I placed it inside my denoising function, but I can retest that in the morning.
__________________
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 14th October 2021, 05:02   #814  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
I've checked and the same happens for 16-bit video. By the way, is the limit scaled somehow for HBD values like in MDegrain's limit (i.e. range is fixed 0-255 and for HBD limit 0.1 = 0.1 * 255)?
__________________
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 14th October 2021, 06:21   #815  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Boulder View Post
IBy the way, is the limit scaled somehow for HBD values like in MDegrain's limit (i.e. range is fixed 0-255 and for HBD limit 0.1 = 0.1 * 255)?
I think it's same

and you can't see the real diff of 16 if you got 8bit display, even if you have more than 8bit display you still need the right tools/programs and settings to see the diff
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 2nd November 2021, 06:43   #816  |  Link
sp4ce_c0wb0y
Registered User
 
Join Date: Oct 2021
Posts: 13
I'm trying to use ASTDRmc() with AviSynth+ v2.6.0 x64. When I try to open the file I get an error saying "There is no function named 'vsTEdgeMask". According to the wiki that's the extra requirement for motion compensation if you're using avisynth 2.5.x and there is no x64 version of TEdgeMask that I could find. I have MVTools and TEMmod as per the wiki and regular ASTDR() works fine. Is this a bug or am I doing something wrong?

Regular ASTDR() is the best de-rainbow I've tried so far btw. Awesome work.

Edit: the error is on line 60 of the script

Last edited by sp4ce_c0wb0y; 2nd November 2021 at 06:52. Reason: extra info
sp4ce_c0wb0y is offline   Reply With Quote
Old 2nd November 2021, 07:37   #817  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
You need download here
https://github.com/Asd-g/AviSynth-vsTEdgeMask
kedautinh12 is offline   Reply With Quote
Old 5th November 2021, 02:58   #818  |  Link
sp4ce_c0wb0y
Registered User
 
Join Date: Oct 2021
Posts: 13
Quote:
Originally Posted by kedautinh12 View Post
That did it. Thank you!
sp4ce_c0wb0y is offline   Reply With Quote
Old 14th November 2021, 19:59   #819  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 702
I try to get the neo_dfttest version of DFTTESTMC to work. I have deleted the "dfttest.dll" and I have only "neo_dfttest.dll" to load.
Still with this:
Code:
convertbits(16)
dfttestmc()
I get a stacked output (half normal, half green image). Also "slocation" for neo_dfttest doesn't work with dfttestmc only old "sstring"?
I use this version: https://github.com/realfinder/AVS-St...MC_things.avsi
anton_foy is offline   Reply With Quote
Old 14th November 2021, 20:39   #820  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by anton_foy View Post
I try to get the neo_dfttest version of DFTTESTMC to work. I have deleted the "dfttest.dll" and I have only "neo_dfttest.dll" to load.
Still with this:
Code:
convertbits(16)
dfttestmc()
I get a stacked output (half normal, half green image).
I use this version: https://github.com/realfinder/AVS-St...MC_things.avsi
work fine for me
Code:
ColorBars(width=640, height=480, pixel_type="yv12")
convertbits(16)
dfttestmc()
Quote:
Also "slocation" for neo_dfttest doesn't work with dfttestmc only old "sstring"?
if you mean the relationship between dfttest and neo_dfttest and dfttestmc then it should work in either way, anyway you should read starting from https://forum.doom9.org/showthread.p...on#post1938572 to know the story

tl;dr: nstring and sstring are for luma (and chroma if you didn't use chrslocation), and didn't matter if you have dfttest or neo_dfttest
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Reply

Tags
avisynth, avs script, avs+, banding, generator, hbd, mod

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 14:27.


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