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 27th September 2019, 19:49   #1121  |  Link
TheProfosist
Registered User
 
TheProfosist's Avatar
 
Join Date: Aug 2009
Posts: 136
Quote:
Originally Posted by DJATOM View Post
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.
Ah well I can worry about that when I get the rest of the stuff working. Right now I dont have a specific source ill be using it on. Also back then it wasnt uncommon for me to use ordered chapters (i think thats the correct term) and clean op/ed if the anime allowed for it.

Right now im mostly interested in the flow of using dither. What you would use where are why. In that previous post I gave some examples. No clue if any of that is relevant anymore either since its been so long.
TheProfosist is offline   Reply With Quote
Old 12th February 2020, 13:00   #1122  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
in dither.avsi Dither_resize16nr Function I think there are bug in this line
Code:
	sr_v  = Float (height) / Float (src.height ())
the "Float (src.height ())" should be "Float (src.height ()/2)" since it's lsb stacked clip

find it when I was porting/mixing things to support HBD

here what I have for now, will add it later to ResizeX, any suggestions?
Code:
# base on Dither_resize16nr
Function sResizeXnr (clip src, int width, int height,
\	float  "src_left",
\	float  "src_top",
\	float  "src_width",
\	float  "src_height",
\	string "kernel",
\	int    "taps",
\	float  "a1",
\	float  "a2",
\	string "cplace",
\	bool   "luma",
\	bool   "chroma",
\	bool   "mt",
\	string "mt_params",
\	string "dither_params",
\	bool   "desampling",
\	int    "dither_mode",
\	bool   "noring"
\	)
{
	noring = Default (noring, true)

	Assert (width > 0 && height > 0, "sResizeXnr: width and height must be > 0.")

	sr_h  = Float (width ) / Float (src.width () )
	sr_v  = Float (height) / Float (src.height ())
	sr_up =       max (sr_h, sr_v)
	sr_dw = 1.0 / min (sr_h, sr_v)
	sr    = max (sr_up, sr_dw)
	Assert (sr >= 1.0)

	# Depending on the scale ratio, we may blend or totally disable
	# the ringing cancellation
	thr = 2.5
	nrb = (sr > thr)
	nrf = (sr < thr + 1.0 && noring)
	nrr = (nrb) ? min (sr - thr, 1.0) : 1.0
	nrv = (nrb) ? Round ((1.0 - nrr) * 255) * $010101 : 0

	main = src.ResizeX (width, height,
\		src_left  =src_left,
\		src_top   =src_top,
\		src_width =src_width,
\		src_height=src_height,
\		kernel    =kernel,
\		taps      =taps,
\		a1        =a1,
\		a2        =a2,
\		cplace    =cplace,
\		luma      =luma,
\		chroma    =chroma,
\		mt        =mt,
\		mt_params =mt_params,
\		dither_params=dither_params,
\		desampling=desampling,
\		dither_mode=dither_mode
\	)

	nrng = (nrf) ? src.ResizeX (width, height,
\		src_left  =src_left,
\		src_top   =src_top,
\		src_width =src_width,
\		src_height=src_height,
\		kernel    ="gauss",
\		a1        =100,
\		cplace    =cplace,
\		luma      =luma,
\		chroma    =chroma
\	) : main

	nrm = (nrb && nrf) ? main.BlankClip (color_yuv=nrv, height=main.Height()) : main

	rgm  = 1
	rgc  = (nrb) ? -1 : 0
	ild  = Defined(luma)
	icd  = Defined(chroma)
	rgl  = ild ? (luma   ? rgm : rgc) : rgm
	rgch = icd ? (chroma ? rgm : rgc) : rgm
	y    = ild ? luma ? 3 : 2 : 3
	u    = icd ? chroma ? 3 : 2 : 3
	v    = u
	(nrf       ) ? main.repair (nrng, rgl, rgch)                          : main
	(nrf && nrb) ? mt_merge (main, last, nrm, y=y, u=u, v=v, luma=chroma) : last
}
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 12th April 2020, 15:00   #1123  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
can we have port of vs fmtconv to avs/avs+ with HBD? I try to update/port/rewrite crt_display to avs+ HBD then I see it use fh, fv in dither_resize16

and its not only for crt_display and "fh, fv", dither_resize16/fmtconv has many other things like kernel inversion mode and additional Kernels
__________________
See My Avisynth Stuff

Last edited by real.finder; 12th April 2020 at 15:20.
real.finder is offline   Reply With Quote
Old 12th April 2020, 15:33   #1124  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by real.finder View Post
can we have port of vs fmtconv to avs/avs+ with HBD?
AVSResize wouldn't fit?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 12th April 2020, 15:42   #1125  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
AVSResize wouldn't fit?
it's not https://forum.doom9.org/showthread.p...54#post1906754

__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 7th October 2020, 14:25   #1126  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
Dither 1.28.0:
  • Added Dither_lutspa8 and Dither_lutspa16.
  • Fixed height issue in Dither_resize16nr. Thanks to real.finder for the report.
  • DLL recompiled with Visual C++ 2019.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 7th October 2020, 18:54   #1127  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by cretindesalpes View Post
Dither 1.28.0:
  • Added Dither_lutspa8 and Dither_lutspa16.
  • Fixed height issue in Dither_resize16nr. Thanks to real.finder for the report.
  • DLL recompiled with Visual C++ 2019.
Thanks
kedautinh12 is offline   Reply With Quote
Old 8th October 2020, 06:33   #1128  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by cretindesalpes View Post
Dither 1.28.0:
  • Added Dither_lutspa8 and Dither_lutspa16.
  • Fixed height issue in Dither_resize16nr. Thanks to real.finder for the report.
  • DLL recompiled with Visual C++ 2019.
thanks, but is there any plan to support HBD in avs+ or port fmtconv to avs? since the HBD filters nowadays are way more than lsb ones and also there are float point in HBD of avs+
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 8th October 2020, 11:05   #1129  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
real.finder: sorry, there is no plan at the moment. I don’t do much video processing these days and have other projects with higher priority.

EDIT—another update:

MVTools 2.6.1.0
  • MSuper, MDegrain1/2/3/N: YV16 and YV24 colorspaces are supported for filtering. Analysis still requires YV12 or YUY2 clips.
  • FlowFPS, FlowInter and MMask: fixed a memory intialization bug that could produce slightly different results each run. Thanks to dubhater for the fix.
  • MAnalyse, MRecaculate: fixed block size parameter check in divide mode. Thanks again to dubhater.
  • MDepan: parameter zerow is now actually taken into account.
  • DLL recompiled with VC++ 2019, source files and projects modified accordingly.

EDIT—second update:

Dither was updated to v1.28.1. Fixed a regression in mode 20 of Dither_removegrain16.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding

Last edited by cretindesalpes; 10th November 2020 at 15:54. Reason: Dither 1.28.1
cretindesalpes is offline   Reply With Quote
Old 17th February 2021, 19:17   #1130  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Sorry to resurrect some old stuff but...

Is there any newer version of Dither?

I have checked 1.28.1 version and it's still a 2.5 plugin.

If positive, perhaps I have lost the release. Please address me
__________________
@turment on Telegram

Last edited by tormento; 17th February 2021 at 19:25.
tormento is offline   Reply With Quote
Old 25th May 2021, 14:30   #1131  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Regarding Dither modernization for HBD, I think it's impossible to do it as it now, After thinking and talking with people that do encode from long times, it's better to port dither_bilateral16 (it's seems work differently from the rest and as some friend said "it strikes a nice balance between strength and detail loss"), Dither_box_filter16 (same as dither_bilateral16 case), and SmoothGrad to independent plugins and backport fmtconv (ported done https://forum.doom9.org/showthread.php?t=183139 thanks to cretindesalpes), if these done then we will not need dithertools anymore in avs+
__________________
See My Avisynth Stuff

Last edited by real.finder; 19th August 2021 at 20:57.
real.finder is offline   Reply With Quote
Old 25th May 2021, 15:44   #1132  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
True, but no one backport it now
kedautinh12 is offline   Reply With Quote
Old 29th May 2021, 02:40   #1133  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
I seen 299792458m update dfttest 1.9.6 of pinterf with new commits, can anyone compile it?? thanks
https://github.com/299792458m/dfttest_mod/commits/196
kedautinh12 is offline   Reply With Quote
Old 5th June 2021, 15:22   #1134  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
New fork of fmtconv
https://github.com/AkarinVS/fmtconv
kedautinh12 is offline   Reply With Quote
Old 21st July 2021, 22:45   #1135  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
Quote:
Originally Posted by real.finder View Post
backport fmtconv [...] in avs+
I’m currently working to make fmtconv easier to port to other standards. The bitdepth part requires the most work here. However I’m not sure if I’ll do the final port yet.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding

Last edited by cretindesalpes; 21st July 2021 at 22:47.
cretindesalpes is offline   Reply With Quote
Old 22nd July 2021, 00:22   #1136  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by cretindesalpes View Post
I’m currently working to make fmtconv easier to port to other standards. The bitdepth part requires the most work here. However I’m not sure if I’ll do the final port yet.
The pussycat is still alive, we are all happy to hear that,
live long and prosper CD. [OK you made some recent posts too, I did not miss all of them].
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd July 2021, 01:12   #1137  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Quote:
Originally Posted by StainlessS View Post
The pussycat is still alive, we are all happy to hear that,
live long and prosper CD. [OK you made some recent posts too, I did not miss all of them].
+1, Thanks cretindesalpes for your contributions.
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 22nd July 2021, 05:24   #1138  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by cretindesalpes View Post
I’m currently working to make fmtconv easier to port to other standards. The bitdepth part requires the most work here. However I’m not sure if I’ll do the final port yet.
good news, thanks! if you have time can you port dither_bilateral16, Dither_box_filter16 and SmoothGrad to independent plugins with new appropriate names and HBD?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th October 2021, 23:57   #1139  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
DFTTest latest ver
https://github.com/pinterf/dfttest/releases
kedautinh12 is offline   Reply With Quote
Old 20th April 2023, 13:38   #1140  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Updated dither - 1.28.1.1 x64 from Asd-g: updated to 2.6 plugin, added support for passthrough frame properties
https://gitlab.com/uvz/AviSynthPlus-...%2B/dither.dll
kedautinh12 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 18:18.


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