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 19th July 2014, 18:02   #1  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
aWarpSharp causing green on the sides of video

aWarpSharp(depth=7.5, blurlevel=1)

I have been using this filter for years and in the past this has never happened to me.

It doesn't happen on my older computer when I use this, but when I use it on my newer computer it all of a sudden has green appearing on the sides like this. If you look close enough you can see it most under his arm and close to his elbows.




Its easier to see with a dark background like in my album with more examples in it.
http://imgur.com/a/0aOYW#0



I'm using the same exact plugins, the same exact programs and the same encoding method. Why would these only be showing up on my newer computer and not my older one?

Whats the cause of these coming up all of a sudden?

Its not just this source either, its happening on every source I try on my newer computer but not on my older computer.

Last edited by killerteengohan; 19th July 2014 at 18:04.
killerteengohan is offline   Reply With Quote
Old 19th July 2014, 18:05   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,371
No idea why it only occurs on some setups, but it's a known issue, use AwarpSharp2

http://forum.doom9.org/showthread.php?t=147285
poisondeathray is offline   Reply With Quote
Old 19th July 2014, 18:37   #3  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
Quote:
Originally Posted by poisondeathray View Post
No idea why it only occurs on some setups, but it's a known issue, use AwarpSharp2

http://forum.doom9.org/showthread.php?t=147285
That filter gives alot more trouble than its worth and didnt do that great of job when I tried it a while back. I tried it before and didn't like it, that's why I stuck with the original. Its more damaging than the original one is by over thinning lines or making it look bad.


I've never seen or had a problem with the green on the sides before until just now on this newer computer.

Same source on old computer with same plugins and programs, no green on the sides but there sure is on the newer computer.

There's got to be some kind of reason for this coming out of nowhere I would think.

Last edited by killerteengohan; 19th July 2014 at 18:41.
killerteengohan is offline   Reply With Quote
Old 19th July 2014, 18:51   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,371
Quote:
Originally Posted by killerteengohan View Post
That filter gives alot more trouble than its worth and didnt do that great of job when I tried it a while back. I tried it before and didn't like it, that's why I stuck with the original. Its more damaging than the original one is by over thinning lines or making it look bad.
Did you read the instructions on mapping from original AwarpSharp parameters ?


Quote:
I've never seen or had a problem with the green on the sides before until just now on this newer computer.

Same source on old computer with same plugins and programs, no green on the sides but there sure is on the newer computer.

There's got to be some kind of reason for this coming out of nowhere I would think.
I had the same problem on a few computers, and could never track down the issue about what caused it, what conditions, what plugins might be contributing.

Eitherway, Awarpsharp2 fixes everything .
poisondeathray is offline   Reply With Quote
Old 19th July 2014, 19:12   #5  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
Quote:
Originally Posted by poisondeathray View Post
Did you read the instructions on mapping from original AwarpSharp parameters ?




I had the same problem on a few computers, and could never track down the issue about what caused it, what conditions, what plugins might be contributing.

Eitherway, Awarpsharp2 fixes everything .

No I saw no such instructions about mapping. Can you tell me where to find them?

I did however find a 2012 update recently posted not too long ago and that one seems to work better than the 2009 one I had tried a couple years ago.

I used to have to type awarpsharp2() and the parameter depth= didnt exist but it seems like it works in the newer one. Can I use it just like the old awarpsharp with the same parameters and not get the green?

Last edited by killerteengohan; 19th July 2014 at 19:21.
killerteengohan is offline   Reply With Quote
Old 19th July 2014, 19:59   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,371
Quote:
Originally Posted by killerteengohan View Post
No I saw no such instructions about mapping. Can you tell me where to find them?
In the awarpsharp2 instructions, there is a section on "Mapping from original aWarpSharp parameters"
poisondeathray is offline   Reply With Quote
Old 19th July 2014, 21:17   #7  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
For some reason I could never get the original aWarpSharp to coincide with aWarpSharp2's aWarpSharp (different outputs). From my understanding there was an update to the original aWarpSharp some time ago.

Quote:
Originally Posted by Didée View Post
I heard a rumour those DLLs were "slightly modified". But looking at the file dates, and remembering that MarcFD wasn't the busyiest with releasing sources ...
Quote:
Originally Posted by Soulhunter View Post
Ok, I asked pruned for the exact changes...

- Chroma to luma warper

- Improved stability

- Improved precision

- Other small fixes
Unfortunately all of the download links in that thread are dead. Does anyone have the updated aWarpSharp?
Reel.Deel is offline   Reply With Quote
Old 19th July 2014, 21:35   #8  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
Quote:
Originally Posted by Reel.Deel View Post
For some reason I could never get the original aWarpSharp to coincide with aWarpSharp2's aWarpSharp (different outputs). From my understanding there was an update to the original aWarpSharp some time ago.


Unfortunately all of the download links in that thread are dead. Does anyone have the updated aWarpSharp?

I only have a 2003 version for awarpsharp and 2009 awarpsharp2, but I did find a 2012 one here. http://forum.doom9.org/showthread.php?t=147285

I realize its awarpsharp2 but from the updates description it might do what you said you couldnt get it to do just above.




Quote:
Originally Posted by SEt View Post
While I'm at it, let's post some improvements that were implemented years ago but never made it to public: new version 2012.03.28.

Changes:
1) Added new final part aWarp4 that takes 4x upsampled source for better final subpixel interpolation. Allows producing much sharper result with lower depth, so less deformations. Examples:
Code:
aWarp4(Spline36Resize(width*4, height*4, 0.375, 0.375), aSobel().aBlur(), depth=3)
aWarp4(nnedi3_rpow2(rfactor=2).Spline36Resize(width*4, height*4, 0.25, 0.25), aSobel().aBlur(), depth=3)
aWarp4(nnedi3_rpow2(rfactor=2).nnedi3_rpow2(rfactor=2), aSobel().aBlur(), depth=2)
Note that upsampling should be left-top aligned, so Spline36Resize(width*4, height*4) or nnedi3_rpow2(rfactor=4) won't produce correct results.

2) aWarpSharp2 can now be also called by aWarpSharp() with internal parameters conversion for compatibility with ancient scripts. Direct aWarpSharp2 call is encouraged though.
3) New chroma values: 5 and 6: the same as 3 and 4, but luma isn't processed and just copied. Useful for filtering sources with certain chroma problems.
4) Changed some defaults.
killerteengohan is offline   Reply With Quote
Old 19th July 2014, 21:46   #9  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by killerteengohan View Post
I only have a 2003 version for awarpsharp and 2009 awarpsharp2, but I did find a 2012 one here. http://forum.doom9.org/showthread.php?t=147285

I realize its awarpsharp2 but from the updates description it might do what you said you couldnt get it to do just above.
No that's not it, I'm already using aWarpSharp2 from 2012. I tried to get similar output from aWarpsharp (2003) and aWarpSharp2 (2012) but I never could (still can't). The updated aWarpsharp I'm talking about was released around 2005.
Reel.Deel is offline   Reply With Quote
Old 19th July 2014, 22:04   #10  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,371
It probably won't match up perfectly when you use decimal values, because depth parameter in awarpsharp2 only takes integer values. I think it rounds the value in the auto conversion when you call awarpsharp instead of awarpsharp2 (which gives you an error). That might be the reason behind the green borders in the first place

The mapping
depth = depth*blurlevel/2

eg. old awarpsharp
aWarpSharp(depth=7.5, blurlevel=1)

7.5 * 1/2 = 3.75
poisondeathray is offline   Reply With Quote
Old 19th July 2014, 22:50   #11  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Yeah that's probably one the reasons. In addition to that, the old aWarpSharp cm parameter defaults to 3 (included documentation is wrong) and there seems to be no valid mapping in aWarpSharp2.

Mapping
chroma = 0->2, 1->4, 2->3
Reel.Deel is offline   Reply With Quote
Old 20th July 2014, 01:31   #12  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
I did notice if you crop a multiple of 16 off the sides like 10 off the right and 6 off the left, or whatever gets you a multiple of 16, the green goes away mostly or reduces alot but theres still obvious marks on the video, its just not bright green and overly apparent.
killerteengohan is offline   Reply With Quote
Old 22nd July 2014, 11:58   #13  |  Link
2Bdecided
Registered User
 
Join Date: Dec 2002
Location: UK
Posts: 1,673
The easy solution is to add borders before using awarpsharp and crop them off again afterwards.

The greening is content dependent.

Cheers,
David.
2Bdecided is offline   Reply With Quote
Old 23rd July 2014, 06:34   #14  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Quote:
Originally Posted by Reel.Deel View Post
Yeah that's probably one the reasons. In addition to that, the old aWarpSharp cm parameter defaults to 3 (included documentation is wrong) and there seems to be no valid mapping in aWarpSharp2.

Mapping
chroma = 0->2, 1->4, 2->3
No. 0=>1, 1=>4, 2=>3, 3=>2. aWarpSharp2's were rearranged to be in line with Masktools (though I wish he'd added the Masktools2 string parameters).
foxyshadis is offline   Reply With Quote
Old 23rd July 2014, 07:05   #15  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Quote:
Originally Posted by 2Bdecided View Post
The easy solution is to add borders before using awarpsharp and crop them off again afterwards.
Better than borders: duplicate edges with Padding()
raffriff42 is offline   Reply With Quote
Old 23rd July 2014, 09:28   #16  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
aWarpSharp2 is exactly the same algorithm as aWarpSharp, only with some bugfixes. If you are getting significantly different results – you are doing something wrong. Latest aWarpSharp2 supports aWarpSharp alias that remaps the parameter values automatically if you absolutely can't read the documentation.

Btw, aWarpSharp2 has integer parameters because algorithm uses actually integers, so again aWarpSharp2 is exactly the same as aWarpSharp, just removes the false feeling that slight change in float number changes something when it actually maps to the same integer inside.
SEt is offline   Reply With Quote
Old 23rd July 2014, 14:45   #17  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by foxyshadis View Post
No. 0=>1, 1=>4, 2=>3, 3=>2. aWarpSharp2's were rearranged to be in line with Masktools (though I wish he'd added the Masktools2 string parameters).
Actually I was talking about the mapping.
Quote:
Originally Posted by aWarpSharp2 documentation
Original aWarpSharp compatibility:
Mapping from original aWarpSharp parameters:
thresh = thresh*256
blur = blurlevel
depth = depth*blurlevel/2
chroma = 0->2, 1->4, 2->3

This version is able to do the conversion automatically when called as aWarpSharp,
but errors in case of out of bounds values will be displayed in new terms.
Quote:
Originally Posted by SEt View Post
aWarpSharp2 is exactly the same algorithm as aWarpSharp, only with some bugfixes. If you are getting significantly different results – you are doing something wrong.
Yeah, it's been a while since I tried it, I'll double check myself when I get some time.
Reel.Deel is offline   Reply With Quote
Old 23rd July 2014, 21:05   #18  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
aWarpSharp2's documentation is correct regarding how aWarpSharp version "5 fev 2003" actually works. Though aWarpSharp indeed accepts cm=3, it's just another bug as it works exactly as cm=1 (and cm=1 is actual default).
SEt is offline   Reply With Quote
Old 28th July 2014, 05:06   #19  |  Link
AzraelNewtype
Registered User
 
AzraelNewtype's Avatar
 
Join Date: Oct 2007
Posts: 135
Quote:
Originally Posted by raffriff42 View Post
Better than borders: duplicate edges with Padding()
In what way is this better than adding on black pixels that you expect to be corrupted and never actually want to view?
AzraelNewtype is offline   Reply With Quote
Old 28th July 2014, 10:05   #20  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Because since WarpSharp works by averaging* pixels over a certain area, it can "drag" some of the black pixels into view.

*EDIT not averaging of course, poor choice of word. For any kind of sharpening or blurring, each output pixel will be affected by all its neighbor pixels.

Last edited by raffriff42; 28th July 2014 at 12:46.
raffriff42 is offline   Reply With Quote
Reply

Tags
awarpsharp, green

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 22:11.


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