View Full Version : AvsPmod 2.5.1
ANGEL_SU
26th May 2011, 10:12
@Dogway
Could you provide the error message? So, I can deal with this case thoroughly.
Dogway
26th May 2011, 16:23
Its very easy to reproduce this I think. Empty your plugin folder, and start writting your script. The 2 most common errors were these:
Traceback (most recent call last):
File "wx\_core.pyo", line 14660, in <lambda>
File "AvsP.pyo", line 662, in ShowAutocomplete
KeyError: u'smoothadjust_icc_x86_smoothlevels'
Traceback (most recent call last):
File "AvsP.pyo", line 6634, in OnMenuEditAutocomplete
File "AvsP.pyo", line 662, in ShowAutocomplete
KeyError: u'gicocu_gicocu'
Mounir
27th May 2011, 02:31
Has this new version been improved for User Sliders (http://avisynth.org/qwerpoi/UserSliders.html) because i'm in trouble with a virtualdub filter (Colormill) for instance.I'm always forced to go back & forth between Avsp & virtualdub it's annoying really.A useable user Slider would enhance the things greatly
Zarxrax
27th May 2011, 02:43
Mounir: What is the problem with the user sliders? What would you like to see improved?
Mounir
27th May 2011, 03:00
Well take a look below, here is what i do currently:
ConverttoRGB32(matrix="rec601",interlaced=true)
LoadVirtualdubplugin("C:\Program Files\VirtualDubMod\plugins\colormill.vdf", "colormill",1)
colormill(25700, 25700, 25700, 25700, 100, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 1124, 5)
This whole giberish is only for luma Levels (dark levels; min/default/max value), the value 100 represent the minimum value actually ( = -100 luma levels), default value is 257000 (= 0) and the highest is 51300 (= +100). What i'd like is to create a user slider that work so i can raise up/down the values according to my needs rather than copy/paste these from a .vcf file saved with virtualdub....
ANGEL_SU
27th May 2011, 04:27
@Mounir
I don't see any problem. Have you tried to select the parameter 100 and F12(Edit|Insert|Insert user slider) to create a slider for it? If you use it frequently, open 'Options|Avisynth function definition' and create/modify it properly.
Mounir
27th May 2011, 04:48
Hmm yeah you're right it's working there is something i don't like though, take a look at this first (virtualdub Gui)
http://img96.imageshack.us/img96/6926/colormill.jpg
In avsp i'd like to have a -100-0-100 scale like in the colormill GUi for vdub instead of 100-25700-51300 scale.My brain can't work with these numbers. If there is a way that would be rockin'
ANGEL_SU
27th May 2011, 05:20
I think you can try to define a user function to do this.
Zarxrax
27th May 2011, 05:49
Hmmm, I think the way you would have to do this is by creating an AVISYNTH wrapper function around your colormill filter. This function would take some sane input values and then do some math to convert it to the massive numbers that the filter requires.
Then you can make user sliders for this wrapper function.
I might be able to take a look at this problem tomorrow.
Mounir
27th May 2011, 09:07
What would actually be the best solution imo is to emulate an interface specifically for vdub plugins (see photo)
I don't know if that's possible but you might seriously take a look at that.
There is another plugin i use regularly and this one is even more complex as it's a string, take a look:
ConverttoRGB32(matrix="rec601",interlaced=true)
LoadVirtualdubplugin("C:\Program Files\VirtualDubMod\plugins\gradationCurves.vdf", "gradation",1)
gradation(6,"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2......etc")
The interface look like this: http://img14.imageshack.us/img14/5582/gcurve.jpg
Zarxrax
27th May 2011, 17:08
Well, I very much doubt that can happen, because it sounds like a very big undertaking.
Honestly, if you are so reliant on virtualdub plugins, your best option is probably to use virtualdub for them (or try to find native avisynth plugins that can achieve the same purpose)
By the way, here is a wrapper function for your colormill, which looks like it should do the trick. Just put this as an avsi file in your plugins folder, and call it with Colormill(number)
Then you can set up a user slider for it, with values from -100 to 100.
function colormill(clip c, int "darklevels"){
darklevels = default(darklevels, 0)
video = c.ConverttoRGB32(matrix="rec601",interlaced=true)
LoadVirtualdubplugin("C:\Program Files\VirtualDubMod\plugins\colormill.vdf", "colormill_vdf",1)
darklevels = (darklevels * 256) + 25700
video = video.colormill_vdf(25700, 25700, 25700, 25700, darklevels, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 1124, 5)
return video
}
Zarxrax
27th May 2011, 22:41
Small bugfix release:
Version 2.1.7
- Fixed garbage data displayed on shortcut labels
- Fixed wrong checked/unchecked status for 'Flip' menu items.
- Improve menu item 'Hide the preview' to 'Show/Hide the preview.
- Fixed missing customized function presets (This situation happened if an uninstalled plugin is not in filterdb.dat and has no customized definition. Now, avsp will check and keep its definiton as customized definition to avoid missing its preset. If the reason is from renaming, you can copy old preset to new one and then delete. But, leaving it there is also harmless.)
Dogway
28th May 2011, 02:18
Totally unexpected awesomeness, Im looking forward to hard use this version. Just only fix this little issue when changing shortcuts:
Traceback (most recent call last):
File "AvsP.pyo", line 7557, in OnMenuConfigureShortcuts
NameError: global name 'GetTranslatedShortcut' is not defined
ANGEL_SU
28th May 2011, 02:33
Totally unexpected awesomeness, Im looking forward to hard use this version. Just only fix this little issue when changing shortcuts:
Traceback (most recent call last):
File "AvsP.pyo", line 7557, in OnMenuConfigureShortcuts
NameError: global name 'GetTranslatedShortcut' is not defined
Sorry, my bad. Fixed.
Mounir
28th May 2011, 05:00
I'm testing this new version and there is an error window log:
Traceback (most recent call last):
File "AvsP.pyo", line 7215, in OnMenuVideoToggle
File "AvsP.pyo", line 10594, in ShowVideoFrame
File "AvsP.pyo", line 11052, in UpdateScriptAVI
File "wx\_core.pyo", line 9744, in ReleaseMouse
wx._core.PyAssertionError: C++ assertion "GetCapture() == this" failed at ..\..\src\common\wincmn.cpp(2536) in wxWindowBase::ReleaseMouse(): attempt to release mouse, but this window hasn't captured it
This script work perfectly with version 2.0.2 you have some work on the table...
Zarxrax
28th May 2011, 05:54
Mounir: thats with the most recent version, 2.1.7.1?
How did you produce this error? Just by enabling the video preview?
ANGEL_SU
28th May 2011, 07:33
I'm testing this new version and there is an error window log:
Traceback (most recent call last):
File "AvsP.pyo", line 7215, in OnMenuVideoToggle
File "AvsP.pyo", line 10594, in ShowVideoFrame
File "AvsP.pyo", line 11052, in UpdateScriptAVI
File "wx\_core.pyo", line 9744, in ReleaseMouse
wx._core.PyAssertionError: C++ assertion "GetCapture() == this" failed at ..\..\src\common\wincmn.cpp(2536) in wxWindowBase::ReleaseMouse(): attempt to release mouse, but this window hasn't captured it
This script work perfectly with version 2.0.2 you have some work on the table...
Thanks for your report. I added a checking code before calling ReleaseMouse() and this issue should be fixed.
Mounir
28th May 2011, 07:59
Mounir: thats with the most recent version, 2.1.7.1?
How did you produce this error? Just by enabling the video preview?
Yes i have pressed preview that's it.
I have XP SP3 if that can help
matfra
31st May 2011, 16:05
I want to know if other people have the same issue.
When I start AVSP the last version I get a Warning message about all my plugins that are in my AviSynth folder.
The only version works for me is AvsPmod_v2.1.2
Dogway
31st May 2011, 16:30
hey, some notes by using this version:
-this one (http://forum.doom9.org/showthread.php?p=1503119#post1503119)
-remember save mp4 last paremeters (quality,sar...). Remember its settings inside options.dat too, for reusing in next versions.
-on-cache processing option; that is, work over the cached fragment.
-some crashings are not detected (task termination, etc), thus session is not autoloaded
-disable autocomplete calltip when navigating inside function parameters. (This one could be argued)
-when autocomplete calltip is on you can't move cursor
-tab labeling
Motenai Yoda
31st May 2011, 18:25
Can I request some event to refresh the "preview frame" like as avsp do?
I mean refresh by:
- click on preview,
- focus on preview,
- "return" pressed on changing parameters into the "separate video preview window".
I also noticed that in some cases seems to refresh only after be moved backward/forward one/some frame.
SubJunk
31st May 2011, 22:37
Yeah you can always right-click and "refresh preview" but it would be cool to have left-click refresh. I think that would be intuitive
Mounir
2nd June 2011, 17:13
I have another error today:
Traceback (most recent call last):
File "AvsP.pyo", line 7930, in OnNotebookPageChanged
File "AvsP.pyo", line 11052, in UpdateScriptAVI
File "wx\_core.pyo", line 9744, in ReleaseMouse
wx._core.PyAssertionError: C++ assertion "GetCapture() == this" failed at ..\..\src\common\wincmn.cpp(2536) in wxWindowBase::ReleaseMouse(): attempt to release mouse, but this window hasn't captured it
I'm trying NeatVideo it must be related...
Edit:
Yeah i think it's related i'm trying a simple script with the neat video filter only and i can't get a preview, it's working perfectly with the v 2.0.2. Please fix asap thanks
Zarxrax
2nd June 2011, 22:48
Version 2.1.8
- when text has changed, left-clicking the video preview will refresh the preview
- fixed pressing enter while in a text box in slider window not updating the video preview
- add an option 'Refresh preview automatically' to 'Options|Program settings|Video 1'. If disabled, switching focus to the video preview or changing sliders wont cause a refresh
- fixed an issue with mouse release errors
Yobbo
3rd June 2011, 06:40
What's up with this?
http://img220.imageshack.us/img220/6869/unledzc.jpg
kypec
3rd June 2011, 09:11
What's up with this?
http://img220.imageshack.us/img220/6869/unledzc.jpg
I think the error message is pretty explanatory, isn't it?
You must rename the offending plugin files so that they won't contain characters like - (hyphen), try e.g. mt_masktools_26.dll and so on.
SubJunk
3rd June 2011, 11:03
I think the error message is pretty explanatory, isn't it?
You must rename the offending plugin files so that they won't contain characters like - (hyphen), try e.g. mt_masktools_26.dll and so on.Which is kindof a weird error since those are the proper filenames :confused:
kypec
3rd June 2011, 13:04
Yes, I understand that it is an ugly approach to ask the user to rename some files manually but I remember a while ago there was an issue with these filenames and ANGEL_SU (AvsPmod contributor) advised to do so.
Perhaps there was a fix released meanwhile but I really can't tell, I'm not using these new builds (yet) myself.
Zarxrax
3rd June 2011, 17:21
This is not really a limitation of avspmod, but one of avisynth itself.
Generally, you can specify a function name by using its "long name", which includes the name of the dll itself in the function call.
For instance, lets say I want to use the function named "Deen" from the dll Deen.dll.
I could call it with the short name Deen(), or I could also call it with the long name, Deen_Deen()
However, if there is a hyphen in the filename, the ability to call it with the long name breaks.
If you don't care about this, you can just tick the box so that it wont bother you again.
By the way, if you are wondering why anyone might ever want to use the long names, I think that this would allow you to use multiple versions of the same plugin. (im just guessing... this is the only logical reason I can think of)
Gavino
3rd June 2011, 17:58
By the way, if you are wondering why anyone might ever want to use the long names, I think that this would allow you to use multiple versions of the same plugin. (im just guessing... this is the only logical reason I can think of)
That's right - or the similar problem of two unrelated plugins that use the same function name.
http://avisynth.org/mediawiki/Plugins#Plugin_autoload_and_conflicting_function_names_v2.55
Motenai Yoda
3rd June 2011, 20:10
Version 2.1.8
- when text has changed, left-clicking the video preview will refresh the preview
- fixed pressing enter while in a text box in slider window not updating the video preview
- add an option 'Refresh preview automatically' to 'Options|Program settings|Video 1'. If disabled, switching focus to the video preview or changing sliders wont cause a refresh
- fixed an issue with mouse release errors
thanks :p
Mounir
5th June 2011, 08:54
Got an error again today:
Traceback (most recent call last):
File "AvsP.pyo", line 7840, in OnSliderReleased
File "AvsP.pyo", line 10699, in ShowVideoFrame
File "AvsP.pyo", line 11286, in PaintAVIFrame
File "pyavs.pyo", line 342, in DrawFrame
File "pyavs.pyo", line 321, in _GetFrame
File "avisynth.pyo", line 282, in GetFrame
WindowsError: exception: access violation reading 0x08808FE2
I'm working with an AVCsource
wOxxOm
6th June 2011, 16:05
Version 2.1.8
- when text has changed, left-clicking the video preview will refresh the preview
Houston we have a problem!
Previously it was possible to finetune crop etc. parameters by clicking video to see x/y coordinates without updating it. Now if I have 3-10 numbers to finetune in a very complex script, what should I do? Wait 10 times to update video or write down numbers to notepad? Or comment out the line?
BTW, the problem could be possibly resolved by updating statusbar info even if video isn't focused, and this will solve another issue of valueable status info disappearing when switching to textpane.
Or (another handy tweak request) maybe it's possible to ignore changes in comments?
ANGEL_SU
6th June 2011, 21:44
- add an option 'Refresh preview automatically' to 'Options|Program settings|Video 1'. If disabled, switching focus to the video preview or changing sliders wont cause a refresh
You can avoid refreshing as above-mentioned.
In next version, moving mouse on the preview will show the pixel info even the focus is on text window. So that you don't need to click the preview.
SubJunk
6th June 2011, 22:25
- when text has changed, left-clicking the video preview will refresh the previewThanks a lot, this is awesome :)
Dogway
6th June 2011, 23:38
Or (another handy tweak request) maybe it's possible to ignore changes in comments?
yeah, I like this one a lot!
Let me add a few ones.
-Include point in style commenting like "invert#~ .ConvertToYV12"
-understand xx:xx time format as min:sec
-tab repositioning (maybe asking too much)
-tab labeling (once again : )
-No mandatory to save script in order to encode. File name would be taken from default tab name, or tab label if defined.
-Also when Im writing some function parameters, ocassionally when it matches to a function name or its beginning, function autocomplete calltip pops up, when in fact I want to see the parameters calltip.
ANGEL_SU
7th June 2011, 19:20
...
-tab labeling (once again : )
...
I don't understand what this is used for. Could you explain a little more?
Zarxrax
7th June 2011, 21:04
He means the tabs along the top. Instead of containing the filename or whatever, it would be renamable.
I don't really see much benefit of this. If you want a tab to have a certain name, its not difficult to just rename your avs script. But maybe he means for unsaved scripts...
Dogway
8th June 2011, 01:54
Well yes, it depends on how you see the application, a script editor, or a script builder. In the latter case you make a script based in one tab and then using several tabs for testing different parts and filters, like little workshops across tabs. Testing is based in isolation, and this requires tabs and organization. Giving a temporal name to a temporal tab is more useful than a generic static name that says nothing in this case, where after you get the results you would more probably want to close it.
Here Im not meaning to substitute filename, but adding a label name in addition below it for example. It does no harm and is very probably a useful thing.
Its a visual shortcut, and tab reminder of what you were trying to accomplish. Useful when switching videos for comparisons, parallel workflows and whatnot.
kypec
8th June 2011, 05:03
I still can't see what's your point, Dogway, sorry. I agree with Zarxrax on this one - if you want a meaningful name for your tab, then just name the AVS file like that. You have to type the name anyway. You want better organization in your files? Well, use folders and subfolders for that matter. AvsP is basically an editor, a very specialized text editor for certain type of files. I've yet to see
an editor/IDE (integrated development environment) application where tabs with open files would have LABEL feature other than filename itself. It just doesn't make any sense, really.
Dogway
8th June 2011, 13:31
@kypec: yes I know, I haven't seen this either in any application. I just thought you didn't have to stop where other applications went. But its only a suggestion, nothing happens if other people dont agree.
Zarxrax
8th June 2011, 18:41
The main issue with such a feature is that the tabs and stuff like that are all provided by the underlying libraries, so adding additional features like that on top would probably be quite complicated.
khoahoc0508
8th June 2011, 23:19
hello guy,I have a problem:AvsP is crashed with all vesion.Can i fix this?
It look like:
Problem signature:
Problem Event Name: APPCRASH
Application Name: AvsPmod.exe
Application Version: 2.1.8.0
Application Timestamp: 4d38dcaa
Fault Module Name: wxbase28uh_vc.dll
Fault Module Version: 2.8.12.0
Fault Module Timestamp: 4dad2fb2
Exception Code: c0000005
Exception Offset: 0003c623
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1066
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Dogway
8th June 2011, 23:39
...tabs are all provided by the underlying libraries (...)
Fair enough, thats why I said "asking too much" for tab repositioning, guess tab labeling is too.
(...)You want better organization in your files? Well, use folders and subfolders for that matter. (...)
I dont want anything specific, avspmod got to a point where its doing really fine, now Im only trying to help to improve an application I like and use.
The problem with what you say is that you need to leave avpsmod, navigate too much, click too much, and too much time wasted. Yes it works, but Im not the only one who thought GUI needed some update (Qt)
ANGEL_SU
9th June 2011, 11:19
... but Im not the only one who thought GUI needed some update (Qt)
I doubt who is willing to do this. You need to rewrite the whole procedure if migrating to QT. Also, I haven't learned QT yet.
I think your request isn't too hard. For labeling tab on top, I can put a textbox on tab to simulate it - see photo:
http://www.dumpt.com/img/files/37k6q5qi9yrz9cidtp1o_thumb.png (http://www.dumpt.com/img/viewer.php?file=37k6q5qi9yrz9cidtp1o.png)
For repositioning tab, there are already existing some widgets which can do this. They are compitable with the old interface, so that, it is very easy to do a update.
Zarxrax
9th June 2011, 16:12
I think your request isn't too hard. For labeling tab on top, I can put a textbox on tab to simulate it - see photo:
http://www.dumpt.com/img/files/37k6q5qi9yrz9cidtp1o_thumb.png (http://www.dumpt.com/img/viewer.php?file=37k6q5qi9yrz9cidtp1o.png)
You can put a textbox in a tab? O_O
But how does that work? Click and double click are already reserved functions for tabs. Would it be edited through the right-click menu?
Dogway
9th June 2011, 16:25
Zaxrax, maybe the same as renaming filenames, click and seconds after click again to edit (edit: or F2?). btw I didnt know about the double click! nice one.
These are only ideas, just in case you find them useful, no problem if they are declined. The Qt thing was just to answer to kypec, I dont have the right to ask you for this kind of things, since I dont do any programming.
Zarxrax
9th June 2011, 16:56
Maybe I should try to make a video tutorial to avspmod sometime. There are lots of features which are easy to overlook.
elguaxo
9th June 2011, 17:09
Maybe I should try to make a video tutorial to avspmod sometime. There are lots of features which are easy to overlook.
Yes please! :)
ANGEL_SU
10th June 2011, 05:20
You can put a textbox in a tab? O_O
But how does that work? Click and double click are already reserved functions for tabs. Would it be edited through the right-click menu?
Although no simple method available in library, position and size of a tab can be figured out indirectly.
As Dogway guessed, click current tab to do renaming. I'll also add this into 'File' menu and tab's right-click menu. Therefore, you may define a keyboard shortcut to access it.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.