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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th November 2017, 21:17   #21  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Did anyone manage to get in touch with MarcFD for his original code if it's that much better? real.finder can you post screenshots for comparison?
ryrynz is offline   Reply With Quote
Old 28th November 2017, 21:32   #22  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
here we are

no filter


awarpsharp in awarpsharp2


awarpsharp in old awarpsharp


and according to SEt it should be same https://forum.doom9.org/showthread.p...95#post1687695
__________________
See My Avisynth Stuff

Last edited by real.finder; 28th November 2017 at 21:54.
real.finder is offline   Reply With Quote
Old 28th November 2017, 22:05   #23  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Thanks, I'm gonna have to go with awarp2 in this example, I can see the original awarp is a big sharper and thinner in some areas but awarp2 is sharper in some areas also.
The original awarp blows out the reds, Misato's shirt is worse (most noticeable around the arms) awarp2 is almost identical in appearance to the original frame as it should be.. you said chroma is better but that's simply not the case here.

Last edited by ryrynz; 28th November 2017 at 22:08.
ryrynz is offline   Reply With Quote
Old 28th November 2017, 22:12   #24  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by ryrynz View Post
I'm gonna have to go with awarp2 in this example, I can see the original awarp is a big sharper and thinner in some areas but awarp2 is sharper in some areas also.
The original awarp blows out the reds, Misato's shirt is worse, awarp2 is almost identical in appearance to the original frame as it should be.. you said chroma is better but that's simply not the case here.
the original awarp is more clean and accurate, it not blows out the reds, it's just did the job with warp chroma to luma (Default behavior)

and aside from all that, awarpsharp2 has awarpsharp() for compatibility with old awarpsharp, it should be same (or at least with unnoticeable difference) regardless of whether they are better or worse
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th November 2017, 22:19   #25  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
How is it accurate when it differs so much from the original frame? The reds are brighter than in the original frame and they shouldn't be. There's no win here for the original awarp.
ryrynz is offline   Reply With Quote
Old 28th November 2017, 22:26   #26  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by ryrynz View Post
How is it accurate when it differs so much from the original frame? The reds are brighter than in the original frame and they shouldn't be. There's no win here for the original awarp.
not something unexpected here cuz it warp chroma with luma as I said

aside from chroma, you can see how it accurate without artifacts in the yellow text for example
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th November 2017, 22:38   #27  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
The warping has stretched the very left side of the text but in other areas in the overlay it's more like the original frame, plus the overlay's appearance doesn't appear to match the effect on the lines in the actual
frame which is the more important part to be analyzing. I guess like anything awarpsharp2 could use a tweak or two but I'm still not seeing the original being more pleasing to me.

jpsdr, are you planning on tweaking this at all?
ryrynz is offline   Reply With Quote
Old 28th November 2017, 23:11   #28  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
so here another one that prove that old awarpsharp is better

https://s18.postimg.org/rucuq99uh/warp2.png

https://s18.postimg.org/u075k8xq1/old_warp.png (ignore the left line bug, it's know things since age and one reason that awarpsharp2 existing)

Code:
ColorBars(pixel_type="yv12")
info
aWarpSharp_aWarpSharp
__________________
See My Avisynth Stuff

Last edited by real.finder; 28th November 2017 at 23:13.
real.finder is offline   Reply With Quote
Old 29th November 2017, 01:47   #29  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Surely changing the depth parameter in awarp2 could provide a similar output?
ryrynz is offline   Reply With Quote
Old 29th November 2017, 02:51   #30  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by ryrynz View Post
Surely changing the depth parameter in awarp2 could provide a similar output?
don't think so, the warp depth is same in both, I highly suspect the blur, maybe something else like aSobel but not the warp depth
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 29th November 2017, 04:05   #31  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
well, the chorma seems to have some bug in awarpsharp() in awarpsharp2, it's like using depthc=0, it should be depthc=depth/2 for 420, so:-

Code:
aWarp(aSobel(128).aBlur(2,0), depth=16,chroma=4, depthc=8)
this is the most close to original awarpsharp

but this made me learn something new, and it's I can use depthc=0 for chroma guide by luma I was think that depth=0 result will be always like unprocessed clip

edit1: well, no, it's not the same in Pinterf and older ver., as they seems to unwarp chroma if it guide by luma and depthc=0, awarpsharpmt is just use depth/2 for the depthVC (8 in this case)
SEt ver. (2012) work fine with the awarpshrp() in the awarpsharp2 dll, so the bug happened in 2015 one

edit2: also this lead us to another bug in the awarpsharpmt, and it's that depthVC default is not depthC as it should

aside form all thing, there are still there are some difference in both luma and chroma... not big but it's there
__________________
See My Avisynth Stuff

Last edited by real.finder; 29th November 2017 at 07:28.
real.finder is offline   Reply With Quote
Old 29th November 2017, 06:21   #32  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
jpsdr, I can't for the life of me get awarp4 to work. If I just call awarpsharp() by itself it works fine.
No problems with Pinterf's version. Tried all versions, just get it crashing, plugin pack also crashes.

Ryzen on W10CU.

input4x = last.Spline64Resize(width*4, height*4, src_left=0.375, src_top=0.375)
edgemask = last.aSobel.ablur
aWarp4(input4x,edgemask,depth=2)

Last edited by ryrynz; 29th November 2017 at 06:27.
ryrynz is offline   Reply With Quote
Old 29th November 2017, 09:58   #33  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Quote:
Originally Posted by ryrynz View Post
Did anyone manage to get in touch with MarcFD for his original code if it's that much better?
I've contacted him, and asked for the code, as i was asked to add the others blur modes.
I thought he would provide me the whole code, but he gave me only the blur part code. I've not asked him more, assuming he probably didn't want to give me the whole code...
jpsdr is offline   Reply With Quote
Old 29th November 2017, 10:01   #34  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Got nothing to lose, you might as well ask.
ryrynz is offline   Reply With Quote
Old 29th November 2017, 10:08   #35  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Quote:
Originally Posted by real.finder View Post
edit1: well, no, it's not the same in Pinterf and older ver., as they seems to unwarp chroma if it guide by luma and depthc=0, awarpsharpmt is just use depth/2 for the depthVC (8 in this case)
SEt ver. (2012) work fine with the awarpshrp() in the awarpsharp2 dll, so the bug happened in 2015 one

edit2: also this lead us to another bug in the awarpsharpmt, and it's that depthVC default is not depthC as it should
Oups... I thought i've fixed it, but depthCV is depthV as default instead of depth indeed... I'll fix it in a next release.
About edit1 : Do you meen the SEt version awarpsharp() is realy identical to original, but the versions afterward not anymore ?
jpsdr is offline   Reply With Quote
Old 29th November 2017, 10:12   #36  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Quote:
Originally Posted by ryrynz View Post
jpsdr, I can't for the life of me get awarp4 to work
This code works for me. Does it for you ?
Code:
SetMemoryMax(64)
a=AVISource("Test.avi",False,"YV12").SetPlanarLegacyAlignment(True)
d=aSobel(a)
aWarp4(a.Spline36Resize(4*a.width,4*a.height),d)
Edit
Just tested this :
Code:
SetMemoryMax(64)
AVISource("Test.avi",False,"YV12").SetPlanarLegacyAlignment(True)
input4x = last.Spline64Resize(width*4, height*4, src_left=0.375, src_top=0.375)
edgemask = last.aSobel.ablur
aWarp4(input4x,edgemask,depth=2)
It works for me.

Last edited by jpsdr; 29th November 2017 at 10:17.
jpsdr is offline   Reply With Quote
Old 29th November 2017, 10:29   #37  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Tried the above but using ffdshow_source() and it crashes, it doesn't matter what MT mode I try whether I specify setmemorymax or not.
Tried W7 and XP releases for compatibility, I have the latest runtimes installed.

Last edited by ryrynz; 29th November 2017 at 10:52.
ryrynz is offline   Reply With Quote
Old 29th November 2017, 10:43   #38  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Ah... As i never use MT mode, i never thought of testing them... But strange, filters should report themselves as MT_MULTI_INSTANCE.
But if you use external multi-threading, in that case, maybe you should try adding threads=1 in the parameters.
jpsdr is offline   Reply With Quote
Old 29th November 2017, 11:07   #39  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Tried threads=1 on asobel, ablur and awarp4 with no success along with setting prefetch value accordingly.
ryrynz is offline   Reply With Quote
Old 29th November 2017, 11:52   #40  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Sorry... For now, no idea in that case. If you use AVISource and not ffdshow_source, does it crash ? Unfortunately, even if this is the issue, i would have no idea of the why...
jpsdr is offline   Reply With Quote
Reply

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


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