Log in

View Full Version : AVSMeter 3.0.9.0


Pages : 1 2 [3] 4 5 6 7 8 9

Groucho2004
4th July 2018, 11:43
Did you try the suggestion below the error message?

Edit: I've never used Powershell so I can't help you with this. Maybe someone else can shed some light.

goorawin
4th July 2018, 11:52
Yes I did and no luck.
I also tried it on the system drive, same error.
I haven't loaded everything onto the system yet but so far most things work as expected including AVSPmod. Some of the avisynth plugin took sometime to work as had to install some of the older versions of Visual C++.
Windows has all the latest updates.

Groucho2004
4th July 2018, 11:56
As I mentioned above, no idea. AVSMeter only requires standard system DLLs, no runtimes, etc. necessary.

Groucho2004
4th July 2018, 12:11
Yes I did and no luck.
I also tried it on the system drive, same error.
I haven't loaded everything onto the system yet but so far most things work as expected including AVSPmod. Some of the avisynth plugin took sometime to work as had to install some of the older versions of Visual C++.
Windows has all the latest updates.
Google "PowerShell doesn't load commands from the current location by default". Plenty of people having this problem with PS.

goorawin
4th July 2018, 12:17
Thanks for your input.
Will see if I can figure it out over time.

Groucho2004
4th July 2018, 12:20
Thanks for your input.
Will see if I can figure it out over time.
I assume that you have a good reason to run PS. However, with the standard console you would not have that problem.

StainlessS
4th July 2018, 13:01
Tried out PS with AvsMeter.exe in C:\BIN\ and test.avs in C:\T\

https://s20.postimg.cc/3rewmcz3h/PShell.jpg (https://postimages.org/)

EDIT: The [EDIT: AvsMeter] error message in this case dont matter, script was just
version

qyot27
4th July 2018, 13:10
Yes I did and no luck.
I also tried it on the system drive, same error.
I haven't loaded everything onto the system yet but so far most things work as expected including AVSPmod. Some of the avisynth plugin took sometime to work as had to install some of the older versions of Visual C++.
Windows has all the latest updates.
Prepend the command with .\ like the suggestion tells you to. This is not unexpected behavior, and I can confirm that here: with the path specifier, avsmeter64 runs fine in PS - without it, it throws the exact same error. Do not use quotation marks.

Or better yet, actually take advantage of PS' tab autocompletion feature to make sure the command is written correctly.

To demonstrate this, navigate back a couple directories and use the fuller relative path - it works, with or without the .\, because you're specifying the directory. Stuff on the %PATH% also works exactly as cmd.exe handles it.

PS E:\> cd .\Documents\AVSMeter278\
PS E:\Documents\AVSMeter278> ls


Directory: E:\Documents\AVSMeter278


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 6/9/2018 6:07 AM doc
d----- 6/9/2018 6:07 AM source
-a---- 6/9/2018 6:07 AM 373248 AVSMeter.exe
-a---- 6/9/2018 6:07 AM 473088 AVSMeter64.exe


PS E:\Documents\AVSMeter278> avsmeter64
avsmeter64 : The term 'avsmeter64' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ avsmeter64
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (avsmeter64:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


Suggestion [3,General]: The command avsmeter64 was not found, but does exist in the current location. Windows PowerShell
does not load commands from the current location by default. If you trust this command, instead type: ".\avsmeter64".
See "get-help about_Command_Precedence" for more details.
Doing what it says to do:
PS E:\Documents\AVSMeter278> .\avsmeter64

AVSMeter 2.7.8 (x64) - Copyright (c) 2012-2018, Groucho2004

Usage: AVSMeter script.avs [switches]

Switches:
-avsinfo [-ai] Display extended Avisynth info
-c Specify custom plugin directory
in combination with "-avsinfo"

-avsdll [-ad] Specify avisynth.dll to be used
-info [-i] Display clip info
-log [-l] Create log file
-csv Create csv file
-gpu Display GPU/VPU usage (requires GPU-Z)
-range=first,last Set frame range
-timelimit=n Set time limit (seconds)
-priority=n Set process priority (1:low, 2:normal, 3:high)

For more info on the command line switches and INI file
settings read the documentation (AVSMeter.html) included
in the distribution package.

Running from a directory above:
PS E:\Documents> AVSMeter278\AVSMeter64.exe

AVSMeter 2.7.8 (x64) - Copyright (c) 2012-2018, Groucho2004

Usage: AVSMeter script.avs [switches]

Switches:
-avsinfo [-ai] Display extended Avisynth info
-c Specify custom plugin directory
in combination with "-avsinfo"

-avsdll [-ad] Specify avisynth.dll to be used
-info [-i] Display clip info
-log [-l] Create log file
-csv Create csv file
-gpu Display GPU/VPU usage (requires GPU-Z)
-range=first,last Set frame range
-timelimit=n Set time limit (seconds)
-priority=n Set process priority (1:low, 2:normal, 3:high)

For more info on the command line switches and INI file
settings read the documentation (AVSMeter.html) included
in the distribution package.

PS E:\Documents>

Trying a program on the %PATH%:
PS E:\Documents\AVSMeter278> youtube-dl --help
Usage: youtube-dl [OPTIONS] URL [URL...]

Options:
General Options:
-h, --help Print this help text and exit
--version Print program version and exit
-U, --update Update this program to latest version. Make sure that you have sufficient
[...]


The point here is that PowerShell is not cmd.exe - cmd.exe assumes the current directory is on the %PATH%, PowerShell does not. PowerShell's behavior conforms to the way most non-Windows-centric shells behave, which is fine, since PowerShell also uses a greatly-expanded scripting language compared to cmd.exe.

'.\' (or './' on shells like bash - the ubiquitous './configure' when compiling stuff is the configure script in the current directory; when doing out-of-tree builds there's no need to use ./, because you give it the full or relative path) is a directory specifier, a piece of shorthand that explicitly says 'this file is in the current directory'*, because you can run a binary or script from a relative path just outside the directory, or from an absolute path (E:\Documents\AVSMeter278\<application name> or AVSMeter278\<application name> if you're sitting in Documents). The same way ~/ means 'your %HOME% directory'.

*'.' is what denotes the current directory, while / or \ is the path separator, depending on your OS.

So if you want to keep using PowerShell, your solution is one of:
A) Copy AVSMeter.exe to C:\Windows\SysWOW64 and AVSMeter64.exe to C:\Windows or C:\Windows\System32 (because those directories are on the %PATH%).
B) Explicitly add the AVSMeter278 directory to the %PATH%, wherever it resides.
C) Get used to having to use .\ as the directory specifier.

goorawin
5th July 2018, 11:04
Thank you all for your help, I was able to get it loading correctly through PowerShell, much appreciated.
Strange that it works on one Windows 10 system but not the other and yet all have the same updates!!!!!!

StainlessS
5th July 2018, 11:58
Strange that it works on one Windows 10 system but not the other and yet all have the same updates!!!!!!

But maybe not same %PATH%, or not same contents of those %PATH% paths.

On windows 10, to view %PATH%, for system and for your own account, in cortana thing type "Environment" and click on
"Edit environment variables for your account",

Will show both your account and system Environment variables.

Below, (WXP32), Shows my System %PATH% has "C:\BIN\" in it.


https://s20.postimg.cc/pnex98a99/PS2.jpg (https://postimages.org/)

Try the $Env:Path thing on both W10 machines, and see in which path avsmeter lives on working W10 machine, then check the same directory is on %PATH% on non working machine, and that it also contains the avsmeter.exe.

EDIT: In image, "# list path" is a comment (preceded by '#'),
avsmeter is accessed via %PATH% (ie C:\BIN\ and without the .exe bit) and ".\T\Test.avs" is relative current directory, ie "C:\".
EDIT: I know that PowerShell 2.0 is probably better, but currently on a temp OS whilst setting up XP64 on other partition.

EDIT: Just noticed that in forum post that both "C:\BIN\" and "C:\" require a double backslash escape on trailing backslash before
the double quote, else the trailing backslash disappears.

Groucho2004
19th July 2018, 08:01
v2.7.9

Reorganised command line usage (see first post for details).
Added switch "-o" which disables the script pre-scan (see first post for details).
Cosmetics

Yanak
19th July 2018, 09:27
Thank you very much for the update and the option to disable the pre-scan :)

tebasuna51
19th July 2018, 11:04
Remember the new sintax, because if somebody have a batch file like me...

C:\Mios\Av>AVSMeter -avsinfo -log

AVSMeter 2.7.9 (x86) - Copyright (c) 2012-2018, Groucho2004

Invalid argument: "-avsinfo"

Now avsinfo must be without the '-':

AVSMeter avsinfo -log

Groucho2004
20th July 2018, 12:32
v2.8.0

Fixed a display bug
Further reduced memory overhead

Groucho2004
22nd July 2018, 15:05
v2.8.1

Various small fixes

StainlessS
22nd July 2018, 15:30
G, AvsMeter connect Timed out, (zip is/was named v2.80).

EDIT:
However, this works:- http://www.iol.ie/~schubert/gas/AVSMeter281.7z

Groucho2004
22nd July 2018, 15:47
G, AvsMeter connect Timed out, (zip is/was named v2.80).Hit refresh and it'll work.

StainlessS
22nd July 2018, 16:02
Hit refresh and it'll work.

Damn yeah, you truly are the chosen one :)

Groucho2004
22nd July 2018, 16:13
Damn yeah, you truly are the chosen one :)Stop it, you make me blush. :o

magiblot
30th July 2018, 22:15
With the -csv parameter (and maybe others), if the script finishes rendering with the CMD or PowerShell window being out of focus, the file save dialog doesn't appear for me. Do you experience the same?

I'm on Windows 8.1 x64.

Groucho2004
31st July 2018, 05:57
With the -csv parameter (and maybe others), if the script finishes rendering with the CMD or PowerShell window being out of focus, the file save dialog doesn't appear for me. Do you experience the same?

I'm on Windows 8.1 x64.Strange, this works for me. Please try with this (http://www.iol.ie/~schubert/AVSMTest01.7z) test build.

magiblot
31st July 2018, 06:30
Actually, I found out it's not always that the save file dialog doesn't appear. It fails when AVSMeter is run from a CMD window without admin privileges and the focus is on a program which was run with admin privileges. There's no issue with the opposite combination.

Unfortunately, the test build doesn't fix the problem.

Thanks.

Groucho2004
31st July 2018, 07:15
Actually, I found out it's not always that the save file dialog doesn't appear. It fails when AVSMeter is run from a CMD window without admin privileges and the focus is on a program which was run with admin privileges. There's no issue with the opposite combination.

Unfortunately, the test build doesn't fix the problem.

Thanks.
Well, just run it with admin privileges then, as intended. :)

magiblot
31st July 2018, 07:50
Well, just run it with admin privileges then, as intended. :)

Yeah, it's no problem :). However, I would be very grateful if you could remind this in the first post (or the documentation).

Cheers.

Groucho2004
31st July 2018, 08:05
Actually, I found out it's not always that the save file dialog doesn't appear. It fails when AVSMeter is run from a CMD window without admin privileges and the focus is on a program which was run with admin privileges.So, the File Save As dialog doesn't appear at all? It doesn't even pop up in the background?

magiblot
31st July 2018, 15:16
So, the File Save As dialog doesn't appear at all? It doesn't even pop up in the background?

Excuse me for the wait. Yeah, that's it. I made a screen recording of it:

https://drive.google.com/open?id=1DRoUc0FsXtFoQAijO4Ra_iQUhHcrXzBJ

It has audio.

Groucho2004
31st July 2018, 21:33
Excuse me for the wait. Yeah, that's it. I made a screen recording of it:

https://drive.google.com/open?id=1DRoUc0FsXtFoQAijO4Ra_iQUhHcrXzBJ

It contains audio.
Thanks. I'll look into it.

Groucho2004
17th August 2018, 09:57
v2.8.2

Improved command line switch logic/verification
Changed ini file default for "LogUseFileSaveDialog" to "0"
CPU usage now displayed as rational number
Memory usage now only displays the "Working Set" which represents the amount of memory physically mapped to the process context.
Various fixes and tweaks
Cosmetics

StvG
1st September 2018, 08:18
v2.8.2 / Avisynth+ r2728 x86_64 / ffms2 (https://forum.doom9.org/showthread.php?p=1783312#post1783312)

Script: LoadCPlugin("ffms2.dll")
FFVideoSource("input.mkv",cachefile="ariba.ffindex")
Avsmeter is running without problems when using "-o".
W/o "-o" it starts scanning the script and then suddenly quits.

Groucho2004
1st September 2018, 08:55
v2.8.2 / Avisynth+ r2728 x86_64 / ffms2 (https://forum.doom9.org/showthread.php?p=1783312#post1783312)

Script: LoadCPlugin("ffms2.dll")
FFVideoSource("input.mkv",cachefile="ariba.ffindex")
Avsmeter is running without problems when using "-o".
W/o "-o" it starts scanning the script and then suddenly quits.
Try this (https://www.dropbox.com/s/c1hdxx20q2vgpzb/avsm_test.7z?dl=1) test build.

StvG
1st September 2018, 09:31
Same - https://i.imgaa.com/2018/09/01/5b8a4e2d593eb.jpg

Groucho2004
1st September 2018, 09:56
Same - https://i.imgaa.com/2018/09/01/5b8a4e2d593eb.jpgHm, try this build (https://www.dropbox.com/s/29wo3sjahwh7ltz/avsm_test2.7z?dl=1).

StvG
1st September 2018, 10:07
It's ok now.

Groucho2004
2nd September 2018, 14:30
v2.8.3

Changed to implicit loading of avisynth.dll which seems more stable in multithreaded environments
Fixed timing issue when deleting IScriptEnvironment objects

Taurus
2nd September 2018, 21:29
v2.8.3
Is this expected behaviour?:
AVSMeter does not even start (just flashes shortly)when dragging an avs file on it's icon if there is no AVSMeter.ini in it's folder.
With an AVSMeter.ini a message appears "Cannot load avisynth.dll:
Das System kann die angegebene Datei nicht finden." if started from command prompt.

By editing the AVSMeter.ini changing to "AVSDLL=c:\Windows\Syswow64\avisynth.dll" everything works as expected.
As you can see, this is a 32bit installation of avisynth.
The html help indicates that default is an empty string, which means that AVSMeter will attempt to load avisynth.dll through the standard Windows search hierarchy.
So we have to manually edit the ini before first start to let AVSMeter do it's magic?
Somewhat confusing to my eyes...or I may have got something wrong :D.

By the way: Thanks for your wonderful tool!

Groucho2004
2nd September 2018, 21:44
v2.8.3
Is this expected behaviour?:
AVSMeter does not even start (just flashes shortly)when dragging an avs file on it's icon if there is no AVSMeter.ini in it's folder.
With an AVSMeter.ini a message appears if started from command prompt.

By editing the AVSMeter.ini changing to "AVSDLL=c:\Windows\Syswow64\avisynth.dll" everything works as expected.
As you can see, this is a 32bit installation of avisynth.
The html help indicates that default is an empty string, which means that AVSMeter will attempt to load avisynth.dll through the standard Windows search hierarchy.
So we have to manually edit the ini before first start to let AVSMeter do it's magic?
Somewhat confusing to my eyes...or I may have got something wrong :D.

By the way: Thanks for your wonderful tool!
Certainly not expected behaviour. If you installed Avisynth, either with an "official" installer or my Universal Installer it should work without editing the ini file (and it should work if the ini file has not been created yet).

Which version of Avisynth did you install?
Does it happen with previous versions of AVSMeter?

Taurus
2nd September 2018, 22:40
Avisynth 2.6.0.6
All older versions of AVSMeter working reliable.
This is the first time it happened.
Yes, and the avisynth installation is doing fine in all used applications....
Thanks for looking into this issue.

Groucho2004
2nd September 2018, 22:57
Avisynth 2.6.0.6
All older versions of AVSMeter working reliable.
This is the first time it happened.
Yes, and the avisynth installation is doing fine in all used applications....
Thanks for looking into this issue.
I have not been able to reproduce this, I hope someone else can.

Meanwhile, could you please test this build (https://www.dropbox.com/s/fshuatckb48ocm9/avsm_test.7z?dl=1)?

StvG
2nd September 2018, 23:46
v2.8.3
Is this expected behaviour?:
AVSMeter does not even start (just flashes shortly)when dragging an avs file on it's icon if there is no AVSMeter.ini in it's folder.
With an AVSMeter.ini a message appears if started from command prompt.

By editing the AVSMeter.ini changing to "AVSDLL=c:\Windows\Syswow64\avisynth.dll" everything works as expected.
As you can see, this is a 32bit installation of avisynth.
The html help indicates that default is an empty string, which means that AVSMeter will attempt to load avisynth.dll through the standard Windows search hierarchy.
So we have to manually edit the ini before first start to let AVSMeter do it's magic?
Somewhat confusing to my eyes...or I may have got something wrong :D.

By the way: Thanks for your wonderful tool!

Same here - Cannot load avisynth.dll:
The system cannot find the file specified.

The latest test build (https://forum.doom9.org/showpost.php?p=1850471&postcount=138) - no change.

Btw the previous two test builds (this (https://forum.doom9.org/showpost.php?p=1850285&postcount=130) and this (https://forum.doom9.org/showpost.php?p=1850287&postcount=132)) had the same behavior. I didn't say anything because I thought the behavior is for the test build only.

Groucho2004
3rd September 2018, 00:04
Btw the previous two test builds (this (https://forum.doom9.org/showpost.php?p=1850285&postcount=130) and this (https://forum.doom9.org/showpost.php?p=1850287&postcount=132)) had the same behavior. I didn't say anything because I thought the behavior is for the test build only.
Ok, so version 2.8.1 still worked fine? Taurus' report seems to indicate that 2.8.2 was still fine.

I wish I could reproduce this...

Edit: I can reproduce it now on W7. It works fine on XP32 /XP64.

StvG
3rd September 2018, 00:27
2.8.2/2.8.1 - were fine.

Now I have c:\windows\system32\avisynth.dll for x86_64 (avsmeter64) and I can test x86 (avsmeter) too without changing the dll path.

With c:\windows\syswow64\avisynth.dll only x86 works, for x86_64 (avsmeter64) - AVSMeter (x64) cannot load a 32 Bit avisynth.dll.

Groucho2004
3rd September 2018, 00:48
I think I fixed it. Taurus, StvG, please try this build.
Edit: New release

StvG
3rd September 2018, 01:01
It's fine here.

Thanks for your tools.

Groucho2004
3rd September 2018, 07:50
v2.8.4

Regression from v2.8.3: Revert to "MapAndLoad" WinAPI function
Added switch "-v". In combination with "avsinfo", this switch adds a list of internal/external functions and DLL dependencies to the log file.


Taurus, StvG, please try this release and let me know if it fixes both issues ("cannot load avisynth.dll" and AVSMeter quitting after pre-scan).
TIA.

Taurus
3rd September 2018, 16:20
Yes, this is also on Win7 64bit.
Just tested:
Version 2.8.2 is doing fine.
Btw.: The dropbox link you gave me throws an 404 Error! (Can't find the page).

Taurus
3rd September 2018, 16:25
Version 2.8.4 is fine now!
Thank you!

Groucho2004
8th September 2018, 04:15
v2.8.5

Fixed a long standing exception handling bug

FranceBB
9th September 2018, 01:42
Thank you for the new version. ^_^

Groucho2004
1st October 2018, 18:03
v2.8.6

Minor fixes/cosmetics
Documentation updates/corrections

tormento
4th November 2018, 11:45
I have some troubles running AVSMeter64 with -gpu switch.

I have GPU-Z running in the background but I get 0% usage:
d:AVSMeter64.exe sacrificio_KNLMeansCL_pf6.avs -gpu

AVSMeter 2.8.6 (x64) - Copyright (c) 2012-2018, Groucho2004
AviSynth+ 0.1 (r2728, MT, x86_64) (0.1.0.0)

Number of frames: 1750
Length (hh:mm:ss.ms): 00:01:12.990
Frame width: 1920
Frame height: 1032
Framerate: 23.976 (24000/1001)
Colorspace: YV12

Frames processed: 1750 (0 - 1749)
FPS (min | max | average): 1.306 | 714286 | 14.06
Process memory usage (max): 447 MiB
Thread count: 72
CPU usage (average): 50.8%

GPU usage (average): 0%
GPU memory usage (Dedicated): 0 MiB

Time (elapsed): 00:02:04.483
Windows 10_x64, latest NVIDIA drivers on GTX 760