View Full Version : AvsPmod 2.5.1


Pages : 1 [2]

StainlessS
25th September 2013, 16:26
@BiOSsCZ, Check your script or your added macros for an odd character. Could also post script here.
EDIT: I think I've also seen similar 'bad character range' errors in this thread if an odd character is used in a dll filename, eg '-'.
Filename nodes should only be Alpha Numeric, underscore '_' and dot for extension.

@jtan2000, 'avs_delete_script_environment' added in avisynth v2.6a4+ I think, perhaps you are using an earlier version ie v2.6a3 or earlier.

(JFYI, v2.6a4 and earlier, no longer supported v2.6 versions).

steptoe
29th September 2013, 09:12
Has anybody written avsp plugin functions for the filters despot and also descratch

I've tried to create them myself to add to the wiki database but there are quite a few parameters I'm getting lost in creating the sliders


http://avisynth.org.ru/despot/despot.html

http://avisynth.org.ru/descratch/descratch.html

Many thanks

sl1pkn07
29th September 2013, 23:15
latest git make segfault for me (archlinux 64bits)

http://sl1pkn07.no-ip.com/paste/view/14c07bdb

greetings

manma
14th October 2013, 05:53
Can't seem to launch without a segfault either. I'm on Ubuntu 13.10.

vdcrim
15th October 2013, 17:58
Can't seem to launch without a segfault either. I'm on Ubuntu 13.10.
Works here with Ubuntu 13.10 beta 2 and wxPython 2.9.5, but I'm not particularly surprised as wxPython on *nix seems a bit buggy (both 2.8 and 2.9).

In case you're also considering Wine, I'll let you know that the preview works but it still crashes for me on autocomplete as of Wine 1.7.

ultim
15th October 2013, 22:58
Hi vdcrim, I was wondering if I could ask you a small modification to AvsPmod to fully support Avisynth+. I'd really do these myself, but I don't know any phyton.

In the latest build I've publiushed today, I've added back the $PluginFunctions$ and $InternalFunctions$ variables based on the new plugin system. A small modification to AvsPmod would be needed, because Avisynth+ supports specifying plugin directories inside .avs scripts, so it cannot export $PluginFunctions$ without having run a script. $InternalFunctions$ is not affected and will work just like with traditional Avisynth. But $PluginFunctions$ is exported only when autoloading finally happens, and autoloading happens on demand when a script calls a not-yet-known function. So I've come up with the following way, that supports both classic Avisynth and Avisynth+.

1. After having loaded a script and executed a frame, call AutoloadPlugins() using Invoke. AutoloadPlugins() will do nothing if autoloading already happened, e.g. when the script already caused Avs to load plugins. But a script might only use internal functions, in which case you need to force loading plugins using AutoloadPlugins(), to make $PluginFunctions$ available. After the script has run at least once, there is no harm in calling AutoloadPlugins multiple times, so just call it in every case and you'll have $PluginFunctions$.
2. Also call AutoloadPlugins() on startup. This is so that the user can have a list of plugin functions even when he has no script yet.
3. After each call to AutoloadPlugins(), load/parse $PluginFunctions$ (and also the Plugin!..!Param vars if you make use of them). Their format has not changed.
4. Each time before loading a a script, Avisynth's script environment should be closed and recreated, so that different versions of the same script cannot interfere with each other's plugin search paths. I think AvsPmod is already doing this, so there might be nothing to do here.

The only thing to watch out for is that AutoloadPlugins() only exists in Avisynth+, not in classic Avisynth. So before calling it, check for its availability (avs_function_exists), to prevent classic Avisynth throwing exceptions at you.

It'd be great if you could make these modifications, and thank you.

vdcrim
16th October 2013, 01:47
Changes done. For now $PluginFunctions$ is retrieved only on start-up (definitions of functions added by calling AddAutoloadDir, LoadPlugin etc. are not added to the database).

Here's a new library.zip (http://www.mediafire.com/download/rgkd1xijrxhvaq0/library.zip) for anyone interested (overwrite the one on the lib subdirectory). It should also fix the crash reported in #1003 (http://forum.doom9.org/showpost.php?p=1645251&postcount=1003)

Edit: small update for AviSynth+ 2013.10.16

ultim
16th October 2013, 18:00
Changes done. For now $PluginFunctions$ is retrieved only on start-up (definitions of functions added by calling AddAutoloadDir, LoadPlugin etc. are not added to the database).

Here's a new library.zip (http://www.mediafire.com/download/rgkd1xijrxhvaq0/library.zip) for anyone interested (overwrite the one on the lib subdirectory). It should also fix the crash reported in #1003 (http://forum.doom9.org/showpost.php?p=1645251&postcount=1003)

Thank you for the awesome quick update!

sl1pkn07
25th October 2013, 17:48
hi

i have installed 2 versions of wxpython (2.8 and 2.9) in my linux (ver 2.9 have surfix in name to avoid collisions with 2.8 version)

howto launch avspmod with selected one or other?

greetings

vdcrim
25th October 2013, 18:09
Paste this at the top of avsp.py:
import wxversion
wxversion.select('2.8')

sl1pkn07
25th October 2013, 18:32
thanks man

i tested avspmod with both version, still segfaulting like http://forum.doom9.org/showpost.php?p=1646058&postcount=1006

:(


greetings

lansing
26th October 2013, 21:08
Hi, I've switch to the Avisynth+ version and I'm getting error messages loading scripts.

I'm using Windows 7 64bit and I'd put the 32bit avisynth.dll in to sysWOW64 folder.
I got "Error parsing plugin string at position 0:" on avspmod startup, and when I try to load a video, I'll get this error message:

Traceback (most recent call last):
File "avsp.pyo", line 5448, in OnIdle
File "avsp.pyo", line 13786, in ShowVideoFrame
File "avsp.pyo", line 14298, in UpdateScriptAVI
File "pyavs.pyo", line 682, in __init__
File "pyavs.pyo", line 155, in __init__
File "avisynth.pyo", line 244, in GetVar
avisynth.AvisynthError: NotFound

vdcrim
26th October 2013, 22:02
Read a few posts above.

Keiyakusha
14th November 2013, 17:06
vdcrim
There seem to be some kind of bug with high zoom with odd numbers like 9x, 11x or more. Part of the image from the right side (haven't checked bottom) gets cut off even if you move the slider is all the way to the right.
Also small feature request. Maybe you can add some kind of (optional) border around the video frame so that it will be easier to see where the video ends and where the GUI begins. Some equivalent to Addborders(8,8,8,8). The reason for that is with some video/system colors combinations it's not really obvious whether you look at video or at the windows form (unless you'll make zoom high enough for the pixels to be huge.
The reason I want it in avsp instead of using mentioned addborders is that personally i'll have this feature turned on always, also addborders gives not very accurate results possibly due to it being included into yuv-rgb conversion by avspmod.

vdcrim
14th November 2013, 17:37
There seem to be some kind of bug with high zoom with odd numbers like 9x, 11x or more. Part of the image from the right side (haven't checked bottom) gets cut off even if you move the slider is all the way to the right.
Can you give me a source resolution for which it happens? I can't reproduce it.

Also small feature request. Maybe you can add some kind of (optional) border around the video frame so that it will be easier to see where the video ends and where the GUI begins. Some equivalent to Addborders(8,8,8,8). The reason for that is with some video/system colors combinations it's not really obvious whether you look at video or at the windows form (unless you'll make zoom high enough for the pixels to be huge.
Currently there's a 5 px border, that as you said follows the current theme, but I can add a setting for choosing a custom color. Try this demo (http://www.mediafire.com/download/4iqp3it5i25uaf7/library_black_background.zip) (rename to library.zip and place it in the lib subdirectory) with background hard-coded to black.

Keiyakusha
14th November 2013, 18:07
Can you give me a source resolution for which it happens? I can't reproduce it.
720x480. Here try this. (https://dl.dropboxusercontent.com/u/110558786/Temp1/avspmod_test.png)
If I open avspmod, drag-n-drop the image, toggle video preview (embedded mode), set soom to 11x, move slider all the way to the right -> I don't see the "rainbow" at all. With 9x I only see it starting from blue color.


Can you give me a source resolution for which it happens? I can't reproduce it.

Currently there's a 5 px border, that as you said follows the current theme, but I can add a setting for choosing a custom color. Try this demo (http://www.mediafire.com/download/4iqp3it5i25uaf7/library_black_background.zip) (rename to library.zip and place it in the lib subdirectory) with background hard-coded to black.
I believe even border width depends on the windows theme. Thanks I'll try a bit later.

vdcrim
14th November 2013, 18:49
Here try this
Thanks. Apparently a bug on the gui framework that AvsP uses, but it's fixed on their going stable anytime now development series that the next AvsPmod release will probably use.

Keiyakusha
14th November 2013, 22:50
vdcrim
So I checked black background demo. While this is indeed what I had in mind, I think it might be beneficial to have some more neutral color. I at first I thought about option to change background color, but now I think maybe something like this (https://dl.dropboxusercontent.com/u/110558786/Seiga/86C1A534.png) is possible? (this is nothing more than photoshoped image, unfortunately). Of course if you think it looks any good. Personally I think it does looks nice.

vdcrim
14th November 2013, 23:39
So I checked black background demo. While this is indeed what I had in mind, I think it might be beneficial to have some more neutral color...
Yep, that's what I called it a demo :D. Here's the latest development library.zip (http://www.mediafire.com/download/rgkd1xijrxhvaq0/library.zip) with a new option in program settings -> video.
...but now I think maybe something like this is possible?I also think a pattern looks better, but it seems is not accepted as a clearing brush.

wOxxOm
14th November 2013, 23:43
That black background mod is quite cool for a change.
And it'd be awesome to be able to change the bg color via context menu à la photoshop (http://puu.sh/5iuIL/1dfe3debdd.png).

vdcrim
15th November 2013, 02:32
it'd be awesome to be able to change the bg color via context menu à la photoshop.
Link above updated, adding a video -> background color submenu and with the new option in program settings removed.

Keiyakusha
15th November 2013, 13:45
vdcrim
Hey, thanks for the update!

Also I seem to found some other issue. Here (https://dl.dropboxusercontent.com/u/110558786/Temp1/000946.7z), open this with Imagereader(). This is just a single YUV frame.
Now look at the 2 pixels from the left - they have some yellow and blue colors (https://dl.dropboxusercontent.com/u/110558786/Temp1/35FE9D5F.png).. b-but this frame does not have chroma information! Looks like it only affects left side of the image.

TurboPascal7
15th November 2013, 14:12
This is not an avspmod bug, at least I'm unable to reproduce it with avs+ (it's here with normal a5). No idea what fixed it though since I'm pretty sure ultim didn't modify YUV -> RGB24 conversion.

Keiyakusha
15th November 2013, 14:15
It doesn't happens if i open it in virtualdub for example.
Edit: or if i add converttorgb32() at the end. So this have to be something with avspmod.

TurboPascal7
15th November 2013, 14:20
It's related to ConvertToRGB24 in some way, which avspmod calls internally for YUV frames. This color bug won't appear if you convert the video manually to RGB32 for example. So it's a bug in avisynth and not avspmod.

vdcrim
15th November 2013, 14:24
It happens here with v2.6.0 alpha 5, but not with v2.5.8 or avisynth+.

Keiyakusha
15th November 2013, 14:27
Yeah true. It does happens with ConvertToRGB24 but not 32. So the possible fix is to use rgb32? I was always told that rgb32 conversion always should be preferred to rgb24 cause it's faster. Though its not some critical issue, I just found it interesting. Later I'll check previous v2.6.0 alpha releases and roll-back to that if some of them don't have this bug.

wOxxOm
15th November 2013, 15:46
I was always told that rgb32 conversion always should be preferred to rgb24 cause it's faster.AFAIK this is the reason why truecolor display modes are 32-bit rgb (on windows at least).Though its not some critical issue, I just found it interesting. Later I'll check previous v2.6.0 alpha releases and roll-back to that if some of them don't have this bug.
I think it won't harm AvsPmod to use ConvertToRGB32 instead of ConvertToRGB24 in pyavs.py.
At least no problems surfaced during my quick test, it even fixed the yellow-and-blue-colors-on-avs-2.6 bug mentioned above.

vdcrim
15th November 2013, 16:30
I was always told that rgb32 conversion always should be preferred to rgb24 cause it's faster.

AFAIK this is the reason why truecolor display modes are 32-bit rgb (on windows at least).

I think it won't harm AvsPmod to use ConvertToRGB32 instead of ConvertToRGB24 in pyavs.py.
At least no problems surfaced during my quick test, it even fixed the yellow-and-blue-colors-on-avs-2.6 bug mentioned above.
Interesting. I'll change it to ConvertToRGB32 then. It converted to RGB24 because DrawDib doesn't support transparency anyway.

LigH
15th November 2013, 16:31
32 bit modes should be faster due to the 32 bit alignment in memory and CPU register operations; and it's not only in Windows, Linux drivers will prefer 32 bit modes too (but there are tools which only report the visible 24 bit, so you may accidently enforce 24 bit modes if you select a video mode from a control).

DIB functions will probably ignore the "alpha" byte; more elaborate user interfaces may use it as opacity factor with an available background...

mastrboy
16th November 2013, 17:05
Hoping for some macro/python help for a macro function I'm trying to get make for avspmod:

The functionality I'm after is a input box where i can input a frame number and avspmod will navigate to the corresponding frame but, the frame before a a 29.970 -> 23.976 fps decimation.
The thing I need help with is the math of the function to calculate the frame number. (If it ends up being a decimated frame, it should go to the closest neighboring frame)

The explaination might be a little lacking so I'll provide an example of what I'm trying to achieve:
- I input frame 6 and click OK, avspmod should navigate to frame 12.

Keiyakusha
16th November 2013, 19:06
mastrboy
Not sure if I understand. You enter frame 6 that corresponds to 23.976 fps, but your opened video is 29.970 and you want to see the frame you have in mind?
I guess it's x*1.25 where x is your input. But if your input frame is from the source decimated by lets say TDecimate, your results maybe off by a few frames here or there.

For example frame 123 in 23.976 fps is a frame 154 in 29.970

mastrboy
16th November 2013, 22:04
If I understood your post right, what I'm looking for is the opposite.

Consider this script:
Sourcefilter(videofile)
TFM()
Tdecimate()

Now, the source would be hard/soft pulldown 29.970 fps
But after Tdecimate, it would be 23.976

I'm trying to write a python macro that lets me input a frame number which should calculate the source frame after decimation and point go to the nearest/same frame in the avspmod timeline.

Considering my awful explanation about my "problem", let's try another example:
Source = 29.970 fps

script in avisynth =
Sourcefilter(videofile)
TFM()
Tdecimate()

After decimation and encoding file, is now 23.976 fps.

Looking at the log file from TFM after running tfm(output=test.log), let's say frame 26 and 99 was deinterlaced because their combing threshold exceed 80 (TFM defaults MI value).
Now, I want to check out how that frame turned out, but after decimation frame 26 and 99 isn't frame 26 and 99 anymore, they are located at a different number, and that number is what I'm trying to calculate...

wOxxOm
17th November 2013, 06:21
mastrboy, multiply by 0.8 then.

But there's another cool way of checking those frames actually:

generate tfm log (you already have that)
import tfm log via macros->Import bookmarks
run the following macro (name it bookmarks 30 to 24 fps.py for example):
bookmarks = avsp.GetBookmarkList(True)
avsp.ClearBookmarks()
avsp.SetBookmark([(b*0.8, t) for b, t in bookmarks])
And here's a macro for VFR-decimated video that uses tdecimate's mkv-timecodes log:
import sys, re, bisect, collections, math

def get_timecodes( file ):
with open(file) as f:
txt = f.read()
if not txt.startswith('# timecode format v1'):
return None
basefps = float(re.sub('^.+?Assume ([0-9.]+).*?$',r'\1',txt,1,re.S))
f2prev = 0
t = 0.0
Timecodes = collections.namedtuple('Timecodes',['frame','time','fps'])
tc = Timecodes([],[],[])
for L in txt.splitlines():
s = L.split(',')
if L and L[0].isdigit() and len(s)==3:
f1,f2,fps = int(s[0]), int(s[1])+1, float(s[2])
if f1 != f2prev:
tc.frame.append(f2prev)
tc.time.append(t)
tc.fps.append(basefps)
t += (f1-f2prev)/basefps
tc.frame.append(f1)
tc.time.append(t)
tc.fps.append(fps)
t += (f2-f1)/fps
f2prev = f2
tc.frame.append(f2)
tc.time.append(t)
tc.fps.append(0)
return tc


def frame_apply_VFR( frame, framefps, timecodes ):
t = frame / framefps
i = bisect.bisect( timecodes.time, t )
f1,t1,fps = timecodes.frame[i-1], timecodes.time[i-1], timecodes.fps[i-1]
f = f1 + math.floor((t-t1)*fps)
return f


############################################
f = avsp.GetFilename('Open timecode file', filefilter='Timecode format v1 (*.txt, *.log)|*.txt;*.log|All files (*.*)|*.*')
if f:
timecodes = get_timecodes(f)
fps = avsp.GetVideoFramerate()
fcount = avsp.GetVideoFramecount()
bookmarks = avsp.GetBookmarkList(True)
avsp.ClearBookmarks()
avsp.SetBookmark([(frame_apply_VFR(b,fps,timecodes),t) for b,t in bookmarks if 0<=b<fcount])

just press F2 or Shift-F2 to navigate
You will even see MI value in statusbar, just make sure there's %BM in options->video->customize statusbar.

mastrboy
17th November 2013, 13:58
Thanks wOxxOm.

That was a way better solution :)

BiOSsCZ
17th November 2013, 17:10
Exception WindowsError: 'exception: access violation writing 0x14CA1A04' in <bound method PClip.__del__ of <avisynth.PClip instance at 0x037E2F58>> ignored
Traceback (most recent call last):
File "avsp.pyo", line 9043, in OnMenuVideoRefresh
File "avsp.pyo", line 13855, in ShowVideoFrame
File "avisynth.pyo", line 462, in GetFrame
WindowsError: exception: access violation reading 0x00000000

What is bad?
Please help.

Mystery Keeper
18th November 2013, 05:38
Can we have an x64 build to work with VapourSynth x64?
Tried to build on my own. Here's the log:
E:\vs-sources\AvsPmod>E:\SDK\python27-x64\python-2.7.5.amd64\python build.py

Creating translation file...
*** avsp.py:76: Seen unexpected token "s"
*** avsp.py:6090: Seen unexpected token "+"
*** avsp.py:7648: Seen unexpected token "name"
*** avsp.py:7665: Seen unexpected token "root"
*** avsp.py:7670: Seen unexpected token "root"
*** avsp.py:7675: Seen unexpected token "root"
*** avsp.py:7680: Seen unexpected token "root"
*** avsp.py:7684: Seen unexpected token "root"
*** avsp.py:10068: Seen unexpected token "global_vars"
*** wxp.py:107: Seen unexpected token "s"
*** pyavs.py:40: Seen unexpected token "s"
*** pyavs.py:507: Seen unexpected token "."
*** pyavs_avifile.py:50: Seen unexpected token "s"
Couldn't find 'gdiplus.dll'

Press enter to continue

Mystery Keeper
18th November 2013, 06:06
Found the library and build AvsPmod. Trying to run.
"The application was unable to start correctly (0xc000007b)."

TurboPascal7
18th November 2013, 06:14
x86 platform is hardcoded in setup.py so you can't correctly build it without any source modification. I'd suggest you to wait for vdcrim to provide a binary.

vdcrim
18th November 2013, 15:58
Exception WindowsError: 'exception: access violation writing 0x14CA1A04' in <bound method PClip.__del__ of <avisynth.PClip instance at 0x037E2F58>> ignored
Traceback (most recent call last):
File "avsp.pyo", line 9043, in OnMenuVideoRefresh
File "avsp.pyo", line 13855, in ShowVideoFrame
File "avisynth.pyo", line 462, in GetFrame
WindowsError: exception: access violation reading 0x00000000

What is bad?
Please help.
Probably a plugin fault, try to get which one is it and then post where you grab it from and your AviSynth version.


Can we have an x64 build to work with VapourSynth x64?
AvsPmod doesn't currently support VapourSynth, it just does the trick of silently evaluating .vpy files with AviSource (or VSImport on the current git). So some work in order to support AviSynth+ x86-64 must be done first.

bxyhxyh
3rd December 2013, 15:36
I think ESC button should hide dropdown list or function arguments information text which appears when typing functions.
But instead doing that, it runs script. It is little bit annoying.

vdcrim
3rd December 2013, 15:59
I think ESC button should hide dropdown list or function arguments information text which appears when typing functions.
But instead doing that, it runs script. It is little bit annoying.
Go to options -> keyboard shortcuts -> advanced and check escape. I'll make it the default.

merrick
18th December 2013, 17:32
latest git make segfault for me (archlinux 64bits)

http://sl1pkn07.no-ip.com/paste/view/14c07bdb

greetings

I'm getting the same issue (Arch x64, python 2.7.6, wxpython 2.8.12.1).

I stepped through the code a bit with pdb: log here (http://pastebin.com/raw.php?i=DPFzFiPr). I don't really know python or have enough familiarity with the code to identify why it's segfaulting, but I thought it would at least help if I could point out where it was occurring.

Can anyone make sense of this?

sl1pkn07
8th January 2014, 04:42
more gdb, now with wxpython 3.0.0.0

http://sl1pkn07.no-ip.com/paste/view/921f8360

lansing
19th January 2014, 20:19
is there an option to display rgb value of the current cursor pixel in the status bar on the bottom?

poisondeathray
19th January 2014, 20:31
is there an option to display rgb value of the current cursor pixel in the status bar on the bottom?

options => program settings => video 1 tab => customize video status bar , choose %RGB instead of %HEX

see this post and screenshot
http://forum.doom9.org/showthread.php?p=1606575#post1606575

lansing
19th January 2014, 21:43
options => program settings => video 1 tab => customize video status bar , choose %RGB instead of %HEX

see this post and screenshot
http://forum.doom9.org/showthread.php?p=1606575#post1606575

thanks

whugemann
28th February 2014, 13:22
Last week I tutored a seminar on AVIsynth. On some computers it was impossible to drag 'n drop a video file into AvsPmod. Instead of inserting some text like "AviSource("filename")" it just did nothing.

I have never met this behaviour on one of my computers and I couldn't figure out the reason. Any ideas?

BTW: AvsPmod always inserts the full path to the video file when dragging 'n dropping, even when the video resides in the same folder as the AVS script. This needlessly produces an error when the folder which holds the video and the AVS script is moved to a new location. Couldn't AVSmod insert just the file neame in such a case?

wOxxOm
28th February 2014, 13:30
Instead of inserting some text like "AviSource("filename")" it just did nothing.Could be some quirky mouse software running in tray, or maybe those PCs had win95...

Couldn't AVSmod insert just the file neame in such a case?

Since I almost never use full paths I'd agree on that, but most probably some people will get annoyed. Maybe it should be an option or require Shift key being held while dragging?

wOxxOm
28th February 2014, 18:13
...just the file name instead of full path, use [***] in the template.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.

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.

Keiyakusha
26th September 2014, 18:43
It seems the margin is smaller than it should when the scrollbar is shown, I'll take a look at it.

Oops, please see my updated post. That's also the case with this zoom bug.
Also maybe you can make this margin dynamic to "compensate" for this bug?

vdcrim
26th September 2014, 18:58
Oops, please see my updated post. That's also the case with this zoom bug.
It also happens at 100% and with wxPython 3.0 so there's something else going on.
Also maybe you can make this margin dynamic to "compensate" for this bug?
I'd rather not, gui issues are already annoying enough to make it worse by adding hacks. Anyway I haven't given up on supporting wx 3.0, it just happens that I haven't been working on AvsPmod lately.

LigH
18th November 2014, 12:53
After a longer time, and after installing AviSynth+ in the meantime, I started using AvsPmod again. And now I wonder why the preview window always opens with a too small height. It seems that 16 pixels are always missing while calculating the required height to display the video frame plus the 5 pixel border. So I always have vertical scrolling.

Example 1: Video frame = 1280x720 + 5 pixel border around: client area height = 730 pixels; client window height = 697; horizontal scroller height = 17: difference = 16

Example 2: Video frame = 640x480 + 5 pixel border around: client area height = 490 pixels; client window height = 474; horizontal scroller height = 0: difference = 16

fvisagie
18th November 2014, 13:28
Have you tried right-click -> Zoom -> 100% | Fill window | Fit inside window etc.?

fvisagie
18th November 2014, 13:34
Hi vdcrim,

How do you feel about implementing timeline re-ordering, i.e. cut/copy & paste, including included bookmarks? I feel it would be a great help with any editing beyond basic cleaning up, especially when combining multiple sources.

Perhaps you could kick off with the ability to cut/copy & paste a single range selection at a time?

LigH
18th November 2014, 15:02
"Fit inside" shrinks the video; "Fill" does not expand the window to the video frame size but keeps the video frame behind the scroll area; I had it at "Zoom 100%", but this expands the window just even not enough to avoid scrollbars.

vdcrim
19th November 2014, 03:38
It seems that 16 pixels are always missing
If the window height is adjusted to the video + margins and then the horizontal scrollbar is needed (e.g. toggling the slider sidebar) then yes, a vertical scrollbar will also appear as the horizontal one takes space from the same window. However besides that I'm not having any extra scrolling here.

How do you feel about implementing timeline re-ordering, i.e. cut/copy & paste, including included bookmarks? I feel it would be a great help with any editing beyond basic cleaning up, especially when combining multiple sources.

Perhaps you could kick off with the ability to cut/copy & paste a single range selection at a time?

Something like this macro (https://gist.github.com/vdcrim/99d1aca217894bd527c7)? It cuts the current trim selections and pastes them after the current frame (bookmarks so far are untouched).

fvisagie
19th November 2014, 07:21
Something like this macro (https://gist.github.com/vdcrim/99d1aca217894bd527c7)? It cuts the current trim selections and pastes them after the current frame (bookmarks so far are untouched).

That's exactly it, except also for updating both moved and unmoved bookmarks as mentioned.

LigH
19th November 2014, 08:48
If the window height is adjusted to the video + margins and then the horizontal scrollbar is needed (e.g. toggling the slider sidebar) then yes, a vertical scrollbar will also appear as the horizontal one takes space from the same window. However besides that I'm not having any extra scrolling here.

Well, for me, it seems to be adjusted to (video + margins - 16). I wonder how one might be able to debug the reason for this mistake...

vdcrim
20th November 2014, 03:15
Well, for me, it seems to be adjusted to (video + margins - 16). I wonder how one might be able to debug the reason for this mistake...
I haven't been able so far to find a cause. As a workaround you could try adding those 16 pixels to the height of the preview window. In avsp.py:
pos = -(h + 2 * self.yo + 5 + self.mainSplitter.GetSashSize()/2) - 16
That random +5 (has been there since at least 2007) seems fishy. I'm near to just blame wx as usual.

Here's a library.zip (http://www.mediafire.com/download/bm52yzetgm54jr7/library_[height__+16].zip) up to latest git plus the above hack.

LigH
20th November 2014, 09:29
Hmm, strange: Exchanging lib/library.zip with this new archive doesn't fix it for me. I have the two mentioned example scripts open, switch between them, and the size of the preview window gets almost matched to the height of the video, but still produce a too small window to avoid vertical scrolling. And I can't imagine either why it's only for me, I won't be the only one with normal Windows 7 Aero style.

vdcrim
20th November 2014, 12:04
The size of the preview window is kept for as long as the output resolution of the script in that tab doesn't change, so if you just started the program again and toggled the preview the height will be the same. Did you try after that for example setting the zoom to 100% and doble-clicking the separator between script editor and preview?

LigH
20th November 2014, 12:48
Changing the zoom also changes the size of the preview window, like switching between scripts ... but always to less than the required height, no matter if I select 50%, 100%, 200%. Double-clicking the separator may remove the horizontal scrollbar when the width is sufficient, but the vertical scrollbar persists because the height stays too low.

vdcrim
20th November 2014, 13:01
So the results with the +16 pixels library.zip were identical, or was +16 just not enough?. Well anyway I'm out of ideas about this really.

LigH
20th November 2014, 13:18
With either the original library.zip or your (probably not) "fixed" library.zip, the preview window resizes to the same height.

vdcrim
20th November 2014, 13:52
With either the original library.zip or your (probably not) "fixed" library.zip, the preview window resizes to the same height.
That is even more weird than the height being 16 pixels short. That's pretty much all input I can give you.

BlockABoots
1st January 2015, 18:29
Is there anyway to get audio from the preview video within AvsPMod?

creaothceann
1st January 2015, 19:14
Use the shortcut to start the external player (F6 I think).

RRD
4th January 2015, 14:49
Is there a “Copy current frame number to clipboard” function somewhere like in VirtualDub? I'd like to assign a keyboard shortcut to it.

wOxxOm
5th January 2015, 16:55
RRD, save the code below to AvsPmod/macros/FrameNumberToClipboard.py

import wx

fnum=str(avsp.GetFrameNumber())
if wx.TheClipboard.Open():
data = wx.TextDataObject(fnum)
wx.TheClipboard.SetData(data)
wx.TheClipboard.Close()
else:
avsp.GetTextEntry('frame',fnum,'copy FAILED')

Restart AvsPmod, go to options/keyboard shortcuts and scroll to macros -> FrameNumberToClipboard

martin53
13th February 2015, 22:43
referring to this thread (http://forum.doom9.org/showthread.php?t=145464), the AviSynth 2.6 variable ScriptDir has a trailing backlash (today, with AviSynth26RC1) when the script is opened with VDub, MPC-HC, XMedia Recode, AvsMeter... Verify with this Script:
ColorBars().Subtitle(ScriptDir())

But the same variable has no trailing backslash when the script is opened in AvsPmod 2.5.1. You should be aware of that.

TCmullet
22nd February 2015, 05:16
I just got informed of AvsPmod. But when I tried to access the "animated tutorial" under "Help", of which I have reason to believe is a Powerpoint presentation, the link is an invalid page. The link is:
http://www.avisynth.nl/qwerpoi/Demo.htm
Does anyone know how to get to the that demo??

And can someone fix the program to point to the file successfully?

(Gee this discourages me from going forward. First try at getting educational help and I get a 404.)

Reel.Deel
22nd February 2015, 05:30
http://www.avisynth.nl/qwerpoi/Demo.htm
Does anyone know how to get to the that demo??


https://web.archive.org/web/20120502195653/http://avisynth.org/qwerpoi/Demo.htm

Edit: actually the wiki page link works just fine: http://www.avisynth.nl/users/qwerpoi/ :confused: where did you find that link?

TCmullet
22nd February 2015, 05:44
https://web.archive.org/web/20120502195653/http://avisynth.org/qwerpoi/Demo.htm

Edit: actually the wiki page link works just fine: http://www.avisynth.nl/users/qwerpoi/ :confused: where did you find that link?

In the program itself. Click help and it's the first item. I did say "can someone fix the program". Maybe you didn't know the program had that in the help tab. Perhaps you are an early user. I do know from past programming experience that the help stuff gets added later, if ever.

LigH
22nd February 2015, 23:57
The URL used to be avisynth.org, but its Wiki got damaged by spam bots, so the content moved to another server with the domain avisynth.nl; but user related pages also moved into a /users/ subdirectory which didn't exist on the original server. Search-and-replace ".org" with ".nl" was not sufficient in such cases...

foxyshadis
23rd February 2015, 02:25
In the program itself. Click help and it's the first item. I did say "can someone fix the program". Maybe you didn't know the program had that in the help tab. Perhaps you are an early user. I do know from past programming experience that the help stuff gets added later, if ever.

Good catch, the help files (https://github.com/AvsPmod/AvsPmod/blob/master/help/About.html) haven't been updated since 2007, for the original avsp. Looks like it's high time to go through and fix them up along with documenting the new functionality in avspmod.

Floatingshed
6th July 2015, 09:23
Question about a very minor thing...
I have recently updated from version 2090 or similar. All my old user-defined functions show up in a script in purple (default) but any new ones I create show up in red (unknown function!). Any idea why? Works fine of course, but I don't like change :-)
Thanks.

vdcrim
6th July 2015, 23:54
Are the functions in red user-defined functions saved in avs/avsi files on the autoload directory but not manually added to AvsPmod's function definition database? If that's the case I can think of two possible explanations:


You're using AviSynth+
The functions are in avs files instead of avsi, that is you call Import when you need them instead of letting AviSynth autoload them

You keep using a specific old AviSynth+ build from October 2013

Mounir
11th July 2015, 21:43
How can i create a function for a vdub plugin i use frequently (and a bunch of others) ? I tried to see in the "avs function definition" but it appears i'm going nowhere
what i use is this:
LoadVirtualDubPlugin("C:\Program Files (x86)\virtualdubmod1.5\plugins\Camcorder_Color_Denoise_sse2.vdf", "CCD", 0)
CCD(30,1) # 30=default

Thanks for your help

vdcrim
11th July 2015, 23:27
Go to Options -> AviSynth Function Definition -> User Functions, add a new function. Type the list of arguments (type and name) and use define sliders to complete the entry.

According to the readme and Google Translate, for this filter it would result in something like this:
(
clip clip,
int strength=30 (0 to 100),
int multithreading=1 (0 to 1)
)
Names are just made up. As when defining a script function, an argument name in quotes means that it can be referred by name. Although you can't do that for VirtualDub filters a name is still useful as it's shown on calltips and sliders.

You can also define a script function wrapping LoadVirtualDubPlugin + CCD and add the function definition of that wrapper instead. That way you type a bit less and have the option of referring to the arguments by name:

function CCD(clip clip, int "strength", bool "multithreading", int "preroll", string "vdf_path"){
strength = default(strength, 30)
multithreading = default(multithreading, true)?1:0
preroll = default(preroll, 0)
vdf_path = default(vdf_path, "C:\Program Files (x86)\virtualdubmod1.5\plugins\Camcorder_Color_Denoise_sse2.vdf")

LoadVirtualDubPlugin(vdf_path, "vdf_CCD", preroll)
return vdf_CCD(clip, strength, multitheading)
}

(
clip clip,
int "strength"=30 (0 to 100),
bool "multithreading"=True,
[int "preroll"=0],
[string "vdf_path"= ("*.vdp"/ "*.vdplugin")]
)

Floatingshed
19th July 2015, 16:56
Are the functions in red user-defined functions saved in avs/avsi files on the autoload directory but not manually added to AvsPmod's function definition database? If that's the case I can think of two possible explanations:


You're using AviSynth+
The functions are in avs files instead of avsi, that is you call Import when you need them instead of letting AviSynth autoload them

You keep using a specific old AviSynth+ build from October 2013


My functions are .avs and are saved to a directory that does not auto-load. I load them per script.
Avisynth version is 2.6mt
I tried just changing the font and colour but there appears to be no way to store the changes...

vdcrim
19th July 2015, 19:59
My functions are .avs and are saved to a directory that does not auto-load. I load them per script.
Then AvsPmod can't know about them if you don't add them yourself in Options -> AviSynth function definition. Since v2.5.0 unknown functions are coloured red by default, I guess you're updating from a previous version (don't know what version 2090 or similar could be). If old functions aren't red that can only mean you added them to the database at some point.

I tried just changing the font and colour but there appears to be no way to store the changes...
Changes should be saved if you close the font and colours dialog with OK.

Floatingshed
20th July 2015, 19:15
I always add my functions to the database.
Also the colours and fonts page doesnt have an OK button on my version! Unless the panel is so large that it is off the bottom of the screen, its can't be re-sized! My resolution is 1024x768.

vdcrim
20th July 2015, 22:52
I always add my functions to the database.
There's no issue then? Or are you saying that new functions are still red even after adding them (can't reproduce it).

Also the colours and fonts page doesnt have an OK button on my version! Unless the panel is so large that it is off the bottom of the screen, its can't be re-sized! My resolution is 1024x768.
That's the case. The dialog has been rearranged since v2.5.1, you can use a newer build like the one linked in the OP.

Floatingshed
26th July 2015, 15:18
I am using V2.5.1 and there is no "OK" button on the colours and fonts set-up page! As far as I can see there is no way to save any changes.

vdcrim
26th July 2015, 15:52
It seems it wasn't clear enough. There's an OK button, but as you ventured your vertical resolution is too short for the dialog height. You won't have this issue on recent revisions as the dialog has been modified after the last stable release, v2.5.1. So if this issue is important to you use a newer build, see the opening post.

stranno
7th August 2015, 15:21
Is there any way to use Avisynth+ 64-bit? I dont know if this:

Add support for 64-bit AviSynth+

Means that there is fully support for 64-bit AVS. Can anyone provide the lastest compiled version? The r426 link is not working anymore, and i dont know if it even include that commit.

Reel.Deel
7th August 2015, 18:07
For 64-bit AviSynth+, AvsPmod also has to compiled for 64-bit. As far as I know vdcrim has only released 32-bit builds.

I came across an older 64-bit AvsPmod (r443) build sometime ago but ultim told me not to use it with the latest AviSynth+ (r1779 or greater) unless it was AvsPmod (r452) (IRC).

Anyways, here's the updated link for AvsPmod r432 (http://files.line0.eu/builds/AvsPmod-line0-2.5.1-r432-x86-1ee9b4a.7z), and the older r426 (http://files.line0.eu/builds/AvsPmod-2.5.1-r426-x86-04874ed.7z).

foxyshadis
8th August 2015, 07:27
Back when I still had 2.7 installed, it was as simple as running avsp.py with the 64-bit python, with the 64-bit wx dlls on the path. (I ran it from git, but it'd work as well from the installed .py files.)

Now that I work in py3 exclusive, I'm waiting to see how the work to split up the pieces works out.

stranno
8th August 2015, 09:39
Thank you @Reel.Deel. Its clear now.

Reel.Deel
9th August 2015, 15:51
Here is r452 build: x86 (http://www.mediafire.com/download/o153edc2ljd9oae/AvsPmod_v2.5.1_r452_%28Windows_x86-32%29.7z), x64 (http://www.mediafire.com/download/jmpninfd5m244aa/AvsPmod_v2.5.1_r452_%28Windows_x86-64%29.7z).

Awesome! Thanks :)

cegy
14th August 2015, 23:26
Here is r452 build: x86 (http://www.mediafire.com/download/o153edc2ljd9oae/AvsPmod_v2.5.1_r452_%28Windows_x86-32%29.7z), x64 (http://www.mediafire.com/download/jmpninfd5m244aa/AvsPmod_v2.5.1_r452_%28Windows_x86-64%29.7z).


for me it seems there's a issue using the x64 version of avspmod (hit and miss but more miss) which gives an error to avisynth_cffi_ext.pyd which can be seen in this picture also this is with the installed version of aAvisynth+ r1825 incase anyone does ask (the version that comes with staxrip)

http://i.imgur.com/coIvfMK.png

Reel.Deel
15th August 2015, 01:21
Here is r452 build: x86 (http://www.mediafire.com/download/o153edc2ljd9oae/AvsPmod_v2.5.1_r452_%28Windows_x86-32%29.7z), x64 (http://www.mediafire.com/download/jmpninfd5m244aa/AvsPmod_v2.5.1_r452_%28Windows_x86-64%29.7z).

for me it seems there's a issue using the x64 version of avspmod (hit and miss but more miss) which gives an error to avisynth_cffi_ext.pyd which can be seen in this picture also this is with the installed version of aAvisynth+ r1825 incase anyone does ask (the version that comes with staxrip)

Can you post the script your using?

cegy
15th August 2015, 08:21
Can you post the script your using?

the odd thing is that it was working just fine before but now keeps on crashing when loading the exe up (as i said already how its quite hit and miss but more miss)

the script i was using would be very simple (and yes its using x64 of the plugins/exe's etc...)

LoadPlugin("<PLUGINS_DIR>\DGDecodeNV.dll")
DGSource("<INPUT>", deinterlace=1,resize_w=0,resize_h=0)
Crop(0, 0, -0, -0)
LanczosResize(1280,720)

so in short the exe fails to load and no scripts can be used at all due to the exe failing to run due to the error from "avisynth_cffi_ext.pyd"

also incase you do ask the very same script just works just fine every single time with the x86 version

i've deleted the dir and tried from fresh, reinstalled avisynth+ a few times and still the same thing will happen overtime i think.... my guess is there's a bug somewhere but there again i might be wrong lol
unstalling avisynth+ and reinstalling did get it to work this time but i don't think it will last.. time will only tell

Thunderbolt8
31st August 2015, 00:59
does avspmod support Rec. 2020 yet? afaik for UHD Blu-rays the video is going to be encoded for Rec. 2020 colour points. in order to compare screenshots with other sources like from normal Blu-rays, we'd have to do all conversions for this manually, because so far avspmod only supports YUV -> RGB in BT.601 or BT.709.

therefore it would be nice if Rec. 2020 could be added as well, it would save a lot of time and work.

foxyshadis
31st August 2015, 11:56
AvsP uses Avisynth to convert to RGB, so it likely won't support that until it's implemented in Avisynth. (Which does not currently support it.)

vivan
31st August 2015, 16:43
Doesn't it use Dither? Because I see some 10/16 bit options.
madVR had resolution-based detection for BT.2020, but it was disabled because all 2160p videos used BT.709 matrix at that time.

fvisagie
13th September 2015, 13:24
1. Does the pre-release build number r{nnn} correspond to the rank of the latest commit? I.e. is HolyWu's r452 build (http://forum.doom9.org/showthread.php?p=1733655#post1733655) numbered so because there were 452 commits when it was built?

2. The Pre-release r426 Windows build (http://files.line0.in/builds/AvsPmod-2.5.1-r426-x86-04874ed.7z) on the opening post is broken or the server is down.

fvisagie
13th September 2015, 13:30
Something like this macro (https://gist.github.com/vdcrim/99d1aca217894bd527c7)? It cuts the current trim selections and pastes them after the current frame (bookmarks so far are untouched).

I hadn't realised you'd already committed that (https://github.com/AvsPmod/AvsPmod/commit/65bd3e3dd82bf3a7b55106e2ada4abd5d22a5c2f):
Add cut and pasting of ranges of frames

Two new menu entries added to 'Video' -> 'Trim selection editor':
- 'Move selections before the current frame' (ctrl+alt+V)
- 'Move selections after the current frame' (ctrl+V)
The hotkeys are only in effect if the video preview is focused

Activating either one will cause the current selections to be cut from
the timeline and inserted before/after the current frame. Bookmarks are
also shifted.

Many thanks for this. Hopefully it's included in HolyWu'z r452 build.

fvisagie
17th September 2015, 10:05
For the same video, one would expect e.g. %RGB and %YUV to show equivalent values (i.e. %RGB (0,0,0) = %YUV (16,128,128)) , and one would expect pixel values to be independent of display settings. However, that is not the case, because both %HEX and %RGB show display values, instead of output video values. Whenever the display YUV <-> RGB conversion is changed with YUV video output, the %HEX and %RGB values change, although the video itself does not. This makes colour comparisons complicated and tricky.

For example
StackVertical(BlankClip(pixel_type="YV12", color=$000000), BlankClip(pixel_type="YV12", color=$FFFFFF))
should always display %HEX $000000 / %RGB (0,0,0) / %YUV (16,128,128) / %CLR (16,128,128) over black and %HEX $FFFFFF / %RGB (255,255,255) / %YUV (235,128,128) / %CLR (235,128,128) over white.

When YUV <-> RGB display conversion is set to TV levels, those values are shown correctly. However, when display conversion is changed to PC levels, although %YUV and %CLR still show the same correct values, %HEX and %RGB change to $101010 and $EBEBEB for black and white respectively.

vivan
17th September 2015, 11:05
For the same video, one would expect e.g. %RGB and %YUV to show equivalent values (i.e. %RGB (0,0,0) = %YUV (16,128,128)) , and one would expect pixel values to be independent of display settings.I would totally expect what avsp does now. There're different ways to convert to RGB, and the correct one is the one you choose for display.

For exampletry that with non-zero chroma. What colormatrix should it use? BT.601 because it was what avisynth used for rgb->yuv conversion of your value? BT.709 because that what resolution-based detection says?

When YUV <-> RGB display conversion is set to TV levels, those values are shown correctly.On a TV-range video, not on PC-range.
However, when display conversion is changed to PC levels, although %YUV and %CLR still show the same correct values, %HEX and %RGB change to $101010 and $EBEBEB for black and white respectively.Because if video was PC-range that would be correct values for it.

fvisagie
17th September 2015, 12:01
I would totally expect what avsp does now.

If I understand what you say correctly, the specified TV/PC YUV -> RGB conversion tells AvsPmod what range to deem output YUV video to be in, not only for display purposes, but also for status bar pixel value purposes?

umapati
9th October 2015, 19:40
I am using Avspmod v 2.5.1 to edit script and take screen shots of a movie..Previously it was working very nicely but all of a sudden when I opened after two months today, if a load a movie to take screen shots and click preview button it crashes and displays a message "AviSynth script editor has stopped working"..
here is the screenshot of the error..
http://i.imgur.com/jF7zFZy.jpg

But it works perfectly if I load avisyth script and play movie..but it crashes only if I load movie directly which was working fine before.
I can not figure out what might be the culprit..Please help me to rectify this problem

P.S. i was able to load avi & xvid format successfully but it crashes with mkv files..Which I used to play perfectly..That's really strange..

wOxxOm
10th October 2015, 14:06
@umapati, DirectShowSource uses the installed codecs, so apparently you've changed something like a setting in the decoder or updated it, or installed a different codec.

Generally DirectShowSource is the worst possible way of opening videos in AviSynth and should be used only in case the sane methods listed below don't work for some obscure codec for which you only have a directshow decoder installed on Windows.

Use FFMS2 (http://avisynth.nl/index.php/FFmpegSource) or L-SMASH Works (http://forum.doom9.org/showthread.php?t=167435) for the most precise and reliable result, could be slow with large files due to the one-time indexing (you won't see the video for a few minutes until it's finished).

If you don't like the indexing because it's slow, use an alternative DirectShowSource filter dss2("d:\your\video.mkv") that comes with Haali media splitter in its avss.dll. It works in most cases and it's more precise than DirectShowSource.

BlockABoots
10th December 2015, 21:37
Is there a way to speed up the seek/scanning time, when editing large file (1+ GBs)? My raw files are .flv format and thus they are inputted into AvsPmod as 'DirectShowSource'. When ever i try and seek further into the video file it can take 10-20 seconds to jump to that point in the file, just wonder if theres a way to speed this up at all?

SSH4
11th December 2015, 05:58
BlockABoots Yes forget about 'DirectShowSource'. Use ffmpeg2source or LSMASH/libav etc.

~ VEGETA ~
11th December 2015, 14:34
can avsp-mod run Vapoursynth scripts? I didn't try it yet but seen images showing it.

BlockABoots
11th December 2015, 18:46
BlockABoots Yes forget about 'DirectShowSource'. Use ffmpeg2source or LSMASH/libav etc.

Thanks is one regard better than the other?. Also is there a way for the ffmpeg2source to be auto laoded without having to add a script line at the start to load the plugin?

Also i notice when i got to re-encode the video thats there is no audio track??

LigH
11th December 2015, 20:17
L-SMASH Source used to be more reliable earlier while FFMS2 relied on parts of Haali Media Splitter for non-MKV sources (so FFMS2 also had issues with interlaced formats when using more than 1 decoding thread). Today both use libavformats as splitter and are quite equal now.

Remultiplexing some containers to MKV with mkvtoolnix before indexing them may still be a good idea, the MKV container has some features supporting seeking which some other containers don't provide.

BlockABoots
14th December 2015, 22:10
If im using FFmpegSource2 how to i get audio?? Ive loaded the avs file into Ripbot but its reporting no Audio channel??

LigH
14th December 2015, 23:10
Sorry, my crystal ball is broken, I can't see your script.

~ VEGETA ~
19th December 2015, 18:51
can avsp-mod run Vapoursynth scripts?

BlockABoots
21st December 2015, 19:19
I have noticed in the Program Settings under the 'Misc' Tab their is a 'Custom Jump Size' option, im guessing this is to select a time or frame to jump to when editing a video?. I know Up & Down Arrows are for jumping in 1 seconds increments and Page Up & Down is for 1 minute increments but not sure that the key is for this 'Custom Jump' feature?

fvisagie
22nd December 2015, 08:02
Key mappings are under Options.Keyboard shortcuts. Custom jump size is under Options.Program settings.Misc.

BlockABoots
22nd December 2015, 22:33
Can see a key for 'Custom Jump Size'?

StainlessS
23rd December 2015, 00:03
BlockABoots,
Can see a key for 'Custom Jump Size'?

Should that read 'Cant', or what, perhaps you should elaborate, cos what you said means very little.
Give fvisagie some clue as to what you mean.

LigH
29th December 2015, 16:58
AvsPmod uses AVISource to load the vpy script in the background when you preview it.

As a 32 bit process, AvsPmod will open VapourSynth scripts as video source only if you installed Python 3.5 and VapourSynth as 32 bit versions. With Python and VapourSynth installed as 64 bit version, AviSource of a 32 bit AviSynth will not find a handler for vpy files.

Reel.Deel
29th December 2015, 17:34
As a 32 bit process, AvsPmod will open VapourSynth scripts as video source only if you installed Python 3.5 and VapourSynth as 32 bit versions. With Python and VapourSynth installed as 64 bit version, AviSource of a 32 bit AviSynth will not find a handler for vpy files.

For 64-bit VapourSynth you'll need 64-bit AviSynth+ and corresponding AvsPmod (http://forum.doom9.org/showpost.php?p=1733655&postcount=1148). An alternative is to use VapourSynth's VSFS (http://www.vapoursynth.com/doc/vsfs.html) which can be used to create a virtual AVI. This allows you to use 64-bit VS with 32-bit AVS.

Bruce/Fl
12th March 2016, 07:13
Hello all,

I may be doing something totally wrong, or missed a step, but I can't get avspmod to open.

I click the executable, but nothing happens after I hit the "run" option in the box that pops up asking me what I want to do.

This is the error message I get:

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

I'd post a script that it was crashing, but I can't even get that far, the program won't open/load.

I downloaded version 2.5.1, I have avisynth 2.6, I'm running Windows 7, any ideas?

Thank you

fvisagie
13th March 2016, 09:10
Earlier (in this thread?) I covered something similar. IIRC it involves unevelated AvsPmod trying to write to protected area under \Program Files.... What may help is to delete configuration files there and/or running AvsPmod with elevated privileges at least once.

bxyhxyh
13th March 2016, 09:27
Hello all,

I may be doing something totally wrong, or missed a step, but I can't get avspmod to open.

I click the executable, but nothing happens after I hit the "run" option in the box that pops up asking me what I want to do.

This is the error message I get:



I'd post a script that it was crashing, but I can't even get that far, the program won't open/load.

I downloaded version 2.5.1, I have avisynth 2.6, I'm running Windows 7, any ideas?

Thank you
Similar thing happens if you used plugin that something has wrong it with. Or some settings.
And AvsPmod saves the latest version that you was working on and refuses to open like this.
Try opening empty avs script in AvsPmod with "Open with".

Bruce/Fl
13th March 2016, 09:49
I think I found that passage, it's on page 55 of this thread. It looks like what finally solved it for the poster having trouble was to delete and reinstall avisynth. I hope I don't have to do the same.

I tried running it as an admin, still no luck.

Thank you both for helping me look at and solve this.

Bruce/Fl
14th March 2016, 09:19
I uninstalled and reinstalled Avisynth.

AVSPMod still won't even open.

Puzzling.

I'm also having an issue with MeGUI. I have a short AV script that will open in both MeGUI and VDub (and Media Player Classic, etc).

But I have a long script with numerous filters that that I can get to open in VDub, but crashes MeGUI even before it can open and get to the preview screen.

I don't know if that's related or not, or whether it helps isolate the issue, but thought I'd put that out there.

Bruce/Fl
18th March 2016, 13:52
An update.

Now that I have my MeGUI issue figured out, I went back to see if I could get this straight.

I had a thought that gave me an idea. In some of my other avisynth related issues I had, a fix was putting a copy of the .dll in the SysWOW64 folder. So I dropped the dll's from AVSPmod in there also and voila, it works.

poisondeathray
8th May 2016, 23:25
Bug report regarding duplicated fields when separatefields() is used with ConvertToRGB24(interlaced=true) or sometimes RGB32

Seems to be avspmod related, as problem doesn't occur in vdub, mpchc, megui preview

Instead of copy/pasting, see this thread for more details
http://forum.doom9.org/showthread.php?t=173482

cihub
11th August 2016, 12:36
Anyone knows how to pass AVS script to be opened to non-compiled AvsP? I know I can add my own code to do this, or compile AvsP, but maybe there's a way to do it faster/easier?

videoFred
11th August 2016, 17:20
I do not know if this is the answer to your question, but just open an AvsPmod script in VDub, and VDub will ignore the AvsPmod part and it will 'see' it as a normal Avisynth script.

Fred.

ChiDragon
4th October 2016, 13:11
Found the problem and pushed a fix to GitHub. AvsP was assuming the buffer that holds the frame data to be at least Pitch * Height. That's usually the case, but it's only really guaranteed to be Pitch * (Height - 1) + RowSize. When the buffer was the later frames failed to be displayed, so the previous one remained.
Can someone please provide a current build? :)

BTW:
Download
Both the windows build and source code can be downloaded from the git repository:
[...]
Pre-release r426 Windows build (http://files.line0.in/builds/AvsPmod-2.5.1-r426-x86-04874ed.7z)

First time I clicked on this link I was redirected to some scam survey site. Second time and thereafter, redirected to line0.in domain parking page. The site has moved to .eu.

Reel.Deel
4th October 2016, 13:39
Can someone please provide a current build? :)

BTW:

First time I clicked on this link I was redirected to some scam survey site. Second time and thereafter, redirected to line0.in domain parking page. The site has moved to .eu.

Here's r452: http://forum.doom9.org/showpost.php?p=1733655&postcount=1148

Not the latest but it's not too outdated.

ChiDragon
4th October 2016, 13:45
Thanks, but that post was made in 2015 and the bug affecting me was fixed in May 2016.

Reel.Deel
4th October 2016, 15:30
Thanks, but that post was made in 2015 and the bug affecting me was fixed in May 2016.

Maybe HolyWu can compile r459 for us.

nel-son
6th October 2016, 13:47
i'm testing AvsPmod on Linux Mint. i can start it with 'python avsp.py', but it can't load filters from the plugin directory (only ffms is used, even i delete the dll from plugin dir - don't know why this works). all other plugin can't be loaded, even not if i use 'loadplugin' (not with the win path and not with the linux path).

when i start it with wine avspmod crashed when i type some commands (for example after "tr" when i type "trim" or when i delete the last bracket). but with wine it loads the plugins.

any idea whats wrong?

bilditup1
31st October 2016, 08:18
How can I make a Space in the code upper section.
When I press space it doing a zoom ! It drive me crazy. Before I use to Ctrl+Space , but its not working anymore.
Please Help meeeeeeee !

Options/Keyboard shortcuts and see (and change) what you have set for "Video->Zoom".

I'm also having this problem, which persists with the r452 build. Took AlanHK's advice and got rid of any and every hotkey related to Video->Zoom, and finally it works again. In particular I think the hotkey for "Video -> Zoom -> Zoom in" I suppose was the culprit. It wasn't set to happen with the spacebar though, it was set to use Numpad +, which doesn't even exist on my 80% keyboard at all (go figure). I most certainly never touched the hotkey settings, so I'm not sure how this happens...

downloaded
29th January 2017, 15:54
I've been trying to move all my stuff to x64, but i was never able to use HolyWu's x64 build. On a side note, x86 works fine and i've been using it for some time now.

I'm not even able to start Avspmod. It complains about avisynth_cffi_ext.pyd. I see someone also reported that problem but i didnt find any solution. Any help?

Edit: After some tests seems the problem is related to Avishynt. Avspmod works fine with Avishynt x64 installed but it doesnt work with portable versions (thats what i was using). I also tryed installing Avishynt, running Avspmod and enabling "Use custom avishynt directory", and then uninstall Avishynt but no luck.

Edit2: Well it works with Avishynt.dll placed on root dir, regardless of directory set by "Use custom avishynt directory"...

Mounir
22nd February 2017, 11:15
I got a major problem to encode videos with avspmod (avs2avi) using the script encoder (VFW)
Even the simplest script won't encode

Runtime error
avs2avi.exe
this application has requested the runtime to terminate


I'm running the v2.5.1 of avspmod
Windows 7 x64

LigH
22nd February 2017, 11:37
One of the simplest scripts would probably be (AviSynth 2.5\Examples\Version.avs):

Version()

So which VfW codec did you select? Or does it already crash before you can select one?

Mounir
22nd February 2017, 12:00
I tried with lagarith and utvideo, same result
it crashes a couple of min after starting the encode

LigH
22nd February 2017, 15:01
When it crashes late, the most probable reason is corrupt data in the source. This would, of course, not make any sense when the source is an AviSynth core function like Version() or ColorBars(). So please try to convert such a script as well. Also you can open your scripts loading a real video source in VirtualDub and "scan for errors" in its Video menu. And I believe running such a script in AVSMeter would reveal issues with a corrupt source just as well.

amayra
22nd February 2017, 19:08
AvsPmod need to be updated i suggest you to find another alternative

martin53
3rd March 2017, 17:27
AvsPmod need to be updated i suggest you to find another alternative
Can you spot one?

LigH
3rd March 2017, 21:13
If you simply want to write AviSynth source code and check the result with a preview, VDubFilterMod may be just enough. But it does not have all the special features possibly only AvsPmod provides (like sliders for value ranges). So we may better wait for an up-to-date build.

amayra
10th March 2017, 16:44
Can you spot one?

how about AVSEdit Plus (https://sourceforge.net/projects/avseditplus/) ?

vdcrim
24th March 2017, 01:00
Here's a new build with a fix for the "only a single prefetcher is allowed per script" issue reported here (https://forum.doom9.org/showpost.php?p=1800429&postcount=3120). No other relevant changes.

AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-32) (https://www.mediafire.com/?y5z283j6rpecpua)
AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-64) (https://www.mediafire.com/?p2v8zdivvtzu40p)

amayra
24th March 2017, 11:02
Here's a new build with a fix for the "only a single prefetcher is allowed per script" issue reported here (https://forum.doom9.org/showpost.php?p=1800429&postcount=3120). No other relevant changes.

AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-32) (https://www.mediafire.com/?y5z283j6rpecpua)
AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-64) (https://www.mediafire.com/?p2v8zdivvtzu40p)


thank you but did this build have line0 patch for high bit depth ?

downloaded
24th March 2017, 11:54
Is it based on r452?

Reel.Deel
24th March 2017, 14:16
Here's a new build with a fix for the "only a single prefetcher is allowed per script" issue reported here (https://forum.doom9.org/showpost.php?p=1800429&postcount=3120). No other relevant changes.

AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-32) (https://www.mediafire.com/?y5z283j6rpecpua)
AvsPmod v2.5.1-90-gfcd7a61 (Windows x86-64) (https://www.mediafire.com/?p2v8zdivvtzu40p)


Thanks!

thank you but did this build have line0 patch for high bit depth ?

No. He mentioned the issue that was fixed and said "No other relevant changes".

Is it based on r452?
Consider it as r462. Look at the commit count on the top left: https://github.com/AvsPmod/AvsPmod

downloaded
24th March 2017, 16:06
Thank you. I should have checked github before asking.

lansing
7th June 2017, 17:08
Hi how do I show the bit depth of the video in the status bar? I didn't see the code in the setting's legend.

lansing
7th June 2017, 18:38
I installed both the 64 bit and 32 bit Avspmod, each in different location. For some reason they both shared the same plugin path but not other program setting? It's confusing.

stranno
2nd July 2017, 20:56
Today i'm getting an "error trying to display the clip" in AvsPmod preview window using 10bit videos + FFMS2000, while they worked perfectly fine before.

I think i installed SVP (it comes with ffdshow) and something have been breaked.

Videos are displayed properly on mpv (the external player i use) or even MPC-HC, through Avisynth OC.

I have uninstalled ffdshow, checked with W7DS Tweaker and nothing. 8bit videos seems to render properly.

Sparktank
2nd July 2017, 21:44
Today i'm getting an "error trying to display the clip" in AvsPmod preview window

What is your script?

For previews, even if you select 16-bit, you have to comment out "ConvertFromDoubleWidth()/ConvertFromStacked()", or you get error message.

If you change it to 16-bit, there should be a second line in the message saying "Are you sure it's the right format?" or something.
In 8bit/10bit, the error message is cropped by half.

stranno
2nd July 2017, 22:00
What is your script?
ConvertTo8bit works for displaying the video.

But i dont know what is the problem with 10bit. It was displayed properly before and external players or x264 work with them fine.

Thanks for the advice.

Sparktank
2nd July 2017, 23:54
That solves that.

poisondeathray
11th July 2017, 20:10
I get an error window popup everytime I preview or seek with the x64 version in post 1202 . It works fine otherwise (I can just put the error window in the background), it's just annoying



Traceback (most recent call last):
File "avsp.pyo", line 11703, in OnFocusVideoWindow
File "avsp.pyo", line 13932, in SetVideoStatusText
File "avsp.pyo", line 14081, in GetVideoInfoDict
File "avsp.pyo", line 17271, in FormatTime
TypeError: %d format: a number is required, not float


In case it's related to the status bar, my status bar code is copy/pasted from the older x86 version, which works fine without the error window popups


Frame %F / %FC - (%T / %TT) %BM %POS %HEX %RGB %YUV \t\t %Z %Wx%H (%AR) - %FR fps - %CS

wiggaz
15th September 2017, 18:25
I have installed Avisynth+ and I tried the dedicated version of AvsPmod (452 and 462 found them here) but they both don't work. As soon as I start the exe, an error window appear which tell me AvsPmod has stopped working. It doesn't even start.
What can I do? What am I missing?
Thanks in advance.

fvisagie
15th September 2017, 20:14
You may be experiencing the issue of (settings?) file permissions.

Try running it with Administrator privileges. If that worked, exit and run without and hopefully then it will work.

wiggaz
15th September 2017, 23:02
You may be experiencing the issue of (settings?) file permissions.

Try running it with Administrator privileges. If that worked, exit and run without and hopefully then it will work.

It works!
Thanks man.

x265
28th September 2017, 02:34
Since two days avspmod.exe won't open on windows 10. It was working fine before that. I'm using avs+.

lansing
6th December 2017, 04:47
Today I just solved a mystery by accident. My avspmod 64 bit version has been malfunctioning for the past few months, I don't know what I did before that causes that, the program just flash open and closed right away, and all I saw was that little error window along the way. There were no error message whatsoever to tell me what the problem is.

Fast forward today while I was trying to open a script in the 64 bit virtualdubfilter mod, there's an error message popped up telling me that I have a 32 bit dll that was wrongly put in the 64 bit plugin folder, and it even told me the exact name of the file. So I removed that problem file, and guess what, the avspmod 64 bit opened...I felt that this program really needs better error handling.

Just want to put this solution out there in case you may encounter a similar mystery.

lordsmurf
10th December 2017, 00:39
Fast forward today while I was trying to open a script in the 64 bit virtualdubfilter mod, there's an error message popped up telling me that I have a 32 bit dll that was wrongly put in the 64 bit plugin folder, and it even told me the exact name of the file. So I removed that problem file, and guess what, the avspmod 64 bit opened...I felt that this program really needs better error handling.

:goodpost:

I've run into similar filter issues with it as well, due to it not liking the names of files in the plugins folder.

StainlessS
10th December 2017, 01:45
Filenames of dll's (the part before extension '.dll') should only contain characters that are legal in Avisynth variable name, ie
'_' or 'a->z|A->Z' for 1st character and additionally digits '0->9' after that. Some dll's have eg hyphen '-' in filename, which
is not legal in variable name.
Reason so can use long version 'DllName_FilterName' name, to avoid naming conflict where multiple dll's contain same filter name:- http://avisynth.nl/index.php/Plugins#Plugin_Autoload_and_Conflicting_Function_Names

lordsmurf
10th December 2017, 02:09
Yep. But AvsPmod didn't remind me of that, it just crashed.

I need to setup that multi-version _ trick. I have a few, but always just swapped them.

mtamimi
24th January 2018, 01:07
I am trying to process a video file on a read-only mounted network share. AvsPmod just hangs because i think it cant write its temporary files, is there a way to make it save those files somewhere else?

Thnx

*edit*
I found this https://forum.doom9.org/showthread.php?t=171085
so I started using cachefile , is there a way to make it use the same file name of the video for the cache, I will only specify the path?

Dion
13th May 2018, 22:44
Anyone with some skills able to update this to support higher bit depth previews.

FranceBB
4th June 2018, 21:43
@Dion... High bit depth is supported, but only for normal Avisynth, not Avisynth+. You can right click on the preview and select "bit-depth" and choose the right one.
Please note that only 16bit Stacked and Interleaved are supported (Dither_Tools and HDRCore).

https://i.imgur.com/klLq2pc.png

Most important, would someone be willing to support BT2020 and BT2100 preview in AVSPmod? It actually only supports BT601 and BT709.

https://i.imgur.com/DB3FqVO.png

Dion
4th June 2018, 22:58
Ya I would love it if it displayed 10bit and Bt.2020.

Revan654
5th June 2018, 18:07
Ya I would love it if it displayed 10bit and Bt.2020.

Bring it into BT.2020 is not an easy task, I looked into what is required to add more colorspace to another software. It's way beyond my programming skill set. The math formula's are very complex.

It took one company nearly 8 months to fully added Rec.2020 to there software. They also had to add support for HDR and recording function too. Plus a way to view HDR on a SDR monitors.

Danette
18th September 2018, 15:21
Whenever I open AvsPMod, an "Error Window" opens advising that "Error parsing plugin string at position 0:"

AvsPMod seems to function normally, though. I have tried changing the "Library" file, which was the only solution I could find on this forum, which solved the problem. However, it created new error messages that also affected the program functioning (an "autolevels" error).

mtamimi
3rd November 2018, 18:59
This project was last updated on 2013...is this one still actively developed?

Thanks

ChaosKing
3rd November 2018, 19:14
There was a new release by gispos: https://forum.doom9.org/showthread.php?t=175823

byteshare
17th July 2019, 17:32
NekoPanda also has a version that works with their AVIsynth Neo version: https://github.com/nekopanda/AvsPmod/releases

LigH
28th March 2020, 10:31
Selur discovered:

AvsPmod may not start at all if you enabled the Windows 10 beta feature to support UTF-8 locale.

Wile_E_Coyote
4th April 2020, 15:31
Hi everyone - be gentle with me, I'm feeling a bit tender after finally (re-)starting my VHS tapes to digital program.

I treated myself to a new Windows 10 PC and so I'm dedicating my old(er) Windows 7 64 bit machine to the task.

On my (even older) XP machine I used a Dazzle connection but the drivers don't exist to use it on 7 so I got an ezcap and after quite a few stumbles, managed to get a test .avi.

I decided to follow Andrew Swan's tutorials which include using AvsPmod and have followed his install instructions and .avs template -

1 SetFilterMTMode ("QTGMC", 2)
2 FFMPEGSource2("D:\filename.avi", atrack=1)
3 ConvertToYV12()
4 AssumeBFF()
5 QTGMC(preset="Slower", EdiThreads="2")
6 BilinearResize(720,576)
7 Prefetch(7)

I fall at the first hurdle though as when I click on the video timeline, I get an error message –

Cannot load a 32 bit DLL in 64 bit Avisynth: ‘C:/Prgram Files (x86)/AviSynth+/plugins64+/mscvcm90.dll’.
(D:\Avisynth\Template.avs, line 2)

I’ve gone back over the install instruction from a number of sources but can’t get past it.
I’m thinking that the .dll is the video playback and there may be things linked to that which are causing the problem.
Any ideas?

StainlessS
4th April 2020, 20:12
Avisynth 64 bit can only use 64 bit plugins, 32 bit only 32 bit plugins. [Not all plugins have 64 bit versions].

‘C:/Prgram Files (x86)/AviSynth+/plugins64+/mscvcm90.dll’
Typo in D9 post ?

‘C:/Prgram Files (x86)/AviSynth+/plugins64+/mscvcm90.dll’.
Windows runtime dll, not Avs plugin.

What is "D:\Avisynth\Template.avs" ?

FFMPEGSource2 requires FFMS2.avsi in plugins. (as well as ffms2.dll)

Wile_E_Coyote
5th April 2020, 14:50
Typo in D9 post?
Yep, sorry. My typing has improved 100% over the years...I can now type with one finger...on both hands!

What is "D:\Avisynth\Template.avs"?
It's the Avisynth template .avs file that I'm trying to create so that each VHS capture just needs tweaking (cropping etc.) My HD is partitioned with C:\ being the OS and D:\ the dedicated work drive after migrating everything else to the w10 PC.

FFMPEGSource2 requires FFMS2.avsi in plugins. (as well as ffms2.dll)
I'll look into it, thanks for your time and effort.

StainlessS
5th April 2020, 15:59
It's the Avisynth template .avs file that I'm trying to create
If you post it, matbe someone can point out where your problem lies.

Floatingshed
7th April 2020, 12:04
I have a project on the go which requires edits based more on soundtrack than pictures. Is there anyway to preview a trim operation in both video and audio?
I realize that I can do this with an external player but that is extremely time consuming, having to scroll through to find the edit point each time. Ideally I need to play the video and audio from a few frames before the currently selected frame, to a few frames past it.
I imagine I could launch an external player in a macro, but how do you tell the player to start at a predetermined frame rather than frame 0?
Any ideas please?

PerDeConf
8th April 2020, 11:50
Maybe Ctrl+G with mpc-hc
https://i.postimg.cc/nV14zfhL/screenshot-399.png

Emulgator
8th April 2020, 22:55
Waveform()

Wile_E_Coyote
10th April 2020, 16:34
If you post it, matbe someone can point out where your problem lies.

Finally managed to get AvsPmod working today by downloading the AMVapp pack and, following various tutorials, created a template .avs file that I can use for each capture (just adjusting the crops). VirtualDub is processing my first file now but when I went back to close AvsPmod, I got an error box saying -

Traceback (most recent call last):
File "AvsP.pyo", line 5329, in OnClose
File "AvsP.pyo", line 7195, in ExitProgram
File "AvsP.pyo", line 7820, in SaveSession
IOError: [Errno 13] Permission denied: u'C:\\Program Files (x86)\\AvsPmod\\_last_session_.ses'

I have now changed the permissions for that folder and all is well.

Looking forward to my first file! I haven't done anything fancy, just the bare minimum, having mooched around in the forums, it looks like it's a very, very long piece of string - you guys amaze me.:thanks:

LigH
10th April 2020, 17:26
Groundhog Day again?

Do not run AvsPmod in a UAC protected directory.

JKyle
30th August 2020, 19:28
AvsPmod 2.6.3.5 GPo x64 fails to load with the following error log in error_log.txt:

Traceback (most recent call last):
File "run.py", line 49, in <module>
File "avsp.pyo", line 19771, in main
File "wx\_core.pyo", line 8622, in __init__
File "wx\_core.pyo", line 8187, in _BootstrapApp
File "avsp.pyo", line 19758, in OnInit
File "avsp.pyo", line 5412, in __init__
File "avsp.pyo", line 13471, in LoadSession
File "avsp.pyo", line 13559, in LoadTab
KeyError: 'bookmarks'

My system:
Windows 10 Home build 19041.450, x64
AviSynth+ 3.6.1 (installed)

I rolled it back to 2.6.3.4 and it works OK.

gispos
30th August 2020, 21:31
AvsPmod 2.6.3.5 GPo x64 fails to load with the following error log in error_log.txt:

Traceback (most recent call last):
File "run.py", line 49, in <module>
File "avsp.pyo", line 19771, in main
File "wx\_core.pyo", line 8622, in __init__
File "wx\_core.pyo", line 8187, in _BootstrapApp
File "avsp.pyo", line 19758, in OnInit
File "avsp.pyo", line 5412, in __init__
File "avsp.pyo", line 13471, in LoadSession
File "avsp.pyo", line 13559, in LoadTab
KeyError: 'bookmarks'

My system:
Windows 10 Home build 19041.450, x64
AviSynth+ 3.6.1 (installed)

I rolled it back to 2.6.3.4 and it works OK.

I probably overlooked it.
The sessions saved with the previous version cannot be opened with the new version. So you have to save a new session first, then there should be no problems.

If it is absolutely necessary to open the old sessions with the new version, I can fix that.

The AvsPmod thread of the newer versions is here. (https://forum.doom9.org/showthread.php?t=175823)

ENunn
22nd January 2021, 02:26
Trimming has been somewhat broken since 2.6.6.0. I have to revert to 2.6.5.3 to make it work properly. Hope there's a fix soon!
https://www.youtube.com/watch?v=DvqWM-jcBgM

arestarh
22nd January 2021, 09:25
Trimming has been somewhat broken since 2.6.6.0. I have to revert to 2.6.5.3 to make it work properly. Hope there's a fix soon!
https://www.youtube.com/watch?v=DvqWM-jcBgM
Seems like newer version is being discussed in thread
https://forum.doom9.org/showthread.php?t=175823

gispos
22nd January 2021, 12:39
Trimming has been somewhat broken since 2.6.6.0. I have to revert to 2.6.5.3 to make it work properly. Hope there's a fix soon!
https://www.youtube.com/watch?v=DvqWM-jcBgM
Hi there,
In the youtube video I can't follow your fast moves :) so please explain the error to me in more detail.

I found one mistake, but it is probably not the only one. And please post in the thread that arestarh has linked.

I sent you a private message.

Lirk
12th July 2021, 16:54
How to clear recently opened files list?

kedautinh12
12th July 2021, 17:06
Check last ver?
https://forum.doom9.org/showthread.php?p=1946784#post1946784

StormMeows
14th July 2021, 22:27
Hey guys is it possible to interleave a bluray 1080p source to an encoded sample x265? I use pretty much the same script when interleaving x264 to the bluray source and it works fine. When I try the same script with x265 it gives me the error "Interleave formats do not match." Any way to remedy this so I can check my x265 10bit samples? Here is the script I am trying to use and I use this for testing x264:

a=Import("C:\Bluray\Avatar.avs")
\.subtitle("Source" , y=0, size=16, align=7)

b=FFVideoSource("C:Bluray\test.x265.mkv")
\.ffinfo(framenum=true,frametype=true,cfrtime=false,vfrtime=false)
\.subtitle("CRFnew", y=40, size=16, align=7)

Interleave (a,b)

Thanks for any help!

StainlessS
15th July 2021, 09:32
Just comment out the interleave line, and use at end, Return a.Info, and then Return b.Info
to see what properties are different.

[EDIT: For instance, You cannot join clips of different dimensions, or if one clip is YV12, and the other is RGB32]

StormMeows
15th July 2021, 17:56
Just comment out the interleave line, and use at end, Return a.Info, and then Return b.Info
to see what properties are different.

[EDIT: For instance, You cannot join clips of different dimensions, or if one clip is YV12, and the other is RGB32]

Thank you! I will most likely be switching back to x264 8 bit for 1080p bluray encodes due to how long the x265 counterparts take. This is great info to know though!

moviest
28th August 2021, 14:40
Hello

Tried AvsPMod 2.5.1 on Win10 x64

"---------------------------
Error
---------------------------
Cannot load a 64 bit DLL in 32 bit Avisynth: 'C:/Programs/AviSynth+/plugins64+/AddGrainC.dll'.

(B:\RE\re3\re3_analysis.avs, line 6)
---------------------------
ОК
---------------------------
"

Yes, i know about bitness
Yes, everything works fine outside AvsPMod (x64, ffmpeg etc)
Yes, custom directory for Avisynth+ x64 and plugins has been specified

So, what is wrong?

martin53
24th January 2022, 18:56
https://github.com/gispos/AvsPmod says this is the discussion of the recent AvsPMod, which I like and use really much ‒ thank you, gispos! :thanks: - so I'll give it a try.

I wonder how I could display informations from the script without subtitles, because they distort clip statistics, get unreadable when I zoom out, demand a switch between dev/production script etc.

And because there is a quite versatile status line in AvsPMod, maybe it can check if some global variables are defined, say AvsPUser0 to AvsPUser9 or so, and if so, display them at the locations where the user entered %AU0 ... %AU9 like the values it can display today? Or even the user can give arbitrary names: unknown names in the status line definition after the percent sign are checked for being global script variables?

(I think of run time values here, that change frame by frame and can be watched more conveniently in a status line than in the debug output which is a different window and logs much more)

Thank you for reading this, and even more for considering the idea :)

Reel.Deel
24th January 2022, 19:03
https://github.com/gispos/AvsPmod says this is the discussion of the recent AvsPMod...

Probably has not been updated but the discussion moved to here: https://forum.doom9.org/showthread.php?t=175823

gispos
24th January 2022, 20:39
I wonder how I could display informations from the script without subtitles, because they distort clip statistics, get unreadable when I zoom out, demand a switch between dev/production script etc.

Use frame properties.The values can be displayed under Video > 'Frame properties'
Simple example.

Sub1 = "I'm Subtitle 1"
Sub2 = "I'm Subtitle 2"
propSet("Sub1", Sub1)
propSet("Sub2", Sub2)
propSet("Subs", [Sub1, Sub2])

https://i.postimg.cc/cC0KcgMk/Subtitle.jpg (https://postimages.org/)

And as Reel.Deel wrote, the discussion moved to here: https://forum.doom9.org/showthread.php?t=175823

wonkey_monkey
26th January 2022, 12:05
Out of curiosity, what happens under the hood when you move a filter's sliders? Is the whole filter chain rebuilt from scratch? Or is AvsPmod parsing the text itself and keeping track of invokes (or something) so it only has to to back as far as the changed filter?

gispos
26th January 2022, 18:07
Out of curiosity, what happens under the hood when you move a filter's sliders? Is the whole filter chain rebuilt from scratch? Or is AvsPmod parsing the text itself and keeping track of invokes (or something) so it only has to to back as far as the changed filter?
I don't want two threads:)
https://forum.doom9.org/showthread.php?p=1962397#post1962397

Mounir
13th April 2023, 10:25
I'm in trouble with AVSpMod
it used to work ok, now i can't even encode (with script encoder VFW) the most basic script. Enlighten me pls.



Traceback (most recent call last):
File "avsp.pyo", line 9251, in OnMenuToolsRunSelected
File "C:\Program Files (x86)\AvsPmod\tools\avs2avi_gui.py", line 347, in avsp_run
dlg = Avs2aviDialog(avsp.GetWindow(), inputname, title=_('Save as AVI'))
File "C:\Program Files (x86)\AvsPmod\tools\avs2avi_gui.py", line 10, in __init__
self.LoadOptions()
File "C:\Program Files (x86)\AvsPmod\tools\avs2avi_gui.py", line 127, in LoadOptions
self.options = cPickle.load(f)
EOFError

gispos
13th April 2023, 16:26
I'm in trouble with AVSpMod
it used to work ok, now i can't even encode (with script encoder VFW) the most basic script. Enlighten me pls.
The error seems to be caused by a corrupted or incompatible option file.
Please delete the files avs2avi_gui.pyo and avs2avi_gui.dat in the AvsPmod\Tools folder and try again.

Current AvsPmod thread
https://forum.doom9.org/showthread.php?t=175823

Edit:
https://drive.google.com/file/d/1cCf3_PVyzj3kUOrWpKlCQ3FRjkliIz4m/view?usp=sharing

Swap the avs2avi_gui.py in the tools directory with the one in the archive.
Added an error message if your folders where AvsPmod is located are write protected. Then please change.

What version of AvsPmpd are you using?

Mounir
14th April 2023, 09:07
Iv'e tried the latest version it now work again

mastrboy
29th April 2023, 15:11
Is it possible to swap the searchbox bound to "CTRL+F" with the one "CTRL+H" uses? (As in CTRL+F should open the same searchbox that CTRL+H does...)

gispos
29th April 2023, 16:19
Is it possible to swap the searchbox bound to "CTRL+F" with the one "CTRL+H" uses? (As in CTRL+F should open the same searchbox that CTRL+H does...)
I'm not going to post any more replies in this thread.
The current AvsPmod thread opens when you click on the AvsPmod Doom9 Forum link under Version Information.

I had just posted a new version... now the old thread is over it again.:angry:

AvsPmod Thread
https://forum.doom9.org/showthread.php?t=175823

drunksunk
2nd May 2023, 14:06
I get these errors when opening the program: https://i.imgur.com/0E3vuga.png

Any clues?

VoodooFX
2nd May 2023, 15:15
I get these errors when opening the program: https://i.imgur.com/0E3vuga.png

Any clues?

"AvsPmod 2.5.1" is outdated and this thread is abandoned. You have go there: https://forum.doom9.org/showthread.php?t=175823

Wilbert
2nd May 2023, 15:15
See first post for new thread. I closed this one since it is outdated.