Log in

View Full Version : AvsP v2.0.2 (10/27/07)


Pages : 1 [2] 3 4 5

AlanHK
11th September 2007, 03:16
A couple of minor niggles:

"F2" is the key to jump to the next bookmark. But if you're not exactly on a bookmark frame, it always jumps back to the previous bookmark. So to go to the next, I have to press F2 twice. I don't see any use for this, shift-F2 (previous bookmark) will go back if you need that.

Auto-sliders: For instance, "Tweak". I see under options/Avisynth function definitions that there are six sliders defined. So I imagined that by typing
Tweak
and ctrl-space (autocomplete) I would get these six sliders. But nothing happens. It seems I have to type dummies for all the parameters
Tweak(1,1,0,1,True,False)
and then the complete set of autosliders will appear.

Is there a simpler way to do this? Also, in previous versions I could write my own default sliders which would be appear when I did autocomplete. Is this still possible?

And while doing the above, I noticed that when typing a function and entering a boolean, and if I follow the tooltip and use "True", on entering the "T" a window pops up offering a list of functions like "TCPDeliver_TCPServer" to autocomplete (but not "True or "False", the only correct words at this point). I can ignore that and keep typing "True", but it seems a bit silly and distracting. If it can't be made context-sensitive, as it's the the capital which stimulates the popup, perhaps tooltips should use "true", "false" to make this less likely to happen.

qwerpoi
11th September 2007, 16:02
Still working on the bugfix, I've fixed several bugs but I want to get a chance to improve the autoslider mechanism a bit before releasing anything.

So... I've opened avsp , drag&dropped .d2v file into it and it showed 'could not open one of the input files'. Save and re-open of the script solved the problem.
I could not generate this bug, could you be more specific as to how it occured? On my computer, opening AvsP and dropping a .d2v or even dropping several files at once seems to work without any problems.

That reminds me, it seems to be failing if C-interface plugins are found during the initial parse. When it comes across Yadif, I get:
Error parsing GetSystemEnv plugin parameters: unknown character Y
Error parsing GetSystemEnv plugin parameters: unknown character a
Error parsing GetSystemEnv plugin parameters: unknown character d
Error parsing GetWorkingDir plugin parameters: unknown character
Error parsing GetFileInfo plugin parameters: unknown character

Doesn't seem care about FFMpegSource though, so maybe it's not C-interface at all.
After looking into this further, I'm a bit confused. I thought Avisynth doesn't auto-load C plugins? At least it doesn't on my computer using avisynth 2.5.7. So I actually have no idea how you got this error with Yadif to occur - could you give me any details you think could help (script, avsynth version, etc)?

Also quick question. Is there anyway to make AvsP act like it used to where it didn't keep track of what frame each tab is on by itself? It's a pain for when comparing two different resolution videos but the exact same video in frame count. (the other is just resized)
I'll try and add it as an option in the next release.

Thanks qwerpoi for your excellent work on this valuable update
Thanks a bunch for the new translation, I've updated the first post, I'll try and update the website as soon as I get a chance.

I can do that, but in one script I may want to twiddle a particular function, in another not. Or after I've worked out a setting, I want to hide it and concentrate on another.
I imagine eventually I will add a feature like this. Right now it would not be effective because currently every time you refresh the video, all the sliders are rebuilt to account for any changes in the script. I need to do some redesign such that certain slider information is stored on a tab level.

On all of my workstations using version 2.0, the Slider-Togle panel on the right does not display, your see part of the desktop instead. This is a very long script. clicking to a short script with panel and back again, fixes the problem. This was not a problem with the older version.
I will take a look into the issue, thanks for letting me know.

"F2" is the key to jump to the next bookmark. But if you're not exactly on a bookmark frame, it always jumps back to the previous bookmark. So to go to the next, I have to press F2 twice. I don't see any use for this, shift-F2 (previous bookmark) will go back if you need that.
Actually, hitting F2 when you're not on a bookmark goes to the nearest bookmark, not the previous bookmark. I think it was designed this way before I had the previous bookmark command. I'll change them to always jump in the correct direction as you describe.

Auto-sliders: For instance, "Tweak". I see under options/Avisynth function definitions that there are six sliders defined. So I imagined that by typing
Tweak
and ctrl-space (autocomplete) I would get these six sliders. But nothing happens. It seems I have to type dummies for all the parameters
Tweak(1,1,0,1,True,False)
and then the complete set of autosliders will appear.

Is there a simpler way to do this? Also, in previous versions I could write my own default sliders which would be appear when I did autocomplete. Is this still possible?
When the autocomplete list is visible, select the Tweak filter from the list (by either using the arrow keys or keep typing) and hit enter. AvsP will automatically fill the default values into the script. You can customize this preset for each filter in the "Options -> Avisynth function definition..." dialog.

And while doing the above, I noticed that when typing a function and entering a boolean, and if I follow the tooltip and use "True", on entering the "T" a window pops up offering a list of functions like "TCPDeliver_TCPServer" to autocomplete (but not "True or "False", the only correct words at this point). I can ignore that and keep typing "True", but it seems a bit silly and distracting. If it can't be made context-sensitive, as it's the the capital which stimulates the popup, perhaps tooltips should use "true", "false" to make this less likely to happen.
You're right, the database should have lowercase "true" and "false" to avoid this issue. Incidentally, if you're comfortable with manually activating autocompletion with control+space, you can deactivate the automatic autocompletion on capital letters in the options dialog.

Alain2
12th September 2007, 13:33
French translation updated

Didn't try a lot the soft yet, but wouhaou, that's a big update and it seems all working quite well :) The bitrate calculator seems ok as well, wil compare the calcs with my own usual spreadsheet calcs, but quick checks are good :)

Well done qwerpoi!

krisq
12th September 2007, 15:47
I could not generate this bug, could you be more specific as to how it occured? On my computer, opening AvsP and dropping a .d2v or even dropping several files at once seems to work without any problems.


After I saw your post I started to pinpoint the problem myself and guess what... It happens if .d2v is generated with relative path instead of full path. Problem might be on DGIndex side then...

Serbianboss
12th September 2007, 18:47
I noticed that when you write in avsp: limitedsharpenfaster(smode=4) that dialog box just show mode 1 to 3 and dosnt show mode 4.

Also when you type SeeSaw filter it dosnt show on right bar(autoslider), i mean it dosnt see like filter(sharpener) but its work. This is just visual problem.

Alain2
15th September 2007, 23:23
When trying to get help on a filter (Shift F1 by default), error message appears :
Traceback (most recent call last):
File "AvsP.pyo", line 5501, in OnMenuEditFilterHelp
AttributeError: 'AvsStyledTextCtrl' object has no attribute 'keywords'

[edit]- Actually help comes ok for internal functions, but not for external (didn't test other categories yet)

- With separate script / video windows, when moving on the cursor on the script window, the video window takes the focus (not convenient I think)
- Request: Can you make the video window (when separated from script window) display the full path to the script in its title as per the script window ? (and maybe shorten the "AvsP preview" tag)
- Request: Can you re-introduce a shortcut to filter properties edition (was Ctrl+Shift+D before) ?
- Resize calculator : Is it possible (now that it's a plugin instead of being part of the core) to have the real clip dimensions as inputs (not the zoomed ones) ?
- Is it possible to link the bitrate calculator with the resize tool as well ? Personnally I choose the resize based on the bitrate available.. To give you an idea of what I mean, you can have a look at my spreadsheet (http://homepages.nildram.co.uk/~cestial/Crop&Resize&BitrateITU.ods) (in OOo Calc format), which is very simple and only for normal pal/ntsc dvd -> 1:1 encodes (but that's all I need ^^)

[edit2]- For some reason at some point (I was editing adding + editing a filter property), an error msg appeared (below), and not sure if it's related orf not but just after my keyboard was not the uk-standard one anymore. Closing / re-opening avsp and the keyboard mapping was good again. But my added filters in the filters catalog disappeared :(
[Sun Sep 16 13:24:54 2007]
Traceback (most recent call last):
File "AvsP.pyo", line 2108, in OnArgsChange
File "AvsP.pyo", line 973, in CreateDefaultPreset
File "AvsP.pyo", line 9770, in ParseCalltipArgInfo
TypeError: int() argument must be a string or a number, not 'NoneType'

- For auto-complete of filter name in the script window (Ctrl+space), if only 1 match is found, can you change the behaviour to enter the full customised (or autogenerated) parameters list ? At the moment it only finishes the filter name

foxyshadis
16th September 2007, 05:53
After looking into this further, I'm a bit confused. I thought Avisynth doesn't auto-load C plugins? At least it doesn't on my computer using avisynth 2.5.7. So I actually have no idea how you got this error with Yadif to occur - could you give me any details you think could help (script, avsynth version, etc)?

It looks like it's actually an error generated by GetSystemEnv, sorry about that. I think the plugin's a little buggy and I'm going to try recompiling it.

qwerpoi
16th September 2007, 23:57
New version 2.0.1, download from the AvsP download page (http://avisynth.org/qwerpoi/Download.html) or from the mirror (http://www.savefile.com/files/1061266). This is mostly a bugfix version, here's the changelog:
* improved automatic user slider construction (suggested by AlanHK, bidmead)

* added line number traceback for macro errors (suggestedy by foxyshadis)

* disabled error line highlight when line-by-line update enabled (suggested by Zarxrax)

* added warnings to crop editor for invalid crop values (suggested by AlanHK)

* brought back shortcuts for function definitions in script menu (suggested by Alain2)

* added close all tabs function (suggested by Serbianboss)

* added option to disable scroll wheel through tabs (suggested by foxyshadis)

* added option to disable frames for each tab (suggested by Harukalover)

* changed autocomplete to show single item lists (suggested by Alain2)

* changed title for separate video window to full script name (suggeseted by Alain2)

+ fixed minor error when configuring shortcuts (thanks RedDwarf1, krisq)

+ fixed next bookmark function to always search forward (thanks AlanHK)

+ changed "True" and "False" in database to lowercase (thanks AlanHK)

+ fixed typo in options dialog (thanks AlanHK)

+ fixed bug with manual activation of filter help (thanks Alain2)

+ fixed bug with macro functions GetWidth/GetHeight returning zoomed values (thanks Alain2)

+ fixed display issue with slider window and zoom window fit (thanks rfmmars)
Like I said, mostly these are fixes for minor bugs that people have been reporting. The automatic user sliders are improved a bit, filters with repeating arguments should work better now, although there's still some room for improvement. I still need to do some work polishing up window layout issues with fit to window zooming and the separate video window. For translators, there's only about a dozen new messages, so this version shouldn't cause any headaches :). Anyway, as always, let me know if you come across any new problems or feature requests.

qwerpoi
17th September 2007, 00:05
Also when you type SeeSaw filter it dosnt show on right bar(autoslider), i mean it dosnt see like filter(sharpener) but its work. This is just visual problem.
Currently SeeSaw isn't in the database (which I created manually), you can check out what's in the database from "Options -> Avisynth function definitions...". I'll try and add more functions as time goes by, but anyone who wants to lend a hand is certainly welcome :)

- With separate script / video windows, when moving on the cursor on the script window, the video window takes the focus (not convenient I think)

- Is it possible to link the bitrate calculator with the resize tool as well ? Personnally I choose the resize based on the bitrate available.. To give you an idea of what I mean, you can have a look at my spreadsheet (http://homepages.nildram.co.uk/~cestial/Crop&Resize&BitrateITU.ods) (in OOo Calc format), which is very simple and only for normal pal/ntsc dvd -> 1:1 encodes (but that's all I need ^^)
First, thanks for the translation update and all the bug reports, it's a big help. I'm not sure what you're referring to with the video window taking focus, could you give me a specific example when it occurs? As for combining the resize and bitrate calculators, I'll take a look into it, it should be doable (although I make no time guarantees :)).

lolent
17th September 2007, 00:21
I can't wait to try it ^^
thanks again qwerpoi ;)

AlanHK
17th September 2007, 13:03
2.0.1 -- cool, thanks.

And onto more niggles:

If I have hidden display of sliders, then press F5 to refresh the display (because when I change freezeframe parameters, it does not display correctly unless I do) the sliders come back.
When I hide sliders, I want them to stay hidden until I unhide them.

PS
I found a workaround: I can make the slider window zero width.... would still prefer it stay hidden when I ask.

Henrikx
17th September 2007, 16:25
@qwerpoi

Update German language file AvsP 2.0.1
http://technik.movie2digital.de/thread.php?postid=438200#post438200

My last AvsP translation!
Somebody may carry on...

THX

rfmmars
17th September 2007, 16:56
The "Slider Panel" display problem is fixed but now it crashes each time I try to use "Insert File Name"

#AVISource("e:\1.vdr.avi")
ImageSource("Alaska.jpg")

2.0 worked fine

Richard.

Fizick
17th September 2007, 19:39
qwerpoi,
can you consider to decrease AvSp download size by removing standard components (putting them to separate archive)?

python25.dll, lib/wxwsm26uh.dll, etc

It is not important for rare updated programs, but your child is not rarely updated :)

zemog
18th September 2007, 11:35
@qwerpoi

Here is the Spanish translation for v2.0.1

Taking a look at the result I show in the dialog boxes: “Edit extension-based templates”, “Edit shortcuts” and “Program settings” that some text still in English although Spanish words are in the translation.py file (examples: "Program Settings" and "* Requires program restart for full effect").This doesn't hapends in the earlier version.

Veiga
22nd September 2007, 04:34
The update translation for v2.0.1.
Thanks

miamicanes
25th September 2007, 21:45
I've been using AvsP for a few days and love it. However, I think I've found a bug:

It appears that AvsP tries to parse lines that have been commented-out, and crashes if the commented-out line is invalid. In particular, I've crashed it badly by doing something like...

#Trim(14923,

... then cursoring away from the line for a moment, or otherwise doing something that induces AvsP to reparse the script and re-render the current video preview. It seems as though the big thing that kills it is having a commented-out line with otherwise-valid command and unclosed parentheses (possibly with incomplete or blatantly invalid values).

The same endless-loop behavior obviously occurs if the line ISN'T commented out while the rendering window is open & something triggers a refresh. If it's not too hard, a nice future enhancement might be adding a way to forcibly kill the preview, close the window, and return to editing mode. If you can figure out where the infinite loop is occurring, maybe you could add a boolean value somewhere that gets set to 'true' whenever the preview window gets shown, and gets checked periodically while parsing/rendering the preview so that if it's found to be false, all parsing & preview-rendering ceases, the preview window gets closed, and the program returns to text-editor mode. The actual value change could be triggered by a keypress (left-ctrl + backspace comes to mind as a good choice... think back ~20 years to RUNSTOP + Restore) ;-)

AlanHK
26th September 2007, 08:08
I'm getting a bug:

I can create new bookmarks, and clear all of them, but not toggle with ^B to delete one individually.

Whenever I try to delete an existing bookmark, using ^B, it fails with the error message:

Traceback (most recent call last):
File "AvsP.pyo", line 5560, in OnMenuVideoBookmark
File "AvsP.pyo", line 8248, in AddFrameBookmark
TypeError: DeleteFrameBookmark() got an unexpected keyword argument 'refresh'


Separately:
I'd like to have UP/DOWN jump 2 seconds, instead of one.
I can clear the "Forward one second" key (Down) and use it for "Forward x units". But the original setting was only active when video has focus, now it always advances the video, even when I'm editing the text window, so I can't move line to line with UP/DOWN. Ideally, we need a way to toggle this focus restriction.
Some checkboxes in the shortcut key selection : Always active / Video focus / Text focus.

slo.sleuth
26th September 2007, 19:08
Can't get v.2.01 to run. Log reports the following error:

Traceback (most recent call last):
File "run.py", line 1, in <module>
import os, sys
ImportError: No module named os

I'm not familiar with python, but I've installed it so I can make any change necessary to get up an running. Any suggestions?

foxyshadis
26th September 2007, 19:20
You need to install wxPython as well, if you run it from source. You can also set your system up to use the wx libraries included in avsp, but it's probably simpler just to install it all.

slo.sleuth
26th September 2007, 20:13
You need to install wxPython as well, if you run it from source. You can also set your system up to use the wx libraries included in avsp, but it's probably simpler just to install it all.
Thanks for the quick reply, foxyshadis.

Maybe I'm still not fulling understanding, but I downloaded wxPython 2.8 (python 2.5) and installed it from the unicode binary. I made it the new install the default wxPython library, but I'm still receiving the same AvsP error after reboot.

check
27th September 2007, 04:11
slo, are you trying to run the executable, or directly run the python source? Just open the .exe

slo.sleuth
27th September 2007, 05:01
slo, are you trying to run the executable, or directly run the python source? Just open the .exe

I got the error (see my first post) when I ran the .exe. If I run the compiled python file Avsp.pyc (now that I have python installed) I can get AvsP to start. But the .exe still fails with the same error.

slo.sleuth
27th September 2007, 16:34
Can't get v.2.01 to run. Log reports the following error:

Traceback (most recent call last):
File "run.py", line 1, in <module>
import os, sys
ImportError: No module named os


Problem resolved. I was using a new archive program called jZip. It is based on 7-zip, so I was checking it out. By default, it shows archives in a flat view (all files shown absent folder structure), but unbeknown to me, it extracts the files flat while in that view too and without warning! :eek:

So, probably needless to say, I didn't provide AvsP the expect file structure, so it couldn't find the necessary modules. My bad. Serves me right to switch from something that I know works (7-zip) for something I don't know much about (jZip). This isn't a slam on jZip, just a lesson learned.
:stupid: (arrow points to me!)

Thanks to foxyshadis and check for the offered help.

Underground78
27th September 2007, 17:57
Hello,

I have a little suggestion : give the possibility for the user to select and open several avs files at the same time with "File" --> "Open" ...

Thanks

PS : I know my English is not very good and I hope you will forgive me for that ...

krisq
27th September 2007, 22:22
Just a thought :)
How about letting to insert relative path in 'extension templates'? With '****' for example.

foxyshadis
28th September 2007, 07:10
It'd probably be simpler to just have a macro to replace the paths other computers use with its own. I'd think it was a good idea, but you're almost guaranteed to run into current working folder issues. Usually it's the script folder, or the folder of the program host, which already mucks things up enough, but sometimes it'll get changed to some crazy random folder and nothing will load. More than a few threads have been tracked down to that.

krisq
28th September 2007, 10:07
English is not my native so maybe I explain what I had in mind.

Instead of full path (***)

avisource ("c:\folder1\folder2\movie.avi")
I would like to have possibility to insert just a filename (****, or something)

avisource ("movie.avi")

I use drag'n'drop a lot and move my project files very often so this seems more natural for me.

foxyshadis
28th September 2007, 16:19
Ah, I found a way to reproduce the hanging:
copy this line in:
p2=ImageSource("D:\grafix\work\22269025xa2.png",end=0).converttoyuy2(matrix="PC.601").ConvertToRGB24(matrix="pc.709")
start typing the bold part:
p2=ImageSource("D:\grafix\work\22269025xa2.png",end=0).colormatrix(mode="converttoyuy2(matrix="PC.601").ConvertToRGB24(matrix="pc.709")
it should hang as soon as you type the open quote. It might have to do with my settings, with frequent calltips and wrap text on.

I can try hooking it into the debugger, though I'm still not that familiar with python debugging.

qwerpoi
30th September 2007, 07:27
Sorry for the lack of replies, I've been unbelievably busy recently. Hopefully my schedule will even out so I can get some decent development time in...

If I have hidden display of sliders, then press F5 to refresh the display (because when I change freezeframe parameters, it does not display correctly unless I do) the sliders come back.
When I hide sliders, I want them to stay hidden until I unhide them.
You're right, this shouldn't happen, I'll try and get it fixed.

@qwerpoi

Update German language file AvsP 2.0.1
http://technik.movie2digital.de/thread.php?postid=438200#post438200

My last AvsP translation!
Somebody may carry on...

THX
Your last translation, seriously? Well, if that's true, hopefully there will be another person to take over the German translation - in any case, your timely updates will certainly be missed!

The "Slider Panel" display problem is fixed but now it crashes each time I try to use "Insert File Name"

#AVISource("e:\1.vdr.avi")
ImageSource("Alaska.jpg")

2.0 worked fine

Richard.
Hmm, seems strange, I'll take a look. Thanks for letting me know.

qwerpoi,
can you consider to decrease AvSp download size by removing standard components (putting them to separate archive)?

python25.dll, lib/wxwsm26uh.dll, etc

It is not important for rare updated programs, but your child is not rarely updated :)
Interestingly enough, most of the time all I really need to update is the library.zip file located in the \lib directory. I'll consider doing future updates in this sort of fashion, I'm just worried that it will be too confusing for everybody.

@qwerpoi

Here is the Spanish translation for v2.0.1

Taking a look at the result I show in the dialog boxes: “Edit extension-based templates”, “Edit shortcuts” and “Program settings” that some text still in English although Spanish words are in the translation.py file (examples: "Program Settings" and "* Requires program restart for full effect").This doesn't hapends in the earlier version.
Thanks for the translation update, I'll check out those translation issues (I think I know the cause).

The update translation for v2.0.1.
Thanks
Thanks for the translation update!

It appears that AvsP tries to parse lines that have been commented-out, and crashes if the commented-out line is invalid. In particular, I've crashed it badly by doing something like...

#Trim(14923,

... then cursoring away from the line for a moment, or otherwise doing something that induces AvsP to reparse the script and re-render the current video preview. It seems as though the big thing that kills it is having a commented-out line with otherwise-valid command and unclosed parentheses (possibly with incomplete or blatantly invalid values).

The same endless-loop behavior obviously occurs if the line ISN'T commented out while the rendering window is open & something triggers a refresh. If it's not too hard, a nice future enhancement might be adding a way to forcibly kill the preview, close the window, and return to editing mode. If you can figure out where the infinite loop is occurring, maybe you could add a boolean value somewhere that gets set to 'true' whenever the preview window gets shown, and gets checked periodically while parsing/rendering the preview so that if it's found to be false, all parsing & preview-rendering ceases, the preview window gets closed, and the program returns to text-editor mode. The actual value change could be triggered by a keypress (left-ctrl + backspace comes to mind as a good choice... think back ~20 years to RUNSTOP + Restore) ;-)
Hmm, thanks for the detailed report, I'll get on it asap.

I can create new bookmarks, and clear all of them, but not toggle with ^B to delete one individually.

Hmm, I'll try and get that fixed straightaway.


Separately:
I'd like to have UP/DOWN jump 2 seconds, instead of one.
I can clear the "Forward one second" key (Down) and use it for "Forward x units". But the original setting was only active when video has focus, now it always advances the video, even when I'm editing the text window, so I can't move line to line with UP/DOWN. Ideally, we need a way to toggle this focus restriction.
Some checkboxes in the shortcut key selection : Always active / Video focus / Text focus.
Those are some good suggestions, I'll see what I can do.

Problem resolved. I was using a new archive program called jZip. It is based on 7-zip, so I was checking it out. By default, it shows archives in a flat view (all files shown absent folder structure), but unbeknown to me, it extracts the files flat while in that view too and without warning! :eek:
Whew, thanks for patiently working out the issue! I'll definitely add this bit of info to my faq (which currently doesn't exist, I'm really behind...:()

Hello,

I have a little suggestion : give the possibility for the user to select and open several avs files at the same time with "File" --> "Open" ...

Thanks

PS : I know my English is not very good and I hope you will forgive me for that ...
Okay, sounds like a good idea, I'll see what I can do.

Just a thought :)
How about letting to insert relative path in 'extension templates'? With '****' for example.
Sounds reasonable, I'll see what I can do.

Ah, I found a way to reproduce the hanging:
copy this line in:
p2=ImageSource("D:\grafix\work\22269025xa2.png",end=0).converttoyuy2(matrix="PC.601").ConvertToRGB24(matrix="pc.709")
start typing the bold part:
p2=ImageSource("D:\grafix\work\22269025xa2.png",end=0).colormatrix(mode="converttoyuy2(matrix="PC.601").ConvertToRGB24(matrix="pc.709")
it should hang as soon as you type the open quote. It might have to do with my settings, with frequent calltips and wrap text on.

I can try hooking it into the debugger, though I'm still not that familiar with python debugging.
Thanks for the detailed report with settings, I'll try and see what's going on.

FlimsyFeet
3rd October 2007, 12:38
This is a fantastic program, I find it very useful. Thanks to qwerpoi!

There are a couple of things I would like to ask.

Firstly, when I save a script from AvsP then open it with Windows Notepad, I don't get any linebreaks, just little squares where linebreaks should be. Is this a bug with Notepad? (I think I've had it happen before with other text files)

Second, when you have multiple tabs open, and each video has the same number of frames, navigating the video preview in one tab also moves to the same frame in the other tab. This is a great feature, but is there any way to have the same behaviour when videos are different lengths? (I think older versions may have done it like this?)

KenJ
4th October 2007, 04:29
I can't get Autocompletion to work. According to the Documentation (which appears to still show the previous release):
If a preset exists for a filter, then whenever the autocomplete mechanism is activated for that filter, instead of entering the filtername and an open parentheses into the text, the preset text is entered instead.
This does not work for me. What am I doing wrong?

shortkud
7th October 2007, 08:25
This is a great program thank you so much. I can finally get rid of using GK to figure out my crop :).

abbienormal
7th October 2007, 19:06
Can't tell you how good this program is. I'd Never heard of AVSP until a couple of months ago but now I couldn't live without it.
Can I make one or two suggestions:

1) When focus is on video preview mouse wheel advances back and forward through time line by user specified amount(1 frame/1 sec etc).
2) Extra button next to the video preview toggle button to refresh the preview.
3) Option to place the preview window side by side with the text editor(for widescreen monitor users). I know I can do this by having the preview floating separately but i like to keep it all in one window.

Hope you don't feel too inundated with users suggesting features.
It's what happens when you make such a useful program.:)

rfmmars
8th October 2007, 01:52
A feature that I would like to have is when I click on a slider, I can use the arrow keys to make a fine adjustments.

Richard

KenJ
8th October 2007, 01:58
Well, I had to answer my own question!

The documentation for Autocompletion is somewhat misleading. By pressing the Enter or Tab key, the filter name is automatically entered into the text (along with an open parentheses - you can change this behavior in the "Options -> Program settings..." dialog, in the "Text 1" tab).
I swear, every time until today, when I went use Autocompletion I could use Enter or Tab and I got the left-paren ONLY. I didn't change the options - honest!

Today, using Tab gets the left-paren just as before but using Enter gets the preset text I was looking for. Finally! :)

qwerpoi
8th October 2007, 05:55
This is a fantastic program, I find it very useful. Thanks to qwerpoi!

There are a couple of things I would like to ask.

Firstly, when I save a script from AvsP then open it with Windows Notepad, I don't get any linebreaks, just little squares where linebreaks should be. Is this a bug with Notepad? (I think I've had it happen before with other text files)

Second, when you have multiple tabs open, and each video has the same number of frames, navigating the video preview in one tab also moves to the same frame in the other tab. This is a great feature, but is there any way to have the same behaviour when videos are different lengths? (I think older versions may have done it like this?)
Glad you like the program! I'll check out the notepad issue, for the second issue with the frames, go to the "Options -> Program settings..." dialog in the "Video 2" tab, and uncheck the box that says "Enable frames stored per tab".

This is a great program thank you so much. I can finally get rid of using GK to figure out my crop :).
I know what you mean, it always bothered me a little to have gk installed just for the crop and resizing, since I didn't need it for anything else. Let me know if you come across any accuracy issues or other problems.

1) When focus is on video preview mouse wheel advances back and forward through time line by user specified amount(1 frame/1 sec etc).
2) Extra button next to the video preview toggle button to refresh the preview.
3) Option to place the preview window side by side with the text editor(for widescreen monitor users). I know I can do this by having the preview floating separately but i like to keep it all in one window.
Those are some good suggestions, I'll try to get the 1st one in, I'll think about the second one, and although I'd like to do the third, that would be a huge amount of work, so don't expect that anytime soon :).

A feature that I would like to have is when I click on a slider, I can use the arrow keys to make a fine adjustments.

Richard
You can do this if you click the mouse and don't release (although I admit, it's a bit of hand juggling).

The documentation for Autocompletion is somewhat misleading.
I swear, every time until today, when I went use Autocompletion I could use Enter or Tab and I got the left-paren ONLY. I didn't change the options - honest!

Today, using Tab gets the left-paren just as before but using Enter gets the preset text I was looking for. Finally! :)
I'm not sure what your original issue was, but thanks for being patient! Be sure to report back if the problem occurs again.

Aaron76
10th October 2007, 04:08
First of all, great program. It has made writing scripts much easier.


Sometimes when I insert parenthesis after a function or add a function within a function using parenthesis, the program completely freezes and I need to close it and reopen my script again. I had to comment out the lines to work on them and then uncomment them when I was done so the program wouldn't lock.

IntroVideo = ImageSource(IntroScreenshot, end=IntroClipFrames - 1, fps=Framerate(Video)).ConvertToYV12().Spline64Resize(VideoWidthPixels, VideoHeightPixels)

danielkun
19th October 2007, 21:14
Thanks a lot for this tool qwerpoi, I find it very useful.

I was playing a bit with it and I came with these function definitions, feel free to correct those.

MvBob :
(clip Input,
int "BlkSize"=8,
int "Pel"=2,
int "CorrectTh"=8,
int "Threshold"=6,
int "Type"=3 (0 to 4),
int "Length"=1 (0 to 3)
)

MCBob :
(
clip clp,
float "EdiPre"=1.0 (0.0 to 1.0),
int "EdiPost"=1 (0 to 2),
int "blocksize"=16,
int "MEdepth"=2,
float "sharpness",
int "mtnmode"=0 (0 to 2),
float "mtnth1"=0.2,
float "mtnth2"=0.4,
float "errth1"=0.4,
float "errth2"=0.6,
float "MEspatNR"=0.0,
float "MEtempNR"=0.0
)

I found it particularly useful that when I change a parameter, the preview frame updates, that's golden! Try changing mcbob's edipost between 1 and 2, and you'll see how the reduced aliasing works ;)

A suggestion:
When I open an avs file that has a plugin function already used, and a few (but not all) parameters are specified, then only those already writen parameter slider appear. If I want all the sliders and textboxes to appear, I have to rewrite the function (using autocomplete ctrl+space) and then all the parameters with the default values appear. It's a small annoyance, but it'd be great if you can see the textboxes and sliders even for parameters that aren't explicitly written.

Also if the function is used without any parameters (all defaults) then the function doesnt appear at all at the controls pane.

Thanks again! :)

qwerpoi
28th October 2007, 03:04
New version v2.0.2, download from the AvsP download page (http://avisynth.org/qwerpoi/Download.html) or the mirror (http://www.savefile.com/files/1153115). The changelog's not very long but this version's long overdue, since it fixes a couple of major bugs from 2.0.1. Here's the changelog:
* added numerous entries to function database (contributions by Harukalover, danielkun)

* added ability to open multiple scripts in Open dialog (suggested by Underground78)

* new syntax in extension templates for relative paths (suggested by krisq)

* changed database editing for plugins to reduce redundancy with short and long names

+ fixed program hanging on text highlight (thanks miamicanes, Harukalover, foxyshadis)

+ fixed issue with translation messages (thanks zemog)

+ fixed crash when deleting existing bookmark (thanks AlanHK)

+ manually hidden sliders now stay hidden on video refresh (thanks AlanHK)

+ fixed minor bug with autocompletion and underscore character
The most important change here is the bugfix for the hanging issue, which made v2.0.1 practically impossible to use. Thanks to everyone who gave detailed reports to help me fix it. Other important bugfixes - deleting video frame bookmarks no longer crash, translation messages are working properly now.

The other important change here is the significant update to the filter database, thanks to those who contributed. Particularly Harukalover, who submitted a huge number of plugin definitions - I would say now that the majority of currently popular plugins are covered in this version.

One important note for people who use the "Options -> Avisynth function definition" dialog to customize the database - I changed the database for 3rd party plugins to only use the long version of function names, ie dllname_function. The short function names are automatically generated for each script, which means you need only define customizations for the long function name. The downside is that in this version you may lose some customizations. Although I put in some code to automatically detect and update short name customizations into the long name, it would be prudent to export your customizations before updating to v2.0.2 (use the "Export customizations" button at the bottom of the "Avisynth function definition" dialog), that way you can make sure you didn't lose anything. Feel free to report back if there are any issues.

Anyway, as you may have noticed, I have had a lot less time to work on AvsP recently. I am aware that there are quite a few feature requests I haven't gotten around to yet. If you think that there is some really important feature that you've already requested that I continually ignore :devil:, feel free to let me know again, and I'll try and move it up my priority list. Any new suggestions are of course welcome as well.


A suggestion:
When I open an avs file that has a plugin function already used, and a few (but not all) parameters are specified, then only those already writen parameter slider appear. If I want all the sliders and textboxes to appear, I have to rewrite the function (using autocomplete ctrl+space) and then all the parameters with the default values appear. It's a small annoyance, but it'd be great if you can see the textboxes and sliders even for parameters that aren't explicitly written.

Also if the function is used without any parameters (all defaults) then the function doesnt appear at all at the controls pane.

Thanks again! :)
You're right, it's an issue that's come across my mind. Unfortunately, it would be pretty difficult to program - if the arguments aren't specified in the script, then the program would have to guess where to insert the argument values, which could lead to conflicts, since Avisynth some arguments are order dependent while others are not. If I think of a good way to do this, I'll consider it, but for now, I think the way it currently works is a good compromise, since it's relatively easy to understand and control.

Harukalover
28th October 2007, 06:08
Minor issue in the last few releases. AvsP's Seekbar under the Video doesn't count correctly. If you have a video with 200 frames. The Seekbar counts 0 to 200. When it really is only 0 to 199. So you can never go to that last frame (frame number 200) because it doesn't exist.

Anyway, thanks for the latest release. And I'll look into writing up more function definitions soon, if you want more that is.

/me thinks a bunch of script functions should be added (currently it's a rather dry list)

krisq
28th October 2007, 15:54
I can't open 'Avisynth function definition' dialog at all.
Avsp throws me this error:
Traceback (most recent call last):
File "AvsP.pyo", line 5950, in OnMenuOptionsFilters
File "AvsP.pyo", line 8596, in ShowFunctionDefinitionDialog
File "AvsP.pyo", line 1950, in __init__
File "AvsP.pyo", line 2002, in CreateWindowElements
KeyError: u'textsub'

qwerpoi
28th October 2007, 17:39
Minor issue in the last few releases. AvsP's Seekbar under the Video doesn't count correctly. If you have a video with 200 frames. The Seekbar counts 0 to 200. When it really is only 0 to 199. So you can never go to that last frame (frame number 200) because it doesn't exist.
The notation is a bit sloppy on the status bar, it says something like Frame 0/200 but it actually only goes from 0 to 199 as it's supposed to (you can verify this by dragging the slider to the last position).

Actually, it's kind of a strange issue, since each frame is discrete but actually represents a continuous interval of time, so frame 0 actually represents something like [0, 1), frame 1 represents [1, 2), and in this case the last frame represents [199, 200). VirtualDub handles this by allowing the slider to go all the way to frame 200, but showing no video at frame 200 itself. There are pluses and minuses to displaying things this way, AvsP isn't perfect either. For now I'll leave things be but if you or any other video guru wishes to argue for a more precise representation, I'll be willing to listen.


Anyway, thanks for the latest release. And I'll look into writing up more function definitions soon, if you want more that is.

/me thinks a bunch of script functions should be added (currently it's a rather dry list)
I'd certainly appreciate any additional function definitions, and I agree, the script functions are really thin. I'm not very familiar with the recent popular script functions, if I have time I'll try and look into it, but any contributions on that end would be most helpful as well.

I can't open 'Avisynth function definition' dialog at all.
Avsp throws me this error:
Traceback (most recent call last):
File "AvsP.pyo", line 5950, in OnMenuOptionsFilters
File "AvsP.pyo", line 8596, in ShowFunctionDefinitionDialog
File "AvsP.pyo", line 1950, in __init__
File "AvsP.pyo", line 2002, in CreateWindowElements
KeyError: u'textsub'

I tried briefly to recreate this error, but I didn't get it. First, try closing AvsP and opening the function dialog again. If the error still occurs, could you upload or send me your options.dat so I can try and recreate it on my machine?

krisq
28th October 2007, 18:33
I tried briefly to recreate this error, but I didn't get it. First, try closing AvsP and opening the function dialog again. If the error still occurs, could you upload or send me your options.dat so I can try and recreate it on my machine?

Restart didn't help.
I've uploaded my 'options.dat' for inspection.
http://sharedzilla.com/en/get?id=102644

Harukalover
29th October 2007, 00:50
The notation is a bit sloppy on the status bar, it says something like Frame 0/200 but it actually only goes from 0 to 199 as it's supposed to (you can verify this by dragging the slider to the last position).

Actually, it's kind of a strange issue, since each frame is discrete but actually represents a continuous interval of time, so frame 0 actually represents something like [0, 1), frame 1 represents [1, 2), and in this case the last frame represents [199, 200). VirtualDub handles this by allowing the slider to go all the way to frame 200, but showing no video at frame 200 itself. There are pluses and minuses to displaying things this way, AvsP isn't perfect either. For now I'll leave things be but if you or any other video guru wishes to argue for a more precise representation, I'll be willing to listen.
Ah okay. Now that I understand the reasoning behind it, it makes sense to handle it that way.

Anyway, there seems to be some issues when working with large avs scripts. They consist of delays in text typing and failing to be able to preview the video. Either I get an error or it just hangs and never opens the video preview.

Here's the error I see: Error (http://i78.photobucket.com/albums/j81/SuzumiyaHarukalover/AvsP_Error.png)

The script in question is around 1700 lines long. And I can get it to open in Virtualdub within like 20 seconds of loading. If I remove a good portion of the script it can also then load fine in AvsP. If you don't happen to have any scripts on hand that can reproduce this just let me know, and I'll find some place where I can link the script for viewing. (kind of too huge to post)

Maccara
29th October 2007, 01:24
First of all, great program! Makes my life with Avisynth much easier.

Then the questions:

How to define functions, where presets have () in them?

For example:
string "profilepath"="F:\Program Files (x86)\Some App\Settings\Default.txt" ("*.txt"),

The (x86) screws up the parser. I tried to find out, if there's an escape sequence I could use, but either I'm blind (entirely possible) or there isn't one at the moment.

(no biggie, I can have the stuff in other folders as well, just interested if this is possible at all)

qwerpoi
29th October 2007, 02:40
Okay, here's a bugfix file to fix the two bugs noted by krisq and Maccara:

http://avisynth.org/qwerpoi/AvsP_v2.0.2_bugfix3.zip

To apply the bugfix, simply download the zip file (133 kb) and unzip the file inside named AvsP.pyo into the same directory as your AvsP.exe. The bugfix fixes the issue that krisq pointed out, it turns out there was a more serious issue underneath. It doesn't affect you if you don't customize the filter database using the "Options -> Avisynth function definition" dialog box, but if you do, you should apply the bugfix right away. The bugfix also fixes the issue that Maccara just pointed out, you can now use parentheses inside strings when defining function definitions.

Again, just to be clear, in AvsP v2.0.2 the function database only accepts long names for plugin functions. In previous versions, a dll function would show up twice in the "Avisynth function definition" dialog, for example EEDI2 and EEDI2_EEDI2. Both names are valid in Avisynth - the long notation, dllname_function, was introduced to avoid naming conflicts. In AvsP v2.0.2, only EEDI2_EEDI2 will show up in the dialog, meaning you only have to define your customizations once, the scripts will automatically reflect the customizations for both long and short names. Because I made this change, those who made customizations with the short plugin names will lose those customizations - for that I apologize. There was a more serious bug related to this issue that krisq pointed out that I fixed, so again, if you have made or plan to make database customizations, be sure to apply this bugfix first.

Edit: 2nd bugfix on 10/30/07, fixes a bug with deleting presets.
Edit: 3rd bugfix on 10/30/07, fixes the bug with short and long plugin names and presets.

Anyway, there seems to be some issues when working with large avs scripts. They consist of delays in text typing and failing to be able to preview the video. Either I get an error or it just hangs and never opens the video preview.

Here's the error I see: Error (http://i78.photobucket.com/albums/j81/SuzumiyaHarukalover/AvsP_Error.png)

That error seems to be related to a limitation in wxPython, the framework I used to make AvsP. I'll try and take a look into it, you can send me your script as an email attachment, send it to qwerpoi.avsp AT gmail.com.

Maccara
29th October 2007, 06:37
Okay, here's a bugfix file to fix the two bugs noted by krisq and Maccara:


Thank you very much! Parentheses now seem to work fine.

Terka
29th October 2007, 10:19
when loading v2.0.2, got this message, in version 1.0.4 cant copy/move code into clipboard.
could someone help?
[Mon Oct 29 10:18:15 2007]
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character R
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character G
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character B
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character L
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character U
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character T
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character R
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character G
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character B
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character L
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character U
Error parsing LoadPluginEx2_LoadPlugin plugin parameters: unknown character T
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "D:\Research\Python\AvsP\Translations\AvsP_v2.0.2\AvsP\AvsP.py", line 11376, in main
File "wx\_core.pyo", line 7700, in __init__
File "wx\_core.pyo", line 7352, in _BootstrapApp
File "D:\Research\Python\AvsP\Translations\AvsP_v2.0.2\AvsP\AvsP.py", line 11366, in OnInit
File "D:\Research\Python\AvsP\Translations\AvsP_v2.0.2\AvsP\AvsP.py", line 3373, in __init__
File "D:\Research\Python\AvsP\Translations\AvsP_v2.0.2\AvsP\AvsP.py", line 3931, in defineFilterInfo
File "D:\Research\Python\AvsP\Translations\AvsP_v2.0.2\AvsP\AvsP.py", line 4218, in getFilterInfoFromAvisynth
File "avisynth.pyo", line 95, in Release
WindowsError: exception: access violation reading 0x029D58C0

krisq
29th October 2007, 10:46
Okay, here's a bugfix file to fix the two bugs noted by krisq and Maccara:


Thanks man. Looks like everything is A-OK. :D