Log in

View Full Version : AvsPmod 2.5.1


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26

fvisagie
3rd March 2014, 17:18
Huh, nice to know. But it's not immediately usable in case of new scripts (e.g. you drag'n'drop a video onto avspmod's titlebar or tabbar), so I guess avspmod should set working dir of new scripts to the first file being drag'n'dropped - at least if [***] template was used for the file.

While on the topic of templates, did you check on the computers where drag-and-drop didn't work that their templates were configured the same as those where it worked?

bxyhxyh
5th March 2014, 13:06
One bug here.
Error parsing plugin string at position 0:
This error is appearing when I use AVS+. My OS is Windows 8.1 Pro

darkelf5
3rd April 2014, 22:49
Downgrading wxpython and wxgtk to 2.8.12.1 and extracting libffi.so.6.0.1 from libffi-3.0.13-1, and then

running AvsPmod with LD_PRELOAD=./libffi.so.6.0.1 python2 ./avsp.py worked for me on Arch, but it's way too dirty solution.

Anakunda
6th April 2014, 21:20
HI!
I was forced to reinstall Windows, on new system I reinstalled avisynth and copied Avspmod to old dir. On startup it now throws some cryptic nonmodal error window saying "Error parsing plugin string at position 0:".
Then avsp works normally except some macros invoke error window like this:
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.pyo", line 808, in __bootstrap_inner
File "threading.pyo", line 761, in run
File "<string>", line 11, in worker
File "pyavs.pyo", line 682, in __init__
File "pyavs.pyo", line 109, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 44: ordinal not in range(128)
Avisynth is installed and working, basic directshow decoders are installed too, Python 2.7.5 is installed
Any idea what's wrong? Thanks

vdcrim
7th April 2014, 19:26
"Error parsing plugin string at position 0:".

UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 44: ordinal not in range(128)

Sounds like two things that have been fixed since v2.5.1. Probably you were using this more up to date library.zip (http://www.mediafire.com/download/rgkd1xijrxhvaq0/library.zip) before the reinstall.

Python 2.7.5 is installed
It's not necessary to install Python when using the builds.

Downgrading wxpython and wxgtk to 2.8.12.1 and extracting libffi.so.6.0.1 from libffi-3.0.13-1, and then

running AvsPmod with LD_PRELOAD=./libffi.so.6.0.1 python2 ./avsp.py worked for me on Arch, but it's way too dirty solution.
Nice I guess that there's a workaround for 64-bit. The issue is a limitation in (yes) libffi. I've written new python bindings for avisynth+ (avisynth interface 5) that also bypass the problem, but they're still lying around here waiting for the day I get in the mood of rewriting them for avxsynth (interface 3). Oh well, I'll commit it as it is through this week so at least avisynth+ users can play around.

Anakunda
2nd May 2014, 10:07
Sounds like two things that have been fixed since v2.5.1. Probably you were using this more up to date library.zip (http://www.mediafire.com/download/rgkd1xijrxhvaq0/library.zip) before the reinstall.

Hello, thanks for the suggestion, problem is partially solved by installing newer library but I still get an error running any of the commands from Macros menu:

Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.pyo", line 808, in __bootstrap_inner
File "threading.pyo", line 761, in run
File "<string>", line 22, in worker
File "pyavs.pyo", line 809, in DrawFrame
AttributeError: 'int' object has no attribute 'GetHDC'

vdcrim
2nd May 2014, 17:31
I still get an error running any of the commands from Macros menu:

Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.pyo", line 808, in __bootstrap_inner
File "threading.pyo", line 761, in run
File "<string>", line 22, in worker
File "pyavs.pyo", line 809, in DrawFrame
AttributeError: 'int' object has no attribute 'GetHDC'

It can't be with 'any' macro. As there're not many of them, I'd guess that the one that gives you that error is an old version of Create GIF with ImageMagick (https://github.com/vdcrim/AvsP-macros/blob/master/Create GIF with ImageMagick.py).


...I'll commit it as it is through this week...
Sorry about this, definitely I'll commit it this weekend.

Anakunda
2nd May 2014, 17:34
I'd guess that the one that gives you that error is an old version of Create GIF with ImageMagick (https://github.com/vdcrim/AvsP-macros/blob/master/Create GIF with ImageMagick.py)

Yes, very similar command "Save bookmarks to images". Didn't try all commands from macros menu but I guess all of them use similar python scripts.

vdcrim
2nd May 2014, 17:38
Save bookmarks to images
You can delete that macro script. It was merged time ago with Save Image Sequence, use that instead.

JonF
3rd May 2014, 14:56
:helpful: I can't help in the programming, but you've gotta admit that the icon is horrible. So I copied it in all available resolutions. See AvsP.ico (https://mega.co.nz/#!alIVRJyB!xzCZ6K35FHNj0yAU2xWlK95iJK6JmRhjnYb2v8iq-F0). I can't add it to the existing executable.

fvisagie
16th May 2014, 14:36
Good day all,

Where can I download the latest library.zip from? The one in http://www.amvhell.com/avspmod/AvsPmod_v2.5.1.zip is dated 2013/06/25, but a significant number of commits (https://github.com/AvsPmod/AvsPmod/commits/master) have been made since.

Is there an avsp function for setting a tab's name yet? It would be quite handy to distinguish between temporarily created new tabs. E.g., in the following case it would help to name the tab after the text selected:
# This opens a new tab and previews the current selection

######
trimmed = avsp.GetSelectedText()
originaltext = avsp.GetText()
avsp.NewTab(copyselected=False)
avsp.SetText(originaltext+'\n'+trimmed, index=None)
avsp.ShowVideoFrame(framenum=0)
#####


Thanks,
Francois

fvisagie
17th May 2014, 11:37
Thanks a lot.

fvisagie
17th May 2014, 11:53
PS. Any news on an avsp function that macros can use to identify newly created tabs?

MichaelRow
17th May 2014, 14:59
As my own laptop is currently fubar'd, I ended up testing AvsPmod 2.0.5 in wine just for the sake of it on a random university workstation (it has for a long time been an application "that just won't work" on wine). And 'lo and behold! It actually started (pic (http://img441.imageshack.us/img441/117/avsponlinux.png))!

The editor functionality (at least the basics of it) seem to work, and the application doesn't seem to crash with trying to plug the preview in or anything like that. The worse side is, the preview doesn't actually seem to work. It gives out random colors on different frames. So close, yet so far...


On the contrary, the preview area works well on OS X under wine, but it would crash if I edit the script(screen shot (https://drive.google.com/file/d/0B3qFoec7GpBxZGhYYVRKS1FjaUk/edit?usp=sharing)).
I just wondering if it's possible to make the editor work.

ps. The editor works if I disable the autocomplete and tips in Options-program settings-text.

lansing
20th May 2014, 07:20
I found a bug while using the crop editor with zoom.
My video is 1920x1080, I opened crop editor, and then right click preview to zoom 200%. After that when I click on any bottom part of the preview, the editor is cropping me wrong number and the image just jump up in the panel.

foxyshadis
23rd May 2014, 08:52
I updated my library and now I get a popup error instead of a meaningless parsing error:
mt_masktools-26.dll

Above plugin names contain undesirable symbols. Rename them to only use alphanumeric or underscores, or make sure to use them in short name style only.

I understand the message, but it's not very helpful to most people. It's such a corner case for most users that they should never even see it; it would make sense to put an alert in a log or the status bar instead. In the meantime I'll submit a patch to the avisynth+ guys if they care to work around it (by dropping symbols from the long name).

Motenai Yoda
3rd June 2014, 23:34
an option for change theme to 50% grey or darker?

wOxxOm
3rd June 2014, 23:47
Motenai Yoda, menu -> Options -> Fonts and colors -> Select a predefined theme
You can also change video preview background: rightclick the video preview -> Background color.

Motenai Yoda
4th June 2014, 14:01
Motenai Yoda, menu -> Options -> Fonts and colors -> Select a predefined theme
You can also change video preview background: rightclick the video preview -> Background color.

I have nothing of this in 2.5.1, what version?

edit ok found it into lastest!

wOxxOm
4th June 2014, 14:05
I have nothing of this in 2.5.1, what version?
From the first post in this thread: Pre-release r426 Windows build (http://files.line0.in/builds/AvsPmod-2.5.1-r426-x86-04874ed.7z)

vdcrim
4th June 2014, 15:06
That build is not a "pre-release", but a regular build from git. As with any of the other updates through this thread, take it as a work in progress.

There has been no development for the last few months, but I'll try to wrap things up and release the next version through this month.

fvisagie
9th June 2014, 10:05
I get this with the 2.5.1 build downloaded here (http://forum.doom9.org/showthread.php?p=1679758#post1679758).


Click Video.Release all videos from memory
Uncheck Options.Program settings.Video.Focus the video preview upon refresh
Open or create a clip with 3 or more frames
Click Video.Refresh preview
Note the frame count and duration displayed
Change the frame count by e.g. appending Trim(0, Ceil(FrameCount()/2)) to the end of the script
Click Video.Refresh preview
Note the frame count and duration staying the same
Move the mouse over the preview; note the frame count and duration getting updated

Frame count and duration are updated immediately upon refresh when Focus the video preview upon refresh is enabled (this move in focus is of course not always desirable, hence the existence of this option).

TT1
17th June 2014, 15:16
First off I must say that AvsPmod is one fantastic little program. I'm pretty much a beginner with this, so a tool like AvsPmod with its error checking and preview capabilities makes working with AviSynth much easier. I'm finding that AvsPmod/AviSynth and FFmpeg is all I need for my NLE and rendering needs. Thanks.

The only issue I've found to be a problem is when running a video preview. It runs okay once started, but, quite often, trying to stop or pause it doesn't work well. There have been occasions (with long clips or low fps) that I've had to resort to TaskManager to kill the process so as to not have to wait for the entire clip to play through. The problem is even more prevalent when using the spacebar to start and stop. Anyway, just thought I'd report the issue. Of course, it might just be a problem with my ancient XP laptop...

videoFred
7th July 2014, 11:31
EDIT: problem solved as you can see in the AutoAdjust thread

Hello,

I'm using AutoAdjust with AvsPmod.

But first: what an awesome filter is this! Finaly we have a good working autolevels and autowhite filter.
I'm using it all the time now and it does miracles with old 8mm film capturings.

Second: AvsPmod is great too! Finaly we can use sliders for setting filter parameters!

But I have an annoying problem, let me explain:

I have made AvsPmod sliders to create variables:
autoad_gamma = [<"autoadjust gamma limit", 1.0, 2.0, 1.5>]
autoad_dark = [<"autoadjust dark limit", 1.0, 2.0, 1.3>]
autoad_bright = [<"autoadjust bright limit", 1.0, 2.0, 1.1>]
autoad_pixels = [<"autoad exclude pixels", 0.0, 1.0, 0.1>]
autoad_chroma = [<"chroma process", 0, 200, 200>]
autoad_wb = [<"autoadjust white balance", 0.0, 1.0, 0.9>]
autoad_mode = [<"0= contrast 1 =levels", 0, 1, 1>]

Then I'm using these variables to set the parameters in AutoAdjust:
clip2 = clip1.AutoAdjust(auto_gain=true,dark_limit=autoad_dark,bright_limit=autoad_bright,gamma_limit=autoad_gamma,dark_exclude=autoad_pixels,bright_exclude=autoad_pixels,
gain_mode=autoad_mode,chroma_process=autoad_chroma,input_tv=false, output_tv=false,auto_balance= true, chroma_limit = 2.0, balance_str= autoad_wb, high_quality=true,debug_view=true)

Everything works like a charm except for one parameter: the white balance (balance_str). Sometimes I do not see the effect of this parameter in the AvsPmod preview. However, when I change the slider (autoad_wb), the script is updated immediately like it should be. It can be loaded in VDub and everything is fine. Only the AvsPmod preview is -sometimes- not updating. Strange enough, the updating works fine for all other parameters.

If I do not change any values with the sliders at all, and just use the refresh preview shortcut in AvsPmod (f5), then sometimes the white balance is gone, then again back, completely random.

Where do I have to find the solution for this problem? Is this an AvsPmod issue or an AutoAdjust issue? A Memory buffer not resetting or something?

Anyhow, I have posted this on both the AvsPmod and the AutoAdjust thread.

Thank you all in advance for having a look at this annoying problem and many greetings from Belgium,

Fred.

gnol009
18th July 2014, 05:59
Anyone know Avspmod can preview video with avisynth+ and fffms 2.20 64bit?
I also try 3 times and always got error "There no function named 'FFvideoSource'"
Of course my C:\Program Files (x86)\AviSynth+\plugins64+ has 3 files ffms2.dll, FFMS2.avsi and ffmsindex.exe

sl1pkn07
18th July 2014, 06:02
try in C:\Program Files (x86)\AviSynth+\plugins64 (without +)

gnol009
18th July 2014, 07:00
try in C:\Program Files (x86)\AviSynth+\plugins64 (without +)

Ty but same error :D

LigH
18th July 2014, 07:23
AvsPmod will most probably be a 32 bit application, using 32 bit AviSynth. So why should it use 64 bit plugins?

gnol009
19th July 2014, 09:56
Why not? I'm successful with avisynth+64 and DirectShowSource.

AVSMeter 1.7.9 (AVS 2.6, x64) by Groucho2004
AviSynth+ 0.1 (r1576, x64)

Number of frames: 4200
Length (hhh:mm:ss.ms): 000:02:55.175
Frame width: 1280
Frame height: 534
Framerate: 23.976 (10000000/417083)
Colorspace: YV12

Frames processed: 4200 (0 - 4199)
FPS (min | max | average): 134.8 | 1977 | 329.4
CPU usage (average): 50%
Thread count: 20
Physical Memory usage (peak): 87 MB
Virtual Memory usage (peak): 107 MB
Time (elapsed): 000:00:12.751

Mthit
21st July 2014, 01:37
Hi guys, I use win 7 pro and I have this error when I try to open AvsPmod:
Problem signature:
Problem Event Name: APPCRASH
Application Name: AvsPmod.exe
Application Version: 2.5.1.0
Application Timestamp: 49180193
Fault Module Name: wxbase28uh_vc.dll
Fault Module Version: 2.8.12.1
Fault Module Timestamp: 4e2114a2
Exception Code: c0000005
Exception Offset: 0003c623
OS Version: 6.1.7601.2.1.0.256.48
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

How can I fix it? Thanks!!!

vdcrim
21st July 2014, 22:30
I have this error when I try to open AvsPmod
Check if there's an error_log.txt file on the AvsPmod directory with relevant info. If not, try doing the usual things:
- Make sure that the AvsPmod files aren't for some reason corrupted
- Check that AviSynth works ok on another programs, and if not start by taking out the plugins from the autoload directory
- Make sure your system is up-to-date, including drivers
- Check your filesystem and memory for errors

It might be also worth to try switching the locale to English, just to discard things.

Floatingshed
22nd July 2014, 08:33
Hi,
I've been using AVSPmod for years on Win XP and I'd be lost without it, so thank you!

I am in the process of moving to win 7 (for hardware reasons only) and I find that AVSPmod doesn't work for me. It goes into the list of active programs with about 40mb of memory used but, no GUI, nothing. I've tried all the different compatibility modes.

It is a clean install of win 7, are there dependencies that I may have missed?

Thanks.

fvisagie
22nd July 2014, 09:03
When I experienced something similar, deleting an AvsPmod house-keeping file fixed it for me. If I remember correctly it was one or both of _last_session_.ses and options.dat.

Floatingshed
22nd July 2014, 09:18
When I experienced something similar, deleting an AvsPmod house-keeping file fixed it for me. If I remember correctly it was one or both of _last_session_.ses and options.dat.

Thanks for the info... but this is a fresh, clean install. The files you mention haven't been created yet!

fvisagie
22nd July 2014, 10:40
Understood, but not so fast... ;). If I remember correctly, part of the problem at the time was also caused by the fact that AvsPmod tried to write those files. Usually one creates the AvsPmod folder underneath "C:\Program Files..." which since around Windows 7 is protected against user-mode program modification. Reaching a bit now, but I think that was solved by running AvsPmod with elevated privileges once or twice, after which I could use it normally.

Floatingshed
22nd July 2014, 22:06
This is driving me nuts!

I moved the avsp folder into the root of C: still the same result, a few seconds of "I'm thinking" then nothing, but it is listed in processes in task manager.

vdcrim
22nd July 2014, 22:26
As fvisagie said is likely that the issue here is that you don't have write permissions to the AvsPmod directory. That's the case of both %SystemDrive% and %ProgramFiles%. So either change the permissions yourself or move it somewhere else. I have a directory "C:\Portable apps" for this kind of applications that don't use %AppData%.

Floatingshed
22nd July 2014, 23:53
Thanks for the help.
After moving avsp to its own partition, still with no joy, I started looking elsewhere.

An uninstall and re-install of avisynth fixed it, should have considered it earlier but its the first time I've ever had a problem with it.

All is now working. Phew!

Thanks again.

foxyshadis
23rd July 2014, 06:01
One thing to note: Moving a folder doesn't reset permissions on it, even when those permissions are inherited. You have to manually uncheck and recheck inherit permissions in the advanced security tab. A pain in the ass if you move folders often on a shared drive, and I normally just reinstall programs and manually delete their old folder for that reason. Glad you got it sorted regardless.

creaothceann
23rd July 2014, 17:22
Moving a folder doesn't reset permissions on it, even when those permissions are inherited.

It does if the partition is a FAT32 one. ;)

JonF
17th August 2014, 16:53
Suddenly when I right-click in the window to the right of the preview, there's no pop-up. I have to pick Video | <whatever> from teh top menu. I can't find any setting that seems to control this. It's a minor annoyance but I'd like to fix it.

vdcrim
18th August 2014, 13:09
If you mean the toggleable slider sidebar, that's the expected outcome. The video menu only pops-up for the video preview.

Keiyakusha
26th September 2014, 11:12
Is it possible to make "Toggle preview placement" option to be permanent? Currently I need to set it each time I restart AVSPmod.

Keiyakusha
26th September 2014, 11:47
vdcrim
BTW, I'm using r426 Windows build. In case you forgot, this bug that I reported almost a year ago seem to be still there:

Basically if we use mouse wheel to scale, small parts of the image are missing. It starts at 2x zoom. Test image (https://dl.dropboxusercontent.com/u/110558786/Report/AvsPmod_scaling_bug_test.png).
https://dl.dropboxusercontent.com/u/110558786/Report/AvsPmod_scaling_bug.png

Personally I'd like to see it displaying not only the full image, but also some gap, like in case with left and top sides:
https://dl.dropboxusercontent.com/u/110558786/Report/AvsPmod_scaling_bug_request.png

wOxxOm
26th September 2014, 16:43
Is it possible to make "Toggle preview placement" option to be permanent? Currently I need to set it each time I restart AVSPmod.

I think it was fixed a long time ago, at least here it remembers the option.

Keiyakusha
26th September 2014, 16:59
I think it was fixed a long time ago, at least here it remembers the option.

Just checked on clean r426 Windows build...
If "remember session" option is checked, it also remembers preview placement option. Probably this is what you mean?
But I always have "remember session" unchecked. I want preview to be at the right side no matter what I open, how and when.

wOxxOm
26th September 2014, 17:36
Keiyakusha, thanks, now I see what you want: the option should be stored separately.

P.S. If you don't want to wait until it's implemented you can edit the latest avsp.py (https://github.com/AvsPmod/AvsPmod/archive/master.zip) and change the hardcoded preview placement on line 7069 (https://github.com/AvsPmod/AvsPmod/blob/00addd76e61cff9db6ef9ab44cbc79d1f7162ba7/avsp.py#L7069) to wx.SPLIT_VERTICAL. Put it into library.zip and delete avsp.pyo that's in there. A few files updated since r426 also need to be replaced with the latest files from git: avisynth.py, avisynth_cffi.py, i18n.py, pyavs.py, wxp.py. The corresponding .pyo in library.zip should be simply deleted. You'll also have to add platform.py from python 2.7 source (https://hg.python.org/sandbox/2.7/raw-file/8552f3031753/Lib/platform.py). Or use the final library.zip (https://www.dropbox.com/s/euteka8oglrcgem/library.zip) made by yours trulee.

vdcrim
26th September 2014, 18:13
Is it possible to make "Toggle preview placement" option to be permanent? Currently I need to set it each time I restart AVSPmod.
Just checked on clean r426 Windows build...
If "remember session" option is checked, it also remembers preview placement option
The setting only changes the placement for the current session. The idea was that a specific placement might be preferable depending on video resolution, so this setting is saved on session files. But it's true that the default on a new empty session is bottom, I'll change it to last session's.

In case you forgot, this bug that I reported almost a year ago seem to be still there. Basically if we use mouse wheel to scale, small parts of the image are missing.
As I told you back then it's a bug on the framework and it's fixed on their next version. However it includes also some new bugs / changes that last time I couldn't get past.

Personally I'd like to see it displaying not only the full image, but also some gap

The preview already has a margin, but note that the scrollbars appear on top of the image, margin included. I don't think that it would be possible to add a gap between image and scrollbars.

Keiyakusha
26th September 2014, 18:31
Keiyakusha, thanks, now I see what you want: the option should be stored separately.

Oh, yeah. Well I never knew it depends on "remember session". I just discovered it myself =)
Also thanks for the update!

The setting only changes the placement for the current session. The idea was that a specific placement might be preferable depending on video resolution, so this setting is saved on session files. But it's true that the default on a new empty session is bottom, I'll change it to last session's.
I see, usually I have pretty long scripts that fill the entire screen. But they aren't that wide. So having video always at the right side really helps.


As I told you back then it's a bug on the framework and it's fixed on their next version. However it includes also some new bugs / changes that last time I couldn't get past.
It's fine. I thought maybe something have changed since that time and posted it just to remind you..


The preview already has a margin, but note that the scrollbars appear on top of the image, margin included. I don't think that it would be possible to add a gap between image and scrollbars.
Hmm, apparently there is a margin, but this margin is kinda small compared to the left and top ones. For example here (https://dl.dropboxusercontent.com/u/110558786/Report/AvsPmod_margin.png) is screenshot without bottom scrollbar. 200% scale through context menu.
Edit: Scratch that. This looks to be another case of this bug with scaling. I just never noticed it also affects 2x zoom when using context menu.

vdcrim
26th September 2014, 18:39
Hmm, apparently there is a margin, but this margin is kinda small compared to the left and top ones.
It seems the margin is smaller than it should when the scrollbar is shown, I'll take a look at it.