To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / README @ 26:eff1772ba397

History | View | Annotate | Download (10.4 KB)

1

    
2
Vamp Plugin Tester
3
==================
4

    
5
This program tests Vamp audio feature extraction plugins
6
(http://vamp-plugins.org/) for certain common failure cases.
7

    
8
To test a single plugin, run vamp-plugin-tester with the name of your
9
plugin library and plugin identifier, separated by a colon.  For example,
10

    
11
  $ vamp-plugin-tester vamp-example-plugins:amplitudefollower
12

    
13
The plugin library must be installed in the Vamp plugin path (you
14
cannot give the path to the library file).
15

    
16
If you run vamp-plugin-tester with no arguments, it will test all
17
plugins found in your Vamp plugin path.
18

    
19

    
20
Options
21
=======
22

    
23
Supply the -v or --verbose option to tell vamp-plugin-tester to print
24
out the whole content of its returned feature log for diagnostic
25
purposes each time it prints an error or warning that arises from the
26
contents of a returned feature.
27

    
28
Supply the -n or --nondeterministic option to tell vamp-plugin-tester
29
that your plugins are expected to return different results each time
30
they are run.  The default behaviour is to treat different results on
31
separate runs with the same input data as an error.
32

    
33

    
34
Errors and Warnings
35
===================
36

    
37
Each test may cause one or several notes, warnings, or errors to be
38
printed.  A note is printed when behaviour is observed that may be
39
correct behaviour but that is not always anticipated by the plugin
40
developer.  A warning is printed when behaviour is observed that is
41
technically legal but that in practice most often happens by mistake.
42
An error is printed when behaviour is observed that cannot be correct.
43

    
44
vamp-plugin-tester prints all of its commentary to the standard
45
output.  Standard error is usually used for diagnostic output printed
46
by the plugins themselves.
47

    
48
In addition to reports, vamp-plugin-tester runs some tests that are
49
intended to provoke the plugin into unexpected behaviour such as
50
memory errors.  If vamp-plugin-tester crashes during a test, this may
51
be why.  If you have access to a memory checker utility such as
52
valgrind, you are advised to run vamp-plugin-tester under it so as to
53
be informed of any memory errors that do not happen to cause crashes
54
(as well as memory leaks).  The vamp-plugin-tester binaries
55
distributed by QMUL have been compiled with debug information
56
included, in order to facilitate this type of use.
57

    
58

    
59
Error and Warning Reference
60
===========================
61

    
62
 ** ERROR: Failed to load plugin
63

    
64
 The plugin could not be loaded.  Remember that the plugin must be
65
 installed in the Vamp plugin path.
66

    
67
 Normally this message will be preceded by one of the following
68
 errors:
69

    
70
   Invalid plugin key <key> in loadPlugin
71

    
72
    - The argument given to vamp-plugin-tester could not be split
73
      into library name and plugin identifier.  Check the usage
74
      description above.
75

    
76
   No library found in Vamp path for plugin <key>
77

    
78
    - No Vamp plugin library of that name was found in the Vamp path.
79
      This message will often be accompanied by one of the following
80
      errors; if it isn't, then that probably means the file did not
81
      exist at all.
82

    
83
   Plugin <id> not found in library <name>
84

    
85
    - The library was found and loaded and was apparently a valid
86
      Vamp plugin library, but it didn't contain a plugin of that id.
87
      Check you typed the id correctly, and if this is your library,
88
      check that the vampGetPluginDescriptor function returns the
89
      plugin descriptor properly.
90

    
91
   Unable to load library <name>
92

    
93
    - A dynamic library of that name was found, but the system library
94
      loader could not load it.  Perhaps it depends on another library
95
      that is not available, or it was built for the wrong architecture.
96
      There may be more information in the error message.
97

    
98
   No vampGetPluginDescriptor function found in library <name>
99

    
100
    - A dynamic library of that name was found and loaded, but it
101
      lacked the necessary public vampGetPluginDescriptor function.
102

    
103
      * Are you sure this is a Vamp plugin library?
104
      * If you made it, did you remember to include the global
105
        vampGetPluginDescriptor function in your library along with
106
	your plugin classes?
107
      * If you are using Visual C++, did you remember to mark the
108
        vampGetPluginDescriptor symbol exported, as described in
109
        the README.msvc file in the SDK?
110

    
111
 ** ERROR: (plugin|parameter|output) identifier <x> contains invalid characters
112

    
113
 An identifier contains characters other than the permitted set (ASCII
114
 lower and upper case letters, digits, "-" and "_" only).
115

    
116
 ** ERROR: <field> is empty
117

    
118
 A mandatory field, such as the name of a parameter or output,
119
 contains no text.
120

    
121
 ** WARNING: <field> is empty
122

    
123
 An optional field, such as the description of a parameter or output,
124
 contains no text.
125

    
126
 ** ERROR: Plugin parameter <x> maxValue <= minValue
127

    
128
 The minimum and maximum values given for a parameter are equal or in
129
 the wrong order.
130

    
131
 ** ERROR: Plugin parameter <x> defaultValue out of range
132

    
133
 The default value for a parameter is not within the range defined by
134
 the minimum and maximum values for the parameter.
135

    
136
 ** ERROR: Plugin parameter <x> is quantized, but quantize step is zero
137

    
138
 The quantizeStep value in a parameter with isQuantized true is set to
139
 zero.
140

    
141
 ** WARNING: Plugin parameter <x> value range is not a multiple of quantize step
142

    
143
 A parameter's stated maximum value is not one of the possible values
144
 obtained by adding multiples of the quantize step on to the minimum
145
 value.
146

    
147
 ** WARNING: Plugin parameter <x> has (more|fewer) value names than quantize steps
148

    
149
 A quantized parameter lists some value names for its quantize steps,
150
 but not the right number.
151
 
152
 ** WARNING: Plugin parameter <x> default value is not a multiple of quantize
153
 step beyond minimum
154

    
155
 The default value for a parameter is not a value that the user could
156
 actually obtain, if only offered the quantized values to choose from.
157

    
158
 ** ERROR: Data returned on nonexistent output
159

    
160
 The output number key for a returned feature is outside the range of
161
 outputs listed in the plugin's output descriptor list.
162

    
163
 ** NOTE: No results returned for output <x>
164

    
165
 The plugin returned no features on one of its outputs, when given a
166
 simple test file.  This may be perfectly reasonable behaviour, but
167
 you might like to know about it.
168

    
169
 ** NOTE: Plugin returns features with timestamps on OneSamplePerStep output
170
 ** NOTE: Plugin returns features with durations on OneSamplePerStep output
171

    
172
 Hosts will usually ignore timestamps and durations attached to any
173
 feature returned on a OneSamplePerStep output.
174

    
175
 ** ERROR: Plugin returns features with no timestamps on VariableSampleRate output
176

    
177
 Timestamps are mandatory on all features associated with a
178
 VariableSampleRate output.
179

    
180
 ** WARNING: Plugin returned one or more NaN/inf values
181

    
182
 The plugin returned features containing floating-point not-a-number
183
 or infinity values.  This warning may be associated with a test
184
 involving feeding some unexpected type of data to the plugin.
185
 
186
 ** ERROR: Consecutive runs with separate instances produce different results
187

    
188
 The plugin was constructed and run twice against the same input data,
189
 and returned different features each time.
190

    
191
 If you give the -n or --nondeterministic option, vamp-plugin-tester
192
 will downgrade this error to a note.
193

    
194
 ** ERROR: Consecutive runs with the same instance (using reset) produce different results
195

    
196
 The plugin was constructed, initialised, run against some input data,
197
 reset with a call to its reset() function, and run again against the
198
 same data; and it returned different features on each run.  This is
199
 often a sign of some simple error such as forgetting to implement
200
 reset().
201

    
202
 If you give the -n or --nondeterministic option, vamp-plugin-tester
203
 will downgrade this error to a note.
204

    
205
 ** ERROR: Simultaneous runs with separate instances produce different results
206

    
207
 Two instances of the plugin were constructed and run against the same
208
 input data, giving each block of data to one plugin's process call
209
 and then to the other's, "interleaving" the processing between the
210
 two instances (but within a single application thread); and the two
211
 instances returned different features.  This may indicate ill-advised
212
 use of static data shared between plugin instances.
213

    
214
 If you give the -n or --nondeterministic option, vamp-plugin-tester
215
 will downgrade this error to a note.
216

    
217
 ** WARNING: Consecutive runs with different starting timestamps produce the same result
218

    
219
 The plugin was run twice on the same audio data, but with different
220
 input timestamps, and it returned the same results each time.  While
221
 this is often unproblematic, it can indicate that a plugin failed to
222
 take the input timestamp into account when calculating its output
223
 timestamps (if any).
224

    
225
 If you give the -n or --nondeterministic option, vamp-plugin-tester
226
 will downgrade this warning to a note.
227

    
228
 ** ERROR: Explicitly setting current program to its supposed current value changes the results
229

    
230
 The plugin was constructed and run twice on the same data, once
231
 without changing its "program" setting, and again having set the
232
 program to the vaule returned by getCurrentProgram() (i.e. the same
233
 program that was supposed to be in effect already).  It returned
234
 different results for the two runs, suggesting that some internal
235
 data was changed in selectProgram in a way that differed from its
236
 default.
237

    
238
 If you give the -n or --nondeterministic option, vamp-plugin-tester
239
 will downgrade this error to a note.
240

    
241
 ** ERROR: Explicitly setting parameters to their supposed default values changes the results
242

    
243
 The plugin was constructed and run twice on the same data, once
244
 without changing any of its parameters, and again having set the
245
 parameters to their specified default values.  It returned different
246
 results for the two runs, suggesting that some internal data was
247
 changed when a parameter was set to its default, in a way that
248
 differed from the plugin's initially constructed state.
249

    
250
 If you give the -n or --nondeterministic option, vamp-plugin-tester
251
 will downgrade this error to a note.
252

    
253
 ** WARNING: Constructor takes some time to run: work should be deferred to initialise?
254

    
255
 The plugin took a long time to construct.  You should ensure that the
256
 constructor for the plugin runs as quickly as possible, because it
257
 may be called by a host that is only scanning the properties of all
258
 available plugins on startup.  Any serious initialisation work should
259
 be done in the initialise() function rather than the constructor.
260

    
261

    
262
Authors
263
=======
264

    
265
This program was written at the Centre for Digital Music at Queen
266
Mary, University of London, by Chris Cannam.  Copyright (c) 2009 QMUL.
267