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 4th July 2020, 06:49   #541  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
I can't elaborate this.

If you convert to Y/Y8, why the Y/Y8 denoising gives worse results than treating the BW clip as a color one?

Look at these values:
because chroma is always centred (128 in 8bit) in all pixels so as Boulder told you it's "effect thsad calculation in MAnalyse" so it's wrong and Inaccurate and can remove details and case ghosting that why it give less size, anyway there are a strange situation with your test, the size of ConvertToY/ConvertToY8 and yuv with "plane=0, chroma=false" should be same, and the speed of ConvertToY/ConvertToY8 should be the fastest but you show that both is not
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th July 2020, 07:04   #542  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by real.finder View Post
anyway there are a strange situation with your test, the size of ConvertToY/ConvertToY8 and yuv with "plane=0, chroma=false" should be same, and the speed of ConvertToY/ConvertToY8 should be the fastest but you show that both is not
Perhaps I triggered some hidden bug?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 07:07   #543  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
Perhaps I triggered some hidden bug?
yes, in plugins side I think

maybe has a relation with https://forum.doom9.org/showthread.p...93#post1916393
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th July 2020, 07:11   #544  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by pinterf View Post
Service announcement, I'll be *offline for two weeks".
We need you
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 11:17   #545  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by tormento View Post
I can't elaborate this.

If you convert to Y/Y8, why the Y/Y8 denoising gives worse results than treating the BW clip as a color one?

Look at these values:
Because you denoise only the first plane, plane 2+3 ("chroma") are not touched, hence the higher bitrate.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 4th July 2020, 11:19   #546  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by ChaosKing View Post
Because you denoise only the first plane, plane 2+3 ("chroma") are not touched, hence the higher bitrate.

There is no chroma in greyscale or Y clip, AFAIK.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 11:22   #547  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
There is no chroma in greyscale or Y clip, AFAIK.
yes, seems ChaosKing get it wrong

and even encode y/y8 should be smaller if the encoder didn't convert it to 420 like yv12, and even if it do convert it to 420 it should be smaller than original noisy uv
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th July 2020, 12:12   #548  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Ahh yes my mistake. But it was only half wrong, in this particular case ... I think

My guess was, that smdegrain or mvtools also uses motion vectors from UV (Idk how smdegrain works). I mean in a grayscale clip I can still output U and V but it's just blank. That is why denoising only Y is stronger. (for a grayscale clip)

Code:
clip=ffms2("source")
clip  = clip.smdegrain(tr=3, thsad=2000, prefilter=2, plane=4, chroma=true)
clip2 = clip.smdegrain(tr=3, thsad=2000, prefilter=2, plane=0, chroma=false)
clip = clip.ExtractY()
clip2 = clip2.ExtractY()
return stackhorizontal(clip.crop(600,500,-500,-100), clip2.crop(600,500,-500,-100))


I got an error with prefilter = 4, so I used prefilter=2.
@tormento have you tried other parameters?

EDIT
Can you show your encoding parameters? Since I can't reproduce these numbers even with your parameters...
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 4th July 2020 at 12:44.
ChaosKing is offline   Reply With Quote
Old 4th July 2020, 12:31   #549  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by ChaosKing View Post
@tormento have you tried other parameters?
Such as? My interest is speed up denoising working on Y plane but I can’t get to that result.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 12:43   #550  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by tormento View Post
Such as? My interest is speed up denoising working on Y plane but I can’t get to that result.
Like default parameters. To see if it changes anything since it looks like a bug...

But on my side everything works as expected. denoising only Y is faster and file is smaller...
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 4th July 2020, 12:44   #551  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by ChaosKing View Post
Like default parameters. To see if it changes anything since it looks like a bug...

But on my side everything works as expected. denoising only Y is faster and file is smaller...

Give me your SMDegrain line.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 12:45   #552  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by tormento View Post
Give me your SMDegrain line.
https://forum.doom9.org/showthread.p...91#post1917491
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 4th July 2020, 12:47   #553  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by ChaosKing View Post
Can you show your encoding parameters? Since I can't reproduce these numbers even with your parameters...
https://forum.doom9.org/showthread.p...45#post1917445

I put both test files and my scripts there. Try and tell me.

P.S: The not working has been solved by realfinder update.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 4th July 2020, 12:49   #554  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
I mean x264 encoding parameters (or whatever you used)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 4th July 2020, 12:52   #555  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by ChaosKing View Post
I mean x264 encoding parameter (or whatever you used)
I use Simple x264/x265 Launcher. The log:

Simple x264 Launcher (Build #1208), built 2020-06-25

Job started at 2020-07-04, 12:20:35.

Source file : E:\in\eclisse\041_6-700y_4t.avs
Output file : E:\in\eclisse\041_6-700y_4t.mkv

--- SYSTEMINFO ---

Binary Path : D:\Eseguibili\Media\x264 Launcher
Avisynth : Yes
VapourSynth : No

--- SETTINGS ---

Encoder : x264 (AVC/H.264), 64-Bit (x64), 8-Bit
Source : Avisynth (avs)
RC Mode : CRF
Preset : slow
Tuning : <None>
Profile : High
Custom : --level 4.1 --keyint 240 --aq-mode 2 --sar 1:1 --opencl

--- CHECK VERSION ---

Detect video encoder version:

Creating process:
"D:\Eseguibili\Media\x264 Launcher\toolset\x64\x264_x64.exe" --version

x264 0.161.3015 4c2aafd
(libswscale 5.6.100)
(libavformat 58.33.100)
built on Jul 2 2020, gcc: 8.2-win32 20190215
x264 configuration: --chroma-format=all
libx264 configuration: --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat license: LGPL version 2.1 or later

WARNING: Your x264 binary uses an untested core (API) version, take care!
This application works best with x264 core (API) version 160. Newer versions may work or not.

Detect video source version:

Creating process:
"D:\Eseguibili\Media\x264 Launcher\toolset\x64\avs2yuv_x64.exe"

Avs2YUV 0.24bm6

> x264 revision: 3015 (core #161)
> Avs2YUV version: 0.24.6

--- GET SOURCE INFO ---

Creating process:
"D:\Eseguibili\Media\x264 Launcher\toolset\x64\avs2yuv_x64.exe" -frames 1 E:\in\eclisse\041_6-700y_4t.avs NUL

E:\in\eclisse\041_6-700y_4t.avs: 1920x1024, Y8, 8-bits, progressive, 24000/1001 fps, 2858 frames
converting input clip to YUV420

Resolution: 1920 x 1024
Frame Rate: 24000/1001
No. Frames: 2858

--- ENCODING VIDEO ---

Creating input process:
"D:\Eseguibili\Media\x264 Launcher\toolset\x64\avs2yuv_x64.exe" E:\in\eclisse\041_6-700y_4t.avs -

Creating encoder process:
"D:\Eseguibili\Media\x264 Launcher\toolset\x64\x264_x64.exe" --output-depth 8 --crf 20.0 --preset slow --profile high --level 4.1 --keyint 240 --aq-mode 2 --sar 1:1 --opencl --output E:\in\eclisse\041_6-700y_4t.mkv --frames 2858 --demuxer y4m --stdin y4m -

y4m [info]: 1920x1024p 1:1 @ 24000/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: OpenCL acceleration enabled with NVIDIA Corporation GeForce GTX 1060 3GB
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
x264 [info]: frame I:18 Avg QP:17.33 size:195983
x264 [info]: frame P:752 Avg QP:20.21 size: 59222
x264 [info]: frame B:2088 Avg QP:25.01 size: 14313
x264 [info]: consecutive B-frames: 1.6% 1.8% 3.7% 92.9%
x264 [info]: mb I I16..4: 6.7% 84.5% 8.9%
x264 [info]: mb P I16..4: 0.8% 7.7% 0.6% P16..4: 43.6% 22.9% 11.4% 0.0% 0.0% skip:13.0%
x264 [info]: mb B I16..4: 0.0% 0.4% 0.1% B16..8: 50.2% 6.9% 1.6% direct: 2.2% skip:38.7% L0:37.7% L1:52.1% BI:10.2%
x264 [info]: 8x8 transform intra:84.5% inter:71.4%
x264 [info]: direct mvs spatial:99.7% temporal:0.3%
x264 [info]: coded y,uvDC,uvAC intra: 87.0% 0.0% 0.0% inter: 17.9% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 23% 15% 9% 53%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 4% 9% 12% 12% 12% 12% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 10% 3% 9% 15% 15% 14% 11% 13%
x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:0.1% UV:0.0%
x264 [info]: ref P L0: 61.1% 21.0% 13.8% 4.1% 0.1%
x264 [info]: ref B L0: 93.2% 5.5% 1.3%
x264 [info]: ref B L1: 96.7% 3.3%
x264 [info]: kb/s:5231.28
encoded 2858 frames, 10.11 fps, 5231.33 kb/s
av2y [info]: E:\in\eclisse\041_6-700y_4t.avs: 1920x1024, Y8, 8-bits, progressive, 24000/1001 fps, 2858 frames
av2y [info]: converting input clip to YUV420
Final file size is 74.4 MB bytes.

--- COMPLETED ---

Job finished at 2020-07-04, 12:25:22. Process took 4 minutes, 47 seconds.
__________________
@turment on Telegram

Last edited by tormento; 4th July 2020 at 13:15.
tormento is offline   Reply With Quote
Old 7th July 2020, 07:34   #556  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Any idea to solve that issue?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 7th July 2020, 10:36   #557  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Have you tried converting the clip to regular YV12 before it ends up in the encoder process?
__________________
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 16th July 2020, 10:31   #558  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
real.finder does dfttestMC support sstring parameter for dfttest instead of sigma?

I usually prefer different sigma values based on frequency.

I can set sstring in dfttestMC parameters, f.e. like this:
Code:
dfttestMC(Y=true, U=false, V=false, sstring="$ 0.0:4 0.2:9 0.4:16 0.6:25 0.7:16 0.8:9 0.9:4 1.0:25", tbsize=5, dither=0, dfttest_params=", threads=16")
But I wonder if this really gets relayed to dfttest or the default value (sigma=16) is used instead? From my testing the latter seems to be the case.

I also can't set this string inside the 'dft_params' string either. Is this a syntax problem? Can you set a string inside a string anyway?
LeXXuz is offline   Reply With Quote
Old 16th July 2020, 10:49   #559  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by LeXXuz View Post
real.finder does dfttestMC support sstring parameter for dfttest instead of sigma?

I usually prefer different sigma values based on frequency.

I can set sstring in dfttestMC parameters, f.e. like this:
Code:
dfttestMC(Y=true, U=false, V=false, sstring="$ 0.0:4 0.2:9 0.4:16 0.6:25 0.7:16 0.8:9 0.9:4 1.0:25", tbsize=5, dither=0, dfttest_params=", threads=16")
But I wonder if this really gets relayed to dfttest or the default value (sigma=16) is used instead? From my testing the latter seems to be the case.

I also can't set this string inside the 'dft_params' string either. Is this a syntax problem? Can you set a string inside a string anyway?
sstring in dfttestMC should work

you can't use dfttest_params for things has independent parameters like sstring since it will be used twice and you will get error about that

"Can you set a string inside a string anyway?"

you can, with dfttest_params=""",somepara="somestring" """
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 16th July 2020, 11:09   #560  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Quote:
Originally Posted by real.finder View Post
sstring in dfttestMC should work
It seems I made an error in my script that's why I had the impression sstring may not work.
Good to know sstring is supported.

Quote:
Originally Posted by real.finder View Post
you can't use dfttest_params for things has independent parameters like sstring since it will be used twice and you will get error about that

"Can you set a string inside a string anyway?"

you can, with dfttest_params=""",somepara="somestring" """
Thanks for the quick reply and that explanation.
Finally I now know how to use that syntax correctly.
LeXXuz 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:01.


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