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. |
11th April 2006, 15:05 | #41 | Link |
ангел смерти
Join Date: Nov 2004
Location: Lost
Posts: 9,558
|
You don't need this filter for DVDs. Or at least, I've never seen a DVD without some film grain, and almost always lots of it, and it slows playback WAY down.
As for why it crashes, it's really hard to say since there's no error message. |
11th April 2006, 23:34 | #42 | Link |
Registered User
Join Date: May 2005
Posts: 236
|
Corrected version:
Code:
Function gradfunkmirror( clip c, int "strength" ) { strength = default( strength, 1.2 ) w = c.width() h = c.height() vflip = c.FlipVertical() hflip = c.FlipHorizontal() stackhorizontal( hflip.crop( w-16, 0, 16, h ).addborders( 0, 16, 0, 16 ), \ stackvertical( vflip.crop( 0, h-16, w, 16 ), c, vflip.crop( 0, 0, w, 16 ) ), \ hflip.crop( 0, 0, 16, h ).addborders( 0, 16, 0, 16 ) ) gradfun2db( strength ) crop( 16, 16, -16, -16 ) Return last } Last edited by Alain2; 11th April 2006 at 23:37. |
11th April 2006, 23:52 | #43 | Link |
Registered User
Join Date: Mar 2002
Location: France
Posts: 85
|
isnt that the same though?
it does look proper on my original script iirc from h-16 to 0 or starting from h-16 with a 16 offset is the same at least it was in the quick test i just did Last edited by DeathWolf; 12th April 2006 at 00:00. |
12th April 2006, 03:04 | #45 | Link |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
##Standard gradfunk
function gradfunk(clip c, int strength) { strength=default(strength,1.2) return c.addborders(16,16,16,16).gradfun2db(strength).crop(16,16,-16,-16) } ##Corners will be ignored function gradfunkmirror(clip c, int strength) { strength=default(strength,1.2) vflip = c.FlipVertical() hflip = c.FlipHorizontal() return stackhorizontal(hflip.crop(c.width-16,0,16,c.height).addborders(0,16,0,16),stackvertical(vflip.crop(0,c.height-16,c.width,16),c,vflip.crop(0,0,c.width,16)),hflip.crop(0,0,16,c.height).addborders(0,16,0,16)).gradfun2db(strength).crop(16,16,-16,-16) } Above the picture is what I'm using. The picture shows the problem I'm having. It also shows my ffdshow avisynth setting, and the file. What am I doing wrong ? |
12th April 2006, 22:57 | #48 | Link | |
Registered User
Join Date: May 2005
Posts: 236
|
Quote:
vflip.crop(0,c.height-16,c.width,0) It is this zero I was talking about. Oh btw in the function you have you started with function gradfunkmirror(clip c, int strength) but then in ffdshow you don't specify a strength... You should write the header as i did (Function gradfunkmirror( clip c, int "strength" )) if you want to be able to omit the strength parameter when calling the function Last edited by Alain2; 12th April 2006 at 23:02. |
|
4th July 2006, 02:34 | #54 | Link |
Registered User
Join Date: Nov 2003
Posts: 324
|
I tried this filter using defaults, ie, "gradfun2db()"
The result was a very screwed-up frame: http://img56.imageshack.us/my.php?image=gradfun7hz.png |
6th July 2006, 15:59 | #57 | Link |
unrecognized user
Join Date: Oct 2005
Location: home of Stella Artois
Posts: 303
|
I think the original purpose was for encoding (?). But since basically the crappy 12 bit color after encoding the bending will appear there again (a bit less though I would say). But it acts also as a spatial denoiser a bit so it can have some uses in the encoding process, but his great strength is at playback.
__________________
zzz |
9th July 2006, 13:26 | #58 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
np: New Order - Hey Now What You Doing (Waiting For The Sirens' Call)
__________________
now playing: [artist] - [track] ([album]) |
|
9th July 2006, 17:54 | #60 | Link |
brainless
Join Date: Mar 2003
Location: Germany
Posts: 3,653
|
every YUV colourspace supported by AVS has 8 bits/channel.
but due to subsampling the average amount of data is 12 bits/pixel. But this doesn't say anything about bits/channel!
__________________
Don't forget the 'c'! Don't PM me for technical support, please. |
Thread Tools | Search this Thread |
Display Modes | |
|
|