View Full Version : AvsPmod 2.5.1
niiyan
4th July 2011, 17:05
I tried to use AvsPmod v2.2.0 with Japanese translation.py, but it failed to start.
Error log (avsp_error_log.txt) says:
[Mon Jul 04 23:29:04 2011]
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "AvsP.pyo", line 13791, in main
File "wx\_core.pyo", line 7981, in __init__
File "wx\_core.pyo", line 7555, in _BootstrapApp
File "AvsP.pyo", line 13781, in OnInit
File "AvsP.pyo", line 4467, in __init__
AttributeError: 'NoneType' object has no attribute 'GetSubMenu'
I don't know what this error means. But I happend to remove Japanese translations from those two lines below, then AvsPmod runs normally.
"Zoom" : u"ズーム",
"&Zoom" : u"ズーム(&Z)",
Even if those lines have non-Japanese characters except for "Zoom", AvsPmod also crashes. "Zoom" is OK, but "zoom" causes crash.
Zarxrax
4th July 2011, 17:11
Niiyan: The translation files have not been updated at all for Avspmod. They are still the old translations from Avsp. Because some menu items have changed, maybe this causes the problem.
Someone will probably need to update them in order to be fully compatible.
niiyan
4th July 2011, 17:36
@Zarxrax
Thank you for your reply.
I didn't used old Japanese translation.py. I used translation.py generated by AvsPmod v2.2.0. Even if I translated only the "Zoom" lines I mentioned before, AvsPmod still crashed.
ANGEL_SU
4th July 2011, 17:55
@niiyan
My bad. It is actually a bug in AvsPmod v2.2.0. Thanks for your report.
P.S.
If you have a zip tool, please update lib/library.zip with this file (http://www.mediafire.com/?fbkpd1s12kil6if) to see if the problem solved.
e.g. put the file together with library.zip and run zip.exe like:
zip.exe -u library.zip AvsP.pyo
niiyan
5th July 2011, 14:55
@ANGEL_SU
That file solved the problem.
Thanks!
ANGEL_SU
6th July 2011, 11:35
might be handy if the info is kept after pressing pane switch hotkey / typing - probably just add Line/Col at the start of custom statuses and make this combined statusbar shown permanently...I changed to show Line/Col at the right end part of status bar. So, the pixel info should be kept there while typing.
Seems like maybe this update changed the preview caching, it seems like the preview pane gets cached after the second time now instead of the first, e.g. I preview one tab, go to another one, then go back to the first one and it reloads, but after that second load it doesn't do it again.Yes, this is a new bug in version 2.2.0. Fixed.
definition importer also fails at parsing dither.avsi...Fixed (2011-07-12).
-avspmod still has a very unstable performing when taking out plugins. It just doesn't want to launch with next message:
[Sun Jul 10 14:38:23 2011]
Traceback (most recent call last):
...
File "F:\AvsPmod\src\AvsP.py", line 4857, in defineFilterInfo
TypeError: 'set' object does not support item deletionFixed (2011-07-12).
a small folding glitch...Fixed (2011-07-25).
...My avs plugins folder was empty, and that was causing AvsPmod to crash...Fixed (2011-08-19).
... syntax highlighting is causing 0.5s delays when typing inside "quotes" or blockcommenting via Ctrl-Q, the avs-script has about 100 lines.Fixed (2011-11-07) if the problem is due to 'Incomplete string' style.
I updated the library, I turned off incomplete string, the typing is still very slow.Repeatedly calling the folding code is the reason. Fixed(2011-11-07).
...
-when you are frame skipping pixel data dissapear until you move the cursor again
-when you open a second instance of avspmod, "a crash is detected" message appears (and autoloads last session if you have that option on)
-the 10th tab doesn't want to open when I press 0
...
-Option to save image as "name of source"(+framenumber)Fixed. (2011-11-15)
2011-11-22: In previous beta version, when you switch tabs or skip frames, AvsPmod will show pixel data if cursor is already inside the preview window. But the color is usually wrong unless you move the cursor again. Fixed.
2011-12-15: Fix a bug in the macro's function - GetTextEntry(). See this post (http://forum.doom9.org/showthread.php?p=1544585#post1544585).
If anybody would try the latest code, you can use a zip tool to update lib/library.zip with this file (http://www.mediafire.com/download.php?f6v465a024sgtpr) (Avsp.pyo 2011-12-15). If you get an error message "Translation file update failed" on every start up , please also update lib/library.zip with this file (http://www.mediafire.com/download.php?aweabbeq11tcbzw) (__translation_new.pyo 2011-12-15).
wOxxOm
10th July 2011, 13:10
a handy macro for 2.2+ to shift bookmarks by a given +/- number of frames
try:
shift=int(avsp.GetTextEntry("Shift bookmarks by # frames"))
try:
bookmarks=[(b+shift, t) for b,t in avsp.GetBookmarkList( title=True )]
except TypeError:
bookmarks=[(b+shift) for b in avsp.GetBookmarkList()]
avsp.GetWindow().DeleteAllFrameBookmarks()
avsp.SetBookmark( bookmarks )
except:
pass
Mounir
11th July 2011, 03:17
I get an error whenever i don't save a script (save as) and use the same video in two different scripts (not sure it's related), one with no filter in it, the second a bit more complex (with fft3dfilter mainly) but not so much.
Then when i go from one tab to the other it's crashing 9 times out of 10.
Please fix this bug, it's really annoying.
Mounir
12th July 2011, 09:01
Another problem today .I have reinstalled XP it seems the filters won't auto load despite the fact i have them in the plugins folder, what could be the reason ?
wOxxOm
12th July 2011, 09:33
@Mounir: avisynth plugin autoload (http://avisynth.org/mediawiki/Plugins#Plugin_autoload_and_name_precedence_v2)
Mounir
12th July 2011, 21:37
Thanks i have solved this problem with your link woxxom, only one remain now
RedDwarf1
13th July 2011, 01:00
I am getting a problem with 2.2.0 and with 2.1.6 but it worked fine with 2.1.3. That is the switch from text to video using Shift+Tab. On 2.1.3 and earlier versions it worked fine, switching between the edit text window and the video preview. However on 2.1.6 and 2.2.0 pressing Shift+Tab only moves the cursor backwards by one tab position. It doesn't select the video window. The keyboard shortcuts are okay and are set as they were.
The only way to select the video is to use the mouse. Has AvsPmod now become only mouse operated? Has anyone else noticed this?
wOxxOm
13th July 2011, 06:07
Shift-Tab now operates in pair with Tab to unindent/indent text similar to all the text editors out there.
Use Esc to switch panes or set another hotkey - I've got used to F1.
Mounir
13th July 2011, 17:56
Error window today: (on v2.2)
Traceback (most recent call last):
File "AvsP.pyo", line 7960, in OnButtonTextKillFocus
AttributeError: 'NoneType' object has no attribute 'Framecount'
the scrip it use:
DGMultiSource("C:\myvideo.dgi",i420=false,deinterlace=0,use_top_field=true,use_pf=true).trim(301,0)
Deblock_QED(24,26)
AssumeTFF()
QTGMC( Preset="Slower" )
SelectEven()
Mounir
13th July 2011, 18:01
Error window today: (on v2.2)
Traceback (most recent call last):
File "AvsP.pyo", line 7960, in OnButtonTextKillFocus
AttributeError: 'NoneType' object has no attribute 'Framecount'
the scrip it use:
DGMultiSource("C:\myvideo.dgi",i420=false,deinterlace=0,use_top_field=true,use_pf=true).trim(301,0)
Deblock_QED(24,26)
AssumeTFF()
QTGMC( Preset="Slower" )
SelectEven()
RedDwarf1
13th July 2011, 21:12
Shift-Tab now operates in pair with Tab to unindent/indent text similar to all the text editors out there.
Use Esc to switch panes or set another hotkey - I've got used to F1.
Thanks, it must of been the changes made which broke it for me with how I had it setup.
I keep hoping that ESC will get used to stop script processing for when very intense processing stuff and key repeats cause AvsPmod to keep updating the preview long after the next frame key is released.
wOxxOm
16th July 2011, 20:50
I previously reported a problem of AvsP throwing an error (due to a faulty/complex script) and then never recovering allocated memory back and a few other vicious side effects. Well it seems that the problem fix is trivial - just a try/except in PaintAVIFrame:
try:
script.AVI.DrawFrame(frame, dc.GetHDC())
if self.flip:
img = bmp.ConvertToImage()
if 'flipvertical' in self.flip:
img = img.Mirror(False)
if 'fliphorizontal' in self.flip:
img = img.Mirror()
bmp = wx.BitmapFromImage(img)
dc.SelectObject(bmp)
except:
wx.MessageBox('Frame redraw failed', 'Error', style=wx.OK|wx.ICON_ERROR)
Being put to library.zip instead of AvsP.pyo it works, however is it possible to generate a more informative message using some exception properties?
ANGEL_SU
17th July 2011, 04:03
... it must of been the changes made which broke it for me with how I had it setup...
Yes, some keys are reserved as editing only by default. If you are preferring to old shortcuts, go to 'Options|Keyboard shortcuts...|Advanced' and disable all of options.
...however is it possible to generate a more informative message using some exception properties?
You may try 'str' or 'unicode' method to retrieve the error message from an exception instance. e.g.:
try:
script.AVI.DrawFrame(frame, dc.GetHDC())
except (WindowsError, ValueError) as err:
wx.MessageBox(str(err), 'Error', style=wx.OK|wx.ICON_ERROR)
return
Wrong
17th July 2011, 16:48
http://i.imgur.com/0Ue0c.jpg
I've problem with AvsPmod , please help me :(
wOxxOm
24th July 2011, 08:47
a small folding glitch:
SET UP: fold a function with { in line with function definition like this:
function somefun(){
#some code
}
ACTION: now when only one line with function name is visible, select the entire line (mouseclick on margin column e.g.) and delete it
RESULT: body of the function isn't deleted but remains hidden and unexpandable, line numbers in left column also reflect this. Selecting the encompassing area, copying it to clipboard and pasting it back however works.
ANGEL_SU
25th July 2011, 07:46
a small folding glitch...
Thanks for your report. See this (http://forum.doom9.org/showthread.php?p=1511932#post1511932) if you would like to try the fixed version.
Zellord
30th July 2011, 08:25
thanks for new version !
dragon_warrior
5th August 2011, 16:01
Hi folks
I'm running Win7 on a 32bit platform and encounter this error message whenever loading AvsPMod (2.2.0):
The instruction at 0x01ddc623 referenced memory at 0x000000014 could not be read.
Click on OK to terminate the program
How to resolve this problem? Thanks
ganymede
5th August 2011, 16:46
Hi, I get the following error when opening AvsPmod.exe (2.2.0) :[Fri Aug 05 17:40:58 2011]
Traceback (most recent call last):
File "run.py", line 6, in <module>
File "AvsP.pyo", line 13791, in main
File "wx\_core.pyo", line 7981, in __init__
File "wx\_core.pyo", line 7555, in _BootstrapApp
File "AvsP.pyo", line 13781, in OnInit
File "AvsP.pyo", line 4133, in __init__
File "AvsP.pyo", line 4853, in defineFilterInfo
File "AvsP.pyo", line 4923, in defineScriptFilterInfo
AttributeError: 'MainFrame' object has no attribute 'dllnameunderscored'The program crashes immediately.
With AvsPmod 2.1.8 I've no problem. I'm using Vista 32 bits.
wOxxOm
13th August 2011, 10:03
ganymede, judjing by _BootstrapApp and 'dllnameunderscored', your avs plugins folder has some dll-file with underscore that triggers the error. You could help debugging AvsPmod by locating that dll - just move out all of them into different folder and move back by 10 items, each time restarting avspmod until it'll crash, then pinpoint the dll amidst those 10 recently moved (by moving out those 10, and adding back by 1).
ganymede
13th August 2011, 11:01
@wOxxOm : you pointed me on the right track. My avs plugins folder was empty, and that was causing AvsPmod to crash. Moving back some dlls to this folder solved the problem on my system. Thank you.
wOxxOm
16th August 2011, 09:25
My friend's AvsPmod on xp32bit shows an error "failed to put data on the clipboard (Error -2147221008 CoInitiliaze has not been called)" on copy/paste and "Drag & drop operation failed" on mouse dragging with Ctrl pressed.
Any ideas how to debug this?
Gavino
16th August 2011, 09:36
My avs plugins folder was empty, and that was causing AvsPmod to crash.
That sounds like a bug.
An empty plugins folder, while unusual, is perfectly 'legal' and should not cause a crash.
Dogway
16th August 2011, 10:07
It's a problem with the function definition. It checks against "installed" plugins.
It happened to me when I unselected some plugins there, then took out the plugins from the folder.
To fix it, get them back to the folder, check them in function definition, then move them out of the folder, but I thought this bug was already addressed (http://forum.doom9.org/showthread.php?p=1511932#post1511932).
Looks like development is much slower than before, I 'm eager to see any new version with some of the fixes (http://forum.doom9.org/showthread.php?p=1510757#post1510757) soon.
btw I forgot how I did it. I would like to revert what Tab and Enter do when calling the filters tooltip, I want to change them back to Tab->writes down the filter name, Enter->loads the preset
Zarxrax
17th August 2011, 17:25
I suppose I should put a link to it in the first post to angel_su's bugfix update thing, for people that dont follow the thread.
I know I've been really busy at work lately, and I imagine we probably haven't heard much from angel_su for the same reason.
forclip
30th August 2011, 13:14
Hello. After updating v2.2.0 with this (http://forum.doom9.org/showpost.php?p=1511932&postcount=556) AvsP.pyo I get an error message "Translation file update failed" on every start up (except the first one, if translation was updated with new items). This issue can be easily reproduced with empty translation.py, so the problem is not in the translation file. Fix this please, because it`s very annoying..
bittu123
3rd September 2011, 10:02
I had a .txt file having data like this....
10 0
12 1
16 1
40 0
30 1
....... and so on
colmn first is my data and second is condition..
Now i want to receive all data with condition 1 or with condition 0 separately.
and trying to put them separately in script with the help of macros
Actually, I want to put them in function
Trim(10,11)++....so on in clip0 and
Trim(12,15)++Trim(16,40)++ .... so on in clip1
Hope, I made clear my query....
sry, if its not understandable
bittu123
3rd September 2011, 10:05
I know, I can do it manually. But I need Macros for it so that a text containing big data can be generalized quickly
wOxxOm
3rd September 2011, 11:51
bittu123, you can use absolutely any programming/scripting language or even any spreadsheet editor like Excel (applying datafilter for '0' or '1' and repeating corresponding formula, then adding 'trim(', ')+\' columns), just apply a little effort!
Gavino
3rd September 2011, 12:15
Depending on what you are ultimately trying to do, you may also find ConditionalReader (http://avisynth.org/mediawiki/ConditionalReader) useful (instead of generating a lot of Trims).
creaothceann
5th September 2011, 22:01
Is there still the problem with the Replace dialog in the current version? (After a replace operation, the window stays open but loses focus, and pressing Ctrl+H again produces an error.)
I'd rather not update if the issue persists since I have defined custom colors and fonts and it's a nuisance to define them again.
Zarxrax
5th September 2011, 23:19
I believe this problem is fixed. But you may test it without overwriting your old files.
creaothceann
5th September 2011, 23:47
It seems the error doesn't occur, but the replace window still loses focus. Would it be possible to let it keep the focus?
It'd also be nice if there were a separate font config file. Doesn't even have to be readable, but could be a simple comma-separated list:
Default,FFFF00,0000A0,Fixedsys Excelsior 3.01,12
Comment,00FFFF,0000A0,Comic Sans MS,10,bold,italic
use monospaced,false
EDIT: To clarify, it's just queries, not demands...
NASRMAX
7th September 2011, 01:03
made the encoded subme = 11 do not open with avspmod, the program is not responding, or a gray image appears in place of the image of the film
LigH
7th September 2011, 07:37
Then your decoder may be the reason. AvsPmod can only display what AviSynth and its decoders can decode and output.
Try a most recent FFmpegSource2 with most recent x264 videos as source. Preferably in MKV container.
lansing
8th September 2011, 06:49
i like to request a reload script function, so i don't have to reopen the program every time when I try to install a missing dll file
Dogway
8th September 2011, 10:24
Development is pretty much idle, that's a feature I listed long ago in my request post. But in the case you don't use the sliders you can drop your plugin in the folder and use it without a program restart.
Mounir
15th September 2011, 02:50
I am getting really tired of these errors i get below. I preview a video, i close the preview then back to preview and !BAM! error-in-your-face i must forcefully close avsp, really annoying. Or the same happens if i go back and forth 2 scripts (2 different tabs indeed) but contains the same video.
AppName: avspmod.exe AppVer: 2.2.0.0 ModName: unknown
ModVer: 0.0.0.0 Offset: 0b450000
AppName: avspmod.exe AppVer: 2.2.0.0 ModName: unknown
ModVer: 0.0.0.0 Offset: 0ff70240
AppName: avsp.exe AppVer: 2.0.2.0 ModName: unknown
ModVer: 0.0.0.0 Offset: 0fe10240
LigH
15th September 2011, 08:35
AvsPmod is not to be blamed if the decoder is unstable, e.g. not "reentrant" - not programmed to be used more than only once at the same time.
Zarxrax
15th September 2011, 21:18
What kind of video are you trying to load?
Mounir
15th September 2011, 21:23
it's an mpe2 and i use Dgimultisource (DGindexNV)
blindbox
18th September 2011, 04:23
Any chance for a 64-bit edition? As for now you have to preview your avs script in 32-bit, then try a 64-bit player to try see if it works for Avisynth x64.
Zarxrax
18th September 2011, 14:42
No chance, unless someone wants to contribute a patch.
DarkT
19th September 2011, 00:15
Any chance for a 64-bit edition? As for now you have to preview your avs script in 32-bit, then try a 64-bit player to try see if it works for Avisynth x64.
+1
I would REALLLLLLY love this at x64.. Or maybe a suggestion for other way to insta-preview script... and ability to switch between windows of preview on x64...
Mounir
7th October 2011, 00:13
What is causing the error i get (see below) and how to fix it thanks:
Exception WindowsError: 'exception:
access violation reading 0x0EE9BEB0 in
bound method PIscriptEnvironment._del_of < avisytnh.PIscriptEnvironment instance at
0x01EA4E40>> ignored
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.