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 25th December 2007, 23:32   #1  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Avisynth-based picture editor, is it feasible?

Given the (comparatively) poor results that commercial alternatives give to Avisynth filters, I was wondering how feasible would it be to create a standalone application that uses modified version of existing Avisynth filters to treat photographs (so, 2848 x 2136 and up). Besides the modified versions of the filters, what would be needed to do it?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 25th December 2007, 23:47   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Why would one need modified filters?

You can do stuff like this with the existing filters:

Low-quality AA:
nnediresize_YV12()
BicubicResize(last.width/2,last.height/2)

Medium-quality AA:
nnediresize_YV12()
nnediresize_YV12()
BicubicResize(last.width/4,last.height/4)

High-quality AA:
nnediresize_YV12()
nnediresize_YV12()
nnediresize_YV12()
BicubicResize(last.width/8,last.height/8)

"Fake detail" grain for supersampling:
addgrain(10,0.7,0.7)
addgrain(15,0.4,0.4)
addgrain(20,0.2,0.2)
Dark Shikari is offline   Reply With Quote
Old 26th December 2007, 12:56   #3  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
If I'm not mistaken, some of the filters don't support such high resolutions. BTW, why using nnediresize_YV12() and not nnediresize2x(true,true,true)?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 26th December 2007, 14:55   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Chainmax View Post
If I'm not mistaken, some of the filters don't support such high resolutions. BTW, why using nnediresize_YV12() and not nnediresize2x(true,true,true)?
No real reason. I just tend to work in the YV12 colorspace.
Dark Shikari is offline   Reply With Quote
Old 26th December 2007, 20:01   #5  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
So do I, but nnediresize2x seems to work on YV12 as well.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 26th December 2007, 20:52   #6  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Quote:
Originally Posted by Chainmax View Post
what would be needed to do it?
More memory. Looooots more memory. 64-bit plugins will help. That's the only constraint on how large an image you can process.

Otherwise you have to slice up your images beforehand, I do this when I need to descreen 50 megapixel posters. Your 6 megapixel stuff shouldn't be a problem for a basic clean+sharpen script. Oh, for digital cameras with bayer interpolation this isn't important, but for images with full chroma resolution you might want to keep two separate images, one for luma and one double-sized for chroma before conversion to YV12, so you don't lose chroma resolution unnecessarily.

Last edited by foxyshadis; 26th December 2007 at 20:55.
foxyshadis is offline   Reply With Quote
Old 27th December 2007, 15:54   #7  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
- Photo Denoise

- Fritz Photo [German]


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 27th December 2007, 20:24   #8  |  Link
ankurs
N00B !
 
Join Date: Jun 2006
Posts: 223
wouldnt a GUI of some sorts (application) like the filter box of meGUI be better for noobs also just my 2 cents i"m up for it

P.S : Photo Denoise looks promising .. thanks for pointing that out soulhunter
ankurs is offline   Reply With Quote
Old 29th December 2007, 03:31   #9  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Quote:
Originally Posted by foxyshadis View Post
More memory. Looooots more memory. 64-bit plugins will help. That's the only constraint on how large an image you can process.

Otherwise you have to slice up your images beforehand, I do this when I need to descreen 50 megapixel posters. Your 6 megapixel stuff shouldn't be a problem for a basic clean+sharpen script. Oh, for digital cameras with bayer interpolation this isn't important, but for images with full chroma resolution you might want to keep two separate images, one for luma and one double-sized for chroma before conversion to YV12, so you don't lose chroma resolution unnecessarily.
RBG colorspace support would be a good reason for needing modified versions of the filters.


Soulhunter: PhotoDenoise looks good, but the whole idea for wrapping everything up in a GUI is for realtime checking of the results so that filter settings can be altered on-the-fly. Maybe pairing it up with avsp would help in that regard, although Fritz Phot sounds like a better idea (whatever it is they are saying ).
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 29th December 2007, 13:39   #10  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally Posted by Chainmax View Post
RBG colorspace support would be a good reason for needing modified versions of the filters...
Already suggested to use RGBHack for FritzPhoto... This way you can filter in RGB with YV12 filters... It turns the R, G, B channel into 3x Y [YV12] channels for processing and turns em back to RGB afterwards!


Quote:
Originally Posted by Chainmax View Post
...but the whole idea for wrapping everything up in a GUI is for realtime checking of the results so that filter settings can be altered on-the-fly.
Suggested this as well for FritzPhoto... ^^


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 29th December 2007, 21:22   #11  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
it will be useful to have JPEGSource filter in avisynth to read jpeg YUV directly, without RGB conversion.

most jpg from real cameras are sort of YUY2 (4:2:2),
and YV12 (4:2:0), so it is direct,
but some soft jpeg coders can produce non-decimated chroma YUV 4:4:4 (wait AviSynth 2.6)
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 29th December 2007, 21:40   #12  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
RGBHack functionality is now built in (since 2.56) with the ShowRed(), ShowGreen(), ShowBlue() and MergeRGB() plus MergeARGB() filters.
IanB is offline   Reply With Quote
Old 7th January 2008, 20:19   #13  |  Link
Archimedes
Registered User
 
Join Date: Apr 2005
Posts: 213
Basicly, i use Fritz Photo for resizing and sharpening photos from the digital camera (batch processing). Spline36Resize and LimitedSharpen (with low strength values) produces good results. For denoising i’m using FFT3Dfilter.
Archimedes is offline   Reply With Quote
Old 7th January 2008, 20:34   #14  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally Posted by IanB View Post
RGBHack functionality is now built in (since 2.56) with the ShowRed(), ShowGreen(), ShowBlue() and MergeRGB() plus MergeARGB() filters.
Oh, didnt know that... Thanks for the hint! :]


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 8th January 2008, 00:51   #15  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Quote:
Originally Posted by foxyshadis View Post
More memory. Looooots more memory. 64-bit plugins will help. That's the only constraint on how large an image you can process.
Deinately, I run Into memory problems on SD content all the time, and 3.4GB isn't going to be nearly enough for a decent sized photo.
*.mp4 guy is offline   Reply With Quote
Old 8th January 2008, 00:52   #16  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by *.mp4 guy View Post
Deinately, I run Into memory problems on SD content all the time, and 3.4GB isn't going to be nearly enough for a decent sized photo.
Of course, photos don't need temporal filters, so you'll need much less memory than for processing ordinary video.
Dark Shikari is offline   Reply With Quote
Old 8th January 2008, 03:49   #17  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
I run out of ram without using any temporal filters quite often. Temporal filters actually aren't that bad ram wise, and that includes everything short of mcbob.
*.mp4 guy 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 11:51.


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