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 23rd March 2018, 13:58   #1101  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Dither

Am I wrong or dither is one of the most used plugin and yet with old AVS 2.5 API?

@pinterf and @all

A refresh would be welcome. Last version is AFAIK 1.27.2 from 2015.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 6th April 2018, 10:41   #1102  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Quote:
Originally Posted by tormento View Post
Am I wrong or dither is one of the most used plugin and yet with old AVS 2.5 API?

@pinterf and @all

A refresh would be welcome. Last version is AFAIK 1.27.2 from 2015.
https://mega.nz/#!f4sHXYgQ!Hf-5Di0ym...dSe9Bn4CkPyRO4 I just made both win32 and x64 versions with AvisynthPluginInit3. If you know valid up-to-date mt modes for dither, I can add them internally.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 6th April 2018, 10:46   #1103  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by DJATOM View Post
I just made both win32 and x64 versions with AvisynthPluginInit3.

Quote:
Originally Posted by DJATOM View Post
If you know valid up-to-date mt modes for dither, I can add them internally.
I use external MT with AVS+ (if I've correctly understood your question).
PHP Code:
SetFilterMTMode("DEFAULT_MT_MODE"2)

Prefetch
(6
__________________
@turment on Telegram

Last edited by tormento; 6th April 2018 at 10:50.
tormento is offline   Reply With Quote
Old 6th April 2018, 10:53   #1104  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Quote:
# Filters from Dither 1.25.0. Tested by Firesledge (not extensively though)
SetFilterMTMode ("DitherPost", MT_NICE_FILTER)
SetFilterMTMode ("SmoothGrad", MT_NICE_FILTER)
SetFilterMTMode ("Dither_box_filter16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_bilateral16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_limit_dif16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_resize16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_out", MT_NICE_FILTER)
SetFilterMTMode ("Dither_removegrain16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_repair16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_median16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_add16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_sub16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_max_dif16", MT_NICE_FILTER)
SetFilterMTMode ("Dither_merge16", MT_NICE_FILTER)
It was in my MtModes.avsi, but Idk if that's up-to-date.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 6th April 2018, 10:57   #1105  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by DJATOM View Post
It was in my MtModes.avsi, but Idk if that's up-to-date.
Never had problems with mode 2.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 6th April 2018, 11:07   #1106  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Mode 2 will eat more RAM, so it's better to stick with mode 1 if possible. Anyway new build (now with sources), with mt mode 1 declared internally: https://mega.nz/#!CtcRVLgZ!qzrTRjvu9...fWniOrbuG_lmjY
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 6th April 2018, 12:52   #1107  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Thanks DJATOM for the new paint job!
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 11th April 2018, 21:51   #1108  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
@DJATOM
I gave a try to your latest build of dither and it gives me error.

Script:
PHP Code:
SetMemoryMax(8000)
SetFilterMTMode("DEFAULT_MT_MODE"2)
LoadPlugin("D:\eseguibili\media\DGDecNV\x64\DGDecodeNV.dll")
DGSource("E:\in\2_00 Fuga di mezzanotte\fuga.dgi")
#CompTest(1)
SMDegrain (tr=6thSAD=400refinemotion=falselsb=truemode=0contrasharp=falsePreFilter=4truemotion=falseplane=4chroma=true)
Prefetch(6
Gives me the error:
Code:
[2018-04-11][22:44:18] Simple x264 Launcher (Build #1124), built 2018-02-27
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Job started at 2018-04-11, 22:44:18.
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Source file : E:\in\2_00 Fuga di mezzanotte\fuga_6_lsb.avs
[2018-04-11][22:44:18] Output file : E:\in\2_00 Fuga di mezzanotte\fuga_6_lsb.mkv
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] --- SYSTEMINFO ---
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Binary Path : D:\eseguibili\media\x264 launcher
[2018-04-11][22:44:18] Avisynth    : Yes
[2018-04-11][22:44:18] VapourSynth : No
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] --- SETTINGS ---
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Encoder : x264 (AVC/H.264), 64-Bit (x64), 8-Bit
[2018-04-11][22:44:18] Source  : Avisynth (avs)
[2018-04-11][22:44:18] RC Mode : CRF
[2018-04-11][22:44:18] Preset  : slow
[2018-04-11][22:44:18] Tuning  : <None>
[2018-04-11][22:44:18] Profile : High
[2018-04-11][22:44:18] Custom  : --level 4.1 --keyint 240 --aq-mode 2 --sar 1:1
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] --- CHECK VERSION ---
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Detect video encoder version:
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Creating process:
[2018-04-11][22:44:18] "D:\eseguibili\media\x264 launcher\toolset\x64\x264_x64.exe" --version
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] x264 0.155.2901 7d0ff22
[2018-04-11][22:44:18] (libswscale 5.0.101)
[2018-04-11][22:44:18] (libavformat 58.10.100)
[2018-04-11][22:44:18] (ffmpegsource 2.30.0.0)
[2018-04-11][22:44:18] built on Feb 26 2018, gcc: 7.3.0
[2018-04-11][22:44:18] x264 configuration: --chroma-format=all
[2018-04-11][22:44:18] libx264 configuration: --chroma-format=all
[2018-04-11][22:44:18] x264 license: GPL version 2 or later
[2018-04-11][22:44:18] libswscale/libavformat/ffmpegsource license: GPL version 2 or later
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Detect video source version:
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Creating process:
[2018-04-11][22:44:18] "D:\eseguibili\media\x264 launcher\toolset\x64\avs2yuv_x64.exe"
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Avs2YUV 0.24bm5
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] > x264 revision: 2901 (core #155)
[2018-04-11][22:44:18] > Avs2YUV version: 0.24.5
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] --- GET SOURCE INFO ---
[2018-04-11][22:44:18] 
[2018-04-11][22:44:18] Creating process:
[2018-04-11][22:44:18] "D:\eseguibili\media\x264 launcher\toolset\x64\avs2yuv_x64.exe" -frames 1 "E:\in\2_00 Fuga di mezzanotte\fuga_6_lsb.avs" NUL
[2018-04-11][22:44:18] 
[2018-04-11][22:44:20] error: System exception - Access Violation
[2018-04-11][22:44:20] (D:/Programmi/Media/AviSynth+/plugins64/SMDegrain-3.1.2�97.avsi, line 739)
[2018-04-11][22:44:20] (D:/Programmi/Media/AviSynth+/plugins64/SMDegrain-3.1.2�97.avsi, line 200)
[2018-04-11][22:44:20] (E:\in\2_00 Fuga di mezzanotte\fuga_6_lsb.avs, line 16)
[2018-04-11][22:44:20] 
[2018-04-11][22:44:20] PROCESS EXITED WITH ERROR CODE: 1
Same script works fine with standard dither.dll
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 11th April 2018, 22:22   #1109  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Yes, I forgot to add one line, fixed version.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 12th April 2018, 07:53   #1110  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by DJATOM View Post
Yes, I forgot to add one line
Tested, working.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 25th December 2018, 19:04   #1111  |  Link
Dreamject
Registered User
 
Join Date: Dec 2018
Posts: 140
This topic is not active, I created new, but may be somebody can give me instruction to launch dither tools on PotPlayer https://forum.doom9.org/showthread.php?p=1861062
Dreamject is offline   Reply With Quote
Old 27th January 2019, 09:22   #1112  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Now that AVS+ and avsresize are updated nicely, would it take much for someone to update this to accept non-stacked colorspaces or yuv420ps ?
I like the linear/sigmoid functions in this resizer, but find it tedious to keep converting to/from stacked.

I just might jump on VS for this plugin to resize in placebo-likeness.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 4th March 2019, 09:41   #1113  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 221
can someone suggest me few ways to remove banding occured in few scenes after heavy denoising? i am just using this. but it doesn't remove banding completely.

f3kdb(preset="veryhigh", input_depth=16, output_depth=16)
Natty is offline   Reply With Quote
Old 4th March 2019, 10:09   #1114  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Try higher Y/cb/cr values and/or higher grain values.
https://f3kdb.readthedocs.io/en/late...mdoption-arg-y
https://f3kdb.readthedocs.io/en/latest/presets.html
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 16th March 2019, 23:55   #1115  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 221
thanks. i found a stable setting
Natty is offline   Reply With Quote
Old 5th May 2019, 18:29   #1116  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Happy Day!

Last edited by LouieChuckyMerry; 16th May 2019 at 15:20. Reason: Thread Seems Dead
LouieChuckyMerry is offline   Reply With Quote
Old 24th September 2019, 10:18   #1117  |  Link
TheProfosist
Registered User
 
TheProfosist's Avatar
 
Join Date: Aug 2009
Posts: 136
So I have been out of the game for some time (early pages of this thread ~2011) and dither is really having me scratch my head once again.

Im looking to output 4:4:4 10bit to x264. I have used dither in the past and do do this exact function however the younger me never took any notes so I am at a loss as to whats needed why and where. Below are two example scripts that I was hoping someone could help me dissect and figure out what was done is these and if that is still the best way to go about things. I would like to do the script a bit better like the second one making it easier to follow but would like to put together better notes and comments than the first one has. Im sure there are some plugins im missing that ill have to round up as well.


Xamd (should be 444): https://pastebin.com/f1c4vkWb

Beck (dither 16bit to 10bit): https://pastebin.com/7dGdpfyf


Ill have to grab some additional plugins as im definitely missing some that are in those scripts. Are the best files to use sill the ones in the beginning of the thread and their special mod16 versions or should I be looking into @DJATOM 's fixed version linked above? Git also has an updated version of dfttest. No idea it its compatible however.

Quote:
Originally Posted by DJATOM View Post
Yes, I forgot to add one line, fixed version.

thanks in advance for the help. Ill have the progress of the AVS script as well as the final one on pastebin once complete
TheProfosist is offline   Reply With Quote
Old 24th September 2019, 17:21   #1118  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
@TheProfosist Applying debilinear onto entire source is bad idea. You will definitely mess up captions (they are applied onto source after upscaling), you must do some masking for them and resize with regular downscaler.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 26th September 2019, 15:02   #1119  |  Link
TheProfosist
Registered User
 
TheProfosist's Avatar
 
Join Date: Aug 2009
Posts: 136
Quote:
Originally Posted by DJATOM View Post
@TheProfosist Applying debilinear onto entire source is bad idea. You will definitely mess up captions (they are applied onto source after upscaling), you must do some masking for them and resize with regular downscaler.
are you talking about

Code:
#TextSub("E:\TEMP\5cmPerSec\02 - Video\5cmPerSec JP RA Subs.ass")
if so its commented out so ignore that. Its just a remnant of modifying a script ive used before

what im wondering is the order of operations of using dither



in beck I used dfttest but I didnt in xamd

notes from the xamd script say "##dfttest (lsb=true) or whatever generating stack16 data"


I think i remember why I had crop in the first 16bit filters area and that was because if I needed to crop I also had to re-pad it to a mod 16 resolution



the other big difference in these scripts is the end.

Beck just has f3kdb
Code:
f3kdb(dither_algo=3, input_mode=1, input_depth=16, output_mode=1, output_depth=10)

where as Xamd has

Code:
SmoothGrad (radius=16, thr=0.25, elast=2)

 
ly = debilineary(960,540,lsb_inout=true)
lu = utoy8().dither_resize16(960,540,kernel="blackman",src_left=0.25,u=1,v=1)
lv = vtoy8().dither_resize16(960,540,kernel="blackman",src_left=0.25,u=1,v=1)
ytouv(lu,lv,ly)
 
 
## Finally DitherPost() or Dither_convey_yuv4xxp16_on_yvxx()
Dither_quantize(10, reducerange=true, mode=8)
Dither_convey_yuv4xxp16_on_yvxx()
if i recall correctly debilinear is what is up converting to 444



basically trying to figure out what I did and why which should aide me in using dither again. That is unless there is a better way to use this since its likely had updates since those AVS were written
TheProfosist is offline   Reply With Quote
Old 26th September 2019, 20:48   #1120  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
No, I meant XamD source. It's upscaled from 540p and then OP/ED texts was applied onto it. So descaling will introduce artifacts on those captions.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Reply

Tags
color banding, deblocking, noise reduction

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 13:59.


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