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 22nd November 2012, 19:47   #21  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
Quote:
Originally Posted by Didée View Post
mt_lutspa()
Thanks, Didée - I'm just learning v2...
martin53 is offline   Reply With Quote
Old 22nd November 2012, 19:56   #22  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
Quote:
Originally Posted by davidhorman View Post
I don't see any sensible interpretation for the rgba values except when using x="x" and y="y" - in which case it may as well be a separate filter (maybe in the same DLL, but a separate keyword - rgbaremap). Plus, I already used the variables a and b
Absolutely! you are the author, you decide. Just suggestions and raw ideas.
martin53 is offline   Reply With Quote
Old 16th March 2015, 22:58   #23  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Version 0.3 adds a "static" parameter - set this to true to make non-animating remaps much quicker.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 17th March 2015, 08:48   #24  |  Link
Kisa_AG
Registered User
 
Join Date: Sep 2005
Location: Moscow, Russia
Posts: 65
Quote:
Originally Posted by davidhorman View Post
Version 0.3 adds a "static" parameter - set this to true to make non-animating remaps much quicker.
Wow, it's incredebly much faster!
My script (2.7K video from GP3BE) now opens little bit slower (22 seconds in comparison to 6 seconds with xyremap v.0.2), but it runs MUCH faster - 6.8 fps in comparison to 0.18 fps with xyremap v.0.2.
It's almost 40 times faster! Incredebly!
Thanks, davidhorman! Perfect filter!

By the way, do you have plans to add another interpolations to existing bicubic and nearest-neighbour. Let's say Lanczos or Spline? I think it can make pictures little bit sharper right after conversion, isn't it?
Kisa_AG is offline   Reply With Quote
Old 23rd August 2015, 20:17   #25  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
New version, if anyone cares!

Download beta: xyremap0.4beta.zip v0.4 (beta)

Changes include, but are not limited to, the following:
  • It's faster - at least twice as fast as before*, and gets faster as the formulae get more complicated (but "static" remaps are no quicker)
  • You can now set and recall your own variables:
    • "@A" will store the top value on the stack to variable A
    • "@A^" will store the value and pop it off the stack
    • Variables are case-sensitive, and all the built-in ones are lower case, so sticking to upper case will ensure you never overwrite them.
  • "dup" duplicates the top stack value (use this with * instead of ^ for integer powers, it's much quicker)
  • "swap" swaps the top two stack values
  • "round", "floor" and "ceil" do what you'd expect
  • "neg" - "x neg" returns -x

*it incorporates an RPN-to-x86 compiler, for those (if any) interested in such technical details

It also now has comparison and conditional operators:

"<", ">", "<=", ">=", "==", "!=" each return 1 if true of 0 if false.
"[x] [y] [cond] ?" returns x if cond is non-zero, otherwise it returns y.

Real example: "10 20 x y < ?" - returns 10 if x<y, otherwise 20.

For now there are no boolean operators, but you can hopefully simulate them with mathematical operators.

This is a beta, so use at your own risk.

Any questions?

*tumbleweeds*
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 27th August 2015 at 13:14.
wonkey_monkey is offline   Reply With Quote
Old 23rd August 2015, 22:02   #26  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Your link points to http://horman.net/avisynth/download/xyremap0.3.zip
Wilbert is offline   Reply With Quote
Old 23rd August 2015, 22:12   #27  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Aha, so, spotted that did you?

(fixed)

And just in case:

http://horman.net/avisynth/download/xyremap0.4beta.zip
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 30th August 2015, 18:57   #28  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
I've uploaded yet another new version (0.5). It fixes a minor bug (one of the variables was being set to an incorrect value), adds a couple of new RPN operations (which I've now detailed properly here) and the bicubic interpolation is now (approximately) gamma-aware.

http://horman.net/avisynth/download/xyremap0.5beta.zip
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 30th August 2015, 22:59   #29  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thank you Mr David, Have I ever told you that you are such a wonderful fellow ?
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 31st August 2015, 00:15   #30  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Oh, now, stop it, you'll make me blush. It's just nice to know someone other than me is getting some use out of this.

I still feel the whole RPN thing may be a little opaque, so if anyone does have any "how would I do this" or "can I do this" questions...
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 31st August 2015, 00:37   #31  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
A "gallery" of visual effects, with source code (like your first post), would help get us started.

A infix-to-postfix converter (like Masktools' mt_polish) would help code readability a lot, at least for those of us who do not think in RPN.

A GUI with realtime preview and code generation would be great, but that's too much to ask
raffriff42 is offline   Reply With Quote
Old 31st August 2015, 05:39   #32  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by raffriff42 View Post
A "gallery" of visual effects, with source code (like your first post), would help get us started.
Good idea! Here's 'waves' from the OP:


I'll try to make a vortex GIF tomorrow .
Reel.Deel is offline   Reply With Quote
Old 28th January 2017, 19:10   #33  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Bump for a 64-bit version request.
ajp_anton is offline   Reply With Quote
Old 28th January 2017, 19:36   #34  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Easier said than done, since it's not a simple case of just recompiling with a different target architecture. It's on my list to do soon, though.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 21st July 2019, 17:51   #35  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by Reel.Deel View Post
Good idea! Here's 'waves' from the OP:


I'll try to make a vortex GIF tomorrow .
Fixed Reel.Deel image posts (Reel.Deel, just need change PostImage.org to PostImage.cc)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 21st July 2019, 21:15   #36  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Well they worked four years ago when he first posted 'em.

An x64 version is still on my list, but unfortunately I've messed around with my RPN library so much that xyremap won't currently compile a working version.
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 13th September 2019 at 11:53.
wonkey_monkey is offline   Reply With Quote
Old 21st July 2019, 21:39   #37  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
At least one of your images (2nd post in fusion thread) has broken Imageshack link, dont know if fixable like PostImage links.

Its enticing to use common library, but any change can kill stuff, so I generally dont use, I usually copy paste relevant stuff and make changes
where required. Neither way is ideal.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 9th December 2019, 11:07   #38  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
I believe one could use this filter to simulate a kind of "fisheye scaler" as used in some "smart" TV sets to anamorphically scale 4:3 video up to a 16:9 canvas, where the center remains mostly undistorted, and the borders are pulled to the sides, as if you are inside a cylinder the video gets projected on.

I just need to calculate a convenient formula to resample a 704 or 720 pixels wide centered line to a length of 1024 pixels (I guess a "viewing angle" parameter could control the amount of distortion here). And then transform it into UPN.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 9th December 2019, 12:42   #39  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by LigH View Post
I believe one could use this filter to simulate a kind of "fisheye scaler" as used in some "smart" TV sets to anamorphically scale 4:3 video up to a 16:9 canvas, where the center remains mostly undistorted, and the borders are pulled to the sides, as if you are inside a cylinder the video gets projected on.
Unless you need something more complicated, have you come across WarpedResize?
https://forum.videohelp.com/threads/...th#post2314433
hello_hello is offline   Reply With Quote
Old 9th December 2019, 13:04   #40  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Looks even better.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH 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 23:03.


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