Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th August 2017, 11:57   #1  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
AVSMeter 2.8.6

AVSMeter is a CLI (command line interface) tool which measures the speed/efficiency of Avisynth scripts and checks if Avisynth and its plugin sub-system are set up and working correctly.

Features:
  • "Running" scripts with virtually no overhead, displaying clip info, CPU/GPU usage / memory usage and the minimum, maximum and average frames processed per second. Measuring how fast Avisynth can serve frames to a client application (x264, VirtualDub) and establishing CPU/GPU/memory usage helps with optimizing scripts and tracking down crashes, slowdowns and bottlenecks.
  • Performing a thorough test of the Avisynth installation and associated plugins, checking if external dependencies are installed, etc.

Screen shots:





Code:
Command line usage 1 (analysing a script):  AVSMeter script.avs [switches]

Switches:
  -avsdll             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)
  -o                  Omit script pre-scanning

Note:
For normal operation, i.e. testing the speed of a script, the "-o" switch should not be used,
otherwise the accuracy of the FPS/TPF measurements will be reduced, particularly for fast scripts.


Command line usage 2 (display extended Avisynth info):  AVSMeter avsinfo [switches]

Switches:
  -avsdll             Specify avisynth.dll to be used
  -c                  Specify custom plugin directory
  -log    [-l]        Create log file
  -lf                 Add internal/external functions to the log file

For all features to work properly, run this program with administrative user rights.


Recent changes:

v2.8.6
  • Minor fixes/cosmetics
  • Documentation updates/corrections

Documentation
Download
GPU-Z (needed when using the "-gpu" switch)

Last edited by Groucho2004; 1st October 2018 at 18:03.
Groucho2004 is offline   Reply With Quote
Old 11th August 2017, 13:35   #2  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 986
Where are all the posts?
lansing is offline   Reply With Quote
Old 11th August 2017, 13:39   #3  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
Quote:
Originally Posted by lansing View Post
Where are all the posts?
I deleted the old thread a while ago. The old posts are not really relevant any more since so many things were changed/fixed.
Groucho2004 is offline   Reply With Quote
Old 12th August 2017, 15:51   #4  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
v2.6.1
  • The list of plugin functions in the log file (-avsinfo -log) now points out duplicates (functions with the same name in different DLLs) by adding "[DUPLICATE]" to the function name(s)
Groucho2004 is offline   Reply With Quote
Old 13th August 2017, 04:23   #5  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,903
Quote:
Originally Posted by Groucho2004 View Post
v2.6.1
  • The list of plugin functions in the log file (-avsinfo -log) now points out duplicates (functions with the same name in different DLLs) by adding "[DUPLICATE]" to the function name(s)
Very handy, ta very much.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is online now   Reply With Quote
Old 16th August 2017, 21:24   #6  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
v2.6.2
  • Fixed a problem caused by the 50 plugin limit in "classic" Avisynth
Groucho2004 is offline   Reply With Quote
Old 17th August 2017, 07:53   #7  |  Link
VS_Fan
Registered User
 
Join Date: Jan 2016
Posts: 76
It is flagging with the [DUPLICATE] suffix only one of the instances of duplicated functions, both in 32 and 64 bits:
  • 32 bits: deblock_Deblock [DUPLICATE] _vs_ DGDecode_Deblock (Not flagged)
  • 64 bits: deblock_Deblock (Not flagged) _vs_ MPEG2DecPlus64_Deblock [DUPLICATE]
It is useful this way, but could be better/clearer flagging all of the duplicated instances.
VS_Fan is offline   Reply With Quote
Old 17th August 2017, 09:19   #8  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,903
Quote:
Originally Posted by VS_Fan View Post
It is flagging with the [DUPLICATE] suffix only one of the instances of duplicated functions, both in 32 and 64 bits:
  • 32 bits: deblock_Deblock [DUPLICATE] _vs_ DGDecode_Deblock (Not flagged)
  • 64 bits: deblock_Deblock (Not flagged) _vs_ MPEG2DecPlus64_Deblock [DUPLICATE]
It is useful this way, but could be better/clearer flagging all of the duplicated instances.
Fair point, but perhaps DUPLICATED could be better description where flagging all instances.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is online now   Reply With Quote
Old 17th August 2017, 09:30   #9  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
The duplicate detection ignores the plugin (file) name, so it just checks the "short" function names which is the whole point of this feature.

Last edited by Groucho2004; 17th August 2017 at 12:17.
Groucho2004 is offline   Reply With Quote
Old 9th September 2017, 11:18   #10  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
v2.6.3
  • Fixed: Updating very old ini files didn't work
  • Removed report of duplicate plugin functions temporarily
  • Some minor fixes/cosmetics
Groucho2004 is offline   Reply With Quote
Old 10th September 2017, 09:17   #11  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
v2.6.4
  • New/updated code for reporting duplicate plugin functions


Reporting of duplicate plugin functions is now integrated in the "Plugin error/warnings" section and lists all plugins that export functions with the same name.
Example:
Code:
[Plugin errors/warnings]
___________________________________________________________________________________________________

Duplicate plugin function "nnedi3":
    e:\apps\videotools\avisynthrepository\avsplus_x86\plugins\nnedi3.dll
    e:\apps\videotools\avsplugins\autoload\nnedi3.dll
___________________________________________________________________________________________________

Duplicate plugin function "nnedi3_rpow2":
    e:\apps\videotools\avisynthrepository\avsplus_x86\plugins\nnedi3.dll
    e:\apps\videotools\avsplugins\autoload\nnedi3.dll
___________________________________________________________________________________________________

Cannot load file 'E:/Apps/VideoTools/AVSPlugins/AutoLoad/IBob.dll'. Platform returned code 126:
The specified module could not be found.

Dependencies that could not be loaded:
  avisynth_c.dll

Note: C 2.0 Plugins are not supported by Avisynth+
___________________________________________________________________________________________________

Last edited by Groucho2004; 10th September 2017 at 09:21.
Groucho2004 is offline   Reply With Quote
Old 14th September 2017, 17:39   #12  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
v2.6.5
  • Added hint for error 127 (proc not found / procedure could not be found)
  • Minor fixes/cosmetics
Groucho2004 is offline   Reply With Quote
Old 20th September 2017, 10:22   #13  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 94
Access violation in AVSMeter

Quote:
C:\Users\Walter\Downloads\AVSMeter265>"AVSMeter.exe" C:\Users\Walter\Documents\SMIL\BSG23\testsuite\OLED\ColorCheck\PhotoDirList2020Plus.xml.smil.avs -log

AVSMeter 2.6.5 (x86) - Copyright (c) 2012-2017, Groucho2004
AviSynth+ 0.1 (r2508, MT, i386) (0.1.0.0)

Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\Shibatch.dll
Address: 0x6570A393

C:\Users\Walter\Downloads\AVSMeter265>SHIFT
Quote:
C:\Users\Walter\Downloads\AVSMeter265>"AVSMeter.exe" -avsinfo

AVSMeter 2.6.5 (x86) - Copyright (c) 2012-2017, Groucho2004

VersionString: AviSynth+ 0.1 (r2508, MT, i386)
VersionNumber: 2.60
File / Product version: 0.1.0.0 / 0.1.0.0
Interface Version: 6
Multi-threading support: Yes
Avisynth.dll location: C:\WINDOWS\SysWOW64\avisynth.dll
Avisynth.dll time stamp: 2017-06-29, 09:00:22 (UTC)
PluginDir2_5 (HKLM, x86): C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins
PluginDir+ (HKLM, x86): C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins


[CPP 2.6 / 32 Bit Plugins]
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\ConvertStacked.dll
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\DirectShowSource.dll
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\ImageSeq.dll
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\Shibatch.dll
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\TimeStretch.dll
C:\Users\Walter\Downloads\AvisynthUniversalInstaller_2017-09-02\AvisynthRepository\AVSPLUS_x86\plugins\VDubFilter.dll

C:\Users\Walter\Downloads\AVSMeter265>SHIFT
Above violation occurs on a script of 1400 lines. The script displays well in AvsPmod which gives Video Information correctly (CS = RGB24)

Problem is not important for me.
george84 is offline   Reply With Quote
Old 20th September 2017, 10:40   #14  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
Quote:
Originally Posted by george84 View Post
Above violation occurs on a script of 1400 lines. The script displays well in AvsPmod which gives Video Information correctly (CS = RGB24)
What happens when you open/run the script in VirtualDub?
Groucho2004 is offline   Reply With Quote
Old 20th September 2017, 11:12   #15  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 94
Checked with 2 different versions of Vdub. Both crash in shibach.dll.

See attachments
Attached Files
File Type: txt crashinfo2.txt (10.6 KB, 20 views)
File Type: txt crashinfo.txt (11.2 KB, 10 views)
george84 is offline   Reply With Quote
Old 20th September 2017, 18:09   #16  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
Quote:
Originally Posted by george84 View Post
Checked with 2 different versions of Vdub. Both crash in shibach.dll.
So, it's not just AVSMeter. Can you post the full script and possibly a short clip so we can reproduce this?
Groucho2004 is offline   Reply With Quote
Old 20th September 2017, 21:37   #17  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 94
Will take some time.
george84 is offline   Reply With Quote
Old 26th September 2017, 10:07   #18  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 94
The crash doesn't occur when I remove following code from script.

Quote:
SMILrootlayout = Overlay(SMILrootlayout, SMILregion1, x = SMILregion1_left, y = SMILregion1_top, pc_range = false)
left and top are 0.

SMILregion1 is a BlankClip of length=0.
george84 is offline   Reply With Quote
Old 26th September 2017, 18:13   #19  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,878
Quote:
Originally Posted by george84 View Post
The crash doesn't occur when I remove following code from script.
A single line from your script doesn't help tracking down the problem. Post it in the AVS+ thread since it obviously isn't a problem with AVSMeter.
Groucho2004 is offline   Reply With Quote
Old 26th September 2017, 18:21   #20  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 94
Quote:
Originally Posted by Groucho2004 View Post
A single line from your script doesn't help tracking down the problem. Post it in the AVS+ thread since it obviously isn't a problem with AVSMeter.
As I said in the beginning everything works fine in AVS+. Only AVSMeter and VDub Crash. AVSPmod does also good preview.
I just wanted to help you track the crash in AVSMeter.

As I also said it is not all important for me. So let it die.
george84 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.