Avisynth: Clip is upside down and mirror image!!
Hi all,
A little help required here please :? I read in this thread about placing common routines in a .avsi file in the Avisynth plugins directory, and calling it as a function. With this in mind, I decided to cut the MA script in half and treat the main process as a function, like so; Code:
#### Code:
(Johnny.avs) First problem, :( I tried opening the script in Media Player and VirtualDub. Both gave me an error saying that undot contained the incorrect number of parameters. I amended the "function" to include the clip (c) as a parameter. Second problem, :cry: The movie is now upsidedown and mirror image :x Can somebody else give this a try and let me know what I'm doing wrong. Thnx guys |
Regarding the first problem:
Delete clip c, in Code:
function MAroutine(clip c, int width, int height) { Code:
function MAroutine(int width, int height) { |
I think it's the opposite. A function should always refer to a clip as parameter, start with a filter using this same c, and finish with '"return c".
So try to keep your line "as it" and change the line with undot by "Undot(c)". |
The function (clip c, .....
is important! Just do it like this as I already pointed that out here: http://www.kvcd.net/forum/viewtopic....ight=maroutine Code:
Mpeg2Source("D:\mymovie.d2v") Code:
# |
Of course you two are right. I've just compared the parameters given to the avsi, sorry :oops:
Undot will be the first one claiming the clip name... |
Hi guys,
Have I mentioned Incredible comes up with great routines?? I'm using MAroutine for a while and I thinks it's great to turn some good static scripts into MA scripts. Nice work Incredible!... |
I think the main routine inside doesn't come from me.
I just put that baby in a function, thats all, but thanx anyhow! ;-) |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.