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 18th March 2003, 00:14   #1  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
My first filter: Super8Equal

After requesting the Filter SDK I feel oblieged to publish my filter, although it is probably of low interest for most people

Code:
Overview:
One problem of the transfer of Super8 films to digital media is the inhomogenous
brightness produced by projectors. Usually the brighness drops in a circular
fashion from the center to the rim. This filter was written to counteract this
problem. (Alternatively it can be used to create the same flair ;) )


Usage:

Super8Equal(clip, center[float, 1.0], rim[float, 0.0], min[float, 0.0], max[float, 2.0])

center, rim:	The brightness of pixels is multiplicated by a factor calculated
		by linear interpolaration from the center factor to the rim factor,
		dependant on the distance from the center of the picture.
		The rim factor is reached in the corners of the picture.
min, max:	These are cut off values. The factor will never go below min or
		above max.

The filter is for AviSynth 2.5.x and works in all color spaces (the brightness alteration
is a bit diffrent between the RGB color spaces and YUY2/YV12).
Many thanks to Simon Walters for his sample on which this was built

Edit:
Download it here.

Cheers
Belgabor
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community

Last edited by Belgabor; 20th March 2003 at 04:46.
Belgabor is offline   Reply With Quote
Old 18th March 2003, 14:13   #2  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Wouldn't it have been easier to port neuron2's HotSpot filter ?

Last edited by mf; 20th March 2003 at 12:34.
mf is offline   Reply With Quote
Old 18th March 2003, 17:14   #3  |  Link
frank
Banned
 
Join Date: Oct 2001
Location: https://t.me/pump_upp
Posts: 811
Und wo ist der Download Link?
frank is offline   Reply With Quote
Old 18th March 2003, 17:43   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally posted by mf
Wouldn't it have been easier to port neuron2's HotSpot filter ?
Please update your links to my site as below (shelob rather than sauron).

My Hotspot filter uses a mask directly obtained from the projector and therefore exactly matches the luminance discontinuities. I also found that both multiplicative and additive adjustments were required for best results.
Guest is offline   Reply With Quote
Old 19th March 2003, 11:25   #5  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
Doh! I should have known you made such a filter Donald, knowing you did an anti flicker filter. Anyhow mine's at least AviSynth
To its working condition I have to say I didnt yet test it on footage. I wrote it for my dad who wants to cap all his old super8 films but he hasnt done any real captureing yet.

The file is attached to my first post, but either its not been moderated yet or the forum's been funky on it. I'll see if I can put it somewhere else when I get home this evening.

Cheers
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community
Belgabor is offline   Reply With Quote
Old 19th March 2003, 11:51   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
@Belgabor

I've no problem at all with you making such a filter for Avisynth, or VirtualDub for that matter.

I just thought you might find some useful ideas from the earlier work.
Guest is offline   Reply With Quote
Old 19th March 2003, 12:05   #7  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
Quote:
Originally posted by neuron2
@Belgabor

I've no problem at all with you making such a filter for Avisynth, or VirtualDub for that matter.

I just thought you might find some useful ideas from the earlier work.
Thats how I understood you
I certainly will have a look at your sources when I have some footage to play with (well, from the pics on your page I already got the idea to add options to move the center, something that hadn't occured to me.)
In fact my first implementaton idea was to calculate a mask first and apply that, but then I found out that you can't access frame dimensions from the filters constructor (have I overlooked something there?)
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community
Belgabor is offline   Reply With Quote
Old 19th March 2003, 12:21   #8  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@Belgabor: Use vi.height & vi.width to access frame dimensions.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 19th March 2003, 12:30   #9  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
Doh! Looking for GetHeight() and GetWidth() like in Clip I overlooked those ^^'
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community
Belgabor is offline   Reply With Quote
Old 19th March 2003, 12:48   #10  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Just writing a "speech", so it can be put up on avisynth.org:

VideoInfo is considered the "constant" video info. This can not in any way change. The information such as width, height and colorspace cannot change. So the information you get from this can be trusted to be the same from all frames you recieve. If you change the VideoInfo you have recieved it will not change the frames you recieve, but a modified 'VideoInfo vi' can be sent to env->NewVideoFrame(vi) and a new frame with the changed parameters will be created. Only your own filter can modify the VideoInfo given to your filter.

PVideoFrame contains information about a particular frame you requested. Height and Rowsize should not change (this can be considerd a bug). Pitch can change, so you cannot rely on pitch being the same for all frames you recieve.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 20th March 2003, 04:47   #11  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
Original post updated with a link to the file.
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community
Belgabor is offline   Reply With Quote
Old 20th March 2003, 11:13   #12  |  Link
lex3
Registered User
 
Join Date: Sep 2002
Location: Moscow, Russia
Posts: 19
Hi, everybody.

There is a nice VirtualDub filter - Radial Luminance Correction

It can be found here:
http://web.tiscali.it/minomala/virtualdub/filters.htm
__________________
Regards, lex3
lex3 is offline   Reply With Quote
Old 20th March 2003, 12:40   #13  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by neuron2
Please update your links to my site as below (shelob rather than sauron).
Rather mail google and tell them to remove sauron, or just add a "permanently moved" http redirect to shelob. Usually I type in urls from my address bar (like "shelob.mordor.net/dgraft" or "roeder.goe.net/koepi") but this time I was too lazy and used google.
Anyway, I edited my post. Could you enlighten me on why the new url, and why they both still co-exist, and not updated on google yet ?
mf is offline   Reply With Quote
Old 21st March 2003, 18:17   #14  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally posted by mf
Could you enlighten me on why the new url, and why they both still co-exist, and not updated on google yet?
The people I want to find me will do so.

My site is contributed by Chris Mauritz. I do not administer it. One day sauron died and the site was restored to shelob. That is all I know. I will ask Chris to make a redirect. Thank you for pointing out the inconvenience this causes.

Don (safely back from India after Lufthansa re-routed around the Gulf)

Last edited by Guest; 21st March 2003 at 18:26.
Guest is offline   Reply With Quote
Old 30th June 2009, 14:17   #15  |  Link
th3obr0
Registered User
 
Join Date: Jan 2009
Posts: 77
Sorry for the bump. I was going through AVISynth.org's Section 3 and found this. Any possibilities of getting the Super8Equal files? Google didn't help.
th3obr0 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 07:46.


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