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 6th October 2017, 20:54   #1  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
Weird light blur halo (and other things!)

Hello,
After some searchs on this forum and other forums, i couldn't find how to correct a weird llght blur.
Here is what i am talking about:

I really don't know how it is called.
Here is my current script, very poor for the moment and not optimized, but it seems to enhance a bit the video:
Code:
PluginPath = "C:\Program Files (x86)\AviSynth+\plugins"
Cores=4
SetFilterMTMode("DEFAULT_MT_MODE", 2)
SetFilterMTMode("FFmpegSource2", 3)
ClearAutoloadDirs()
AddAutoloadDir(PluginPath)
FFmpegSource2("source.mp4", vtrack=-1, atrack=-1)
#Interframe(Preset="Medium", Tuning="Animation", NewNum=0, NewDen=1001, GPU=True, InputType="OU", OverrideAlgo=0, OverrideArea=0, Cores=Cores)
ColorYUV(gamma_y=-20)
Lanczos4Resize(1920, 1080)
aWarpSharp2(depth=60, blur=6)
proToon(strength=150)
DeHalo_alpha(brightstr=2, ss=2.0)
LimitedSharpenFaster(strength=300).LimitedSharpenFaster()

Prefetch(Cores)
This script currently doesn't correct the light, and the noise, as i don't really know how to deal with ; also, the balk edges are currently not very sexy, I have a hard time making them sharper without diminishing the amount of detail on the picture and having a clean result.

Any enhancement of my script and tip is very welcome, thanks a lot!

Last edited by Donokami; 27th December 2017 at 20:00.
Donokami is offline   Reply With Quote
Old 7th October 2017, 21:16   #2  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
did you tried dehaloh and dehalohmod?
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 8th October 2017, 12:08   #3  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
I just tried now, and it doesn't seems to change anything with default parameters, and when i increase parameters, the changes are really insignificant; the strong halo is still here.
I almost tried all these dehaloing filters (except Mask_DHA and FineDehalo), without changes on the strong light halo :/
Donokami is offline   Reply With Quote
Old 8th October 2017, 16:54   #4  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
Quote:
Originally Posted by Donokami View Post
I just tried now, and it doesn't seems to change anything with default parameters, and when i increase parameters, the changes are really insignificant; the strong halo is still here.
I almost tried all these dehaloing filters (except Mask_DHA and FineDehalo), without changes on the strong light halo :/
that because you seems to use it after resize
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 8th October 2017, 21:30   #5  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
Even without resize, there is no significant changes with DeHaloH(mod) :/
This strong light halo is still here.
Donokami is offline   Reply With Quote
Old 9th October 2017, 03:14   #6  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 234
That effect circled in your jpg isn't a halo.
Ever heard the expression illegal video levels?
What do you suppose upsampling from standard definition did for the clipping and bright blooming caused by those levels?

Keep at it, folks, and you're making digital video look almost as bad as VHS.

Last edited by LemMotlow; 9th October 2017 at 03:16.
LemMotlow is offline   Reply With Quote
Old 9th October 2017, 21:15   #7  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
Sorry, i don't understand your reply.
If you are speaking about the burned light, yep, there is a lot of overexposed scenes, causing that kind of light thing.
Also, the samples used in this thread were not processed with Avisynth, so i didn't made any change.
After some searchs, i didn't find any relevant things explaining what were these illegal video levels or how to correct them now.
Thanks.
Donokami is offline   Reply With Quote
Old 9th October 2017, 21:27   #8  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 234
Quote:
Originally Posted by Donokami View Post
After some searchs, i didn't find any relevant things explaining what were these illegal video levels or how to correct them now.
Safe video levels are y=16-235 for standard video formats and broadcast. It doesn't matter at this point: the clipping can't be fixed.
https://en.wikipedia.org/wiki/Clipping_(photography)
https://digitalfilms.wordpress.com/2...-video-levels/

Last edited by LemMotlow; 9th October 2017 at 21:30.
LemMotlow is offline   Reply With Quote
Old 9th October 2017, 21:37   #9  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,364
I suspect the bloom effect is in the original, a creative decision.
A quick reverse image search seems to confirm this feeling:
http://aminomail.com/page/anime/9034...ome-to-the-nhk
raffriff42 is offline   Reply With Quote
Old 9th October 2017, 22:19   #10  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 234
obviously part of the haze is by design and is characteristics of the creator's other work. And part of it is stupidity.
LemMotlow is offline   Reply With Quote
Old 10th October 2017, 01:41   #11  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
Quote:
Originally Posted by Donokami View Post
Sorry, i don't understand your reply.
If you are speaking about the burned light, yep, there is a lot of overexposed scenes, causing that kind of light thing.
Also, the samples used in this thread were not processed with Avisynth, so i didn't made any change.
After some searchs, i didn't find any relevant things explaining what were these illegal video levels or how to correct them now.
Thanks.
for this https://i.imgur.com/wiHJl99.png , it's ringing, yahr (or yahr2) should work, or you should wait for new awarpsharp2 to fix only the horizontal ringing without hurt the vertical details
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 22nd December 2017, 22:43   #12  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
(sorry for the lack of response)
Well, after numerous attempts with YAHR and YAHR2, nothing more.
There are a lot of overexposed, since the graphic quality is bad, but i know i can't fix it.
I only want to fix these larges halos caused by this overexposition, as much as possible.

Thanks!
Donokami is offline   Reply With Quote
Old 23rd December 2017, 00:57   #13  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
there are new awarpshrp2 by jpsdr that you can only filter horizontal ringing with it

I did update yahr2, yahr3 and YAHRmask to use that, depthV=0 or warpdepthV=0 will do it
__________________
My Avisynth Stuff

Last edited by real.finder; 23rd December 2017 at 01:11.
real.finder is offline   Reply With Quote
Old 26th December 2017, 17:17   #14  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
Well, it doesn't make any changes on that kind of halo...
I tried almost everything, i don't know how to fix it.
Maybe someone who knows Avisynth more than myself could make some experiments with the samples i gave, i'm lost.
Thanks.
Donokami is offline   Reply With Quote
Old 26th December 2017, 17:43   #15  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
Quote:
Originally Posted by Donokami View Post
Well, it doesn't make any changes on that kind of halo...
I tried almost everything, i don't know how to fix it.
Maybe someone who knows Avisynth more than myself could make some experiments with the samples i gave, i'm lost.
Thanks.
you didn't upload untouched sample
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 26th December 2017, 22:31   #16  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
A gave them in the first message:
EDIT to not violate the rules.
I don't think that Google change the file, and these 2 samples are the only sample i have.

Last edited by Donokami; 27th December 2017 at 20:01.
Donokami is offline   Reply With Quote
Old 27th December 2017, 00:53   #17  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 978
Quote:
Originally Posted by Donokami View Post
A gave them in the first message:
https://drive.google.com/drive/folde...Gc?usp=sharing
I don't think that Google change the file, and these 2 samples are the only sample i have.
mp4 mean it's not DVD or any original source and it mean it reencoded (ripped), untouched sample mean you cut from original DVD without reencode (by dgindex or whatever) just mux of section, I am afraid you violate Rule 6

Edit: and btw, if it true that you violate Rule 6 then this explains why filters not work for you cuz ripped things in net are shit most of times and filters not designed for them, aside from it's upscale to that funny PAL 16:9 dimensions 576p unofficial 1024x576 for NTSC origin show
__________________
My Avisynth Stuff

Last edited by real.finder; 27th December 2017 at 01:16.
real.finder is offline   Reply With Quote
Old 27th December 2017, 20:03   #18  |  Link
Donokami
Registered User
 
Donokami's Avatar
 
Join Date: Oct 2017
Posts: 8
Thanks for these tips.
I'm currently getting my own DVD, and i will work with a NTSC format.
I also removed the urls that could violate the rules
Donokami is offline   Reply With Quote
Reply

Tags
anime, avisynth+, blur, filter

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 21:25.


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