MinMaxAudio

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(redirect for convenient searching)
 
(MinMaxAudio: add documentation)
Line 1: Line 1:
#REDIRECT [[External_filters#Audio_Filters]]
+
{{FilterCat|External_filters|Plugins|Audio_filters}}
{{FilterCat|External_filters|Audio_filters|}}
+
{{Filter3
 +
| {{author/Wilbert Dijkhof}}
 +
| v0.2
 +
| 3=[http://www.wilbertdijkhof.com/MinMaxAudio_v02.zip MinMaxAudio_v02.zip]
 +
| 4=Audio filters
 +
| 5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 +
| 6=[http://forum.doom9.org/showthread.php?t=127530 Doom9 Forum]}}
 +
 
 +
== Description ==
 +
[[MinMaxAudio]] computes the root mean square, maximal or minimal value over all samples in all channels,or just over all samples in channel, and outputs the value (in decibels) as a float[http://forum.doom9.org/showpost.php?p=1197592&postcount=19]. It's a conditional audio filter, so the computation is done framewise.
 +
<br>
 +
<br>
 +
== Requirements ==
 +
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.5.8 or greater]
 +
* Supported color formats: N/A
 +
<br>
 +
== [[Script variables|Syntax and Parameters]] ==
 +
 
 +
:{{Template:FuncDef|AudioMin (clip, int "channel")}}
 +
:{{Template:FuncDef|AudioMax (clip, int "channel")}}
 +
:{{Template:FuncDef|AudioRMS (clip, int "channel")}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip.
 +
<br>
 +
::{{Par2|channel|int|0}}
 +
:::<code>channel=0</code> (default) means that the max/min/rms is taken over all samples in all channels (framewise).
 +
 
 +
<br>
 +
== Examples ==
 +
<pre>
 +
v = BlankClip(pixel_type="YV12")
 +
a = Tone(type="Triangle", frequency=2, level=0.4)
 +
w = AudioDub(v,a) #.Histogram(mode="audiolevels")
 +
#w = ScriptClip(w, "Subtitle(String(AudioMax(1)))")
 +
w = ScriptClip(w, "Subtitle(String(AudioRMS(0)))")
 +
#w = ScriptClip(w, "Subtitle(String(AudioMin(1)))")
 +
w = w #.ConvertToRGB32.AudioGraph(20)
 +
return w
 +
</pre>
 +
Note that the values are given in decibels (see also [[Histogram#Audiolevels_mode|Histogram("audiolevels")]] docs for an explanation).
 +
<br>
 +
<br>
 +
== Changelog ==
 +
Version      Date            Changes<br>
 +
v0.2        2007/09/09      - latest version
 +
v0.1        2007/08/23      - initial release
 +
<br>
 +
 
 +
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="600px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!v0.2
 +
|[http://www.wilbertdijkhof.com/MinMaxAudio_v02.zip MinMaxAudio_v02.zip]
 +
|[https://web.archive.org/web/20180828073843if_/http://www.wilbertdijkhof.com/MinMaxAudio_v02.zip MinMaxAudio_v02.zip]
 +
|}
 +
<br>
 +
==External Links ==
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Audio_Filters|External Filters]] &larr;'''

Revision as of 23:33, 17 June 2020

Abstract
Author Wilbert Dijkhof
Version v0.2
Download MinMaxAudio_v02.zip
Category Audio filters
License GPLv2
Discussion Doom9 Forum

Contents

Description

MinMaxAudio computes the root mean square, maximal or minimal value over all samples in all channels,or just over all samples in channel, and outputs the value (in decibels) as a float[1]. It's a conditional audio filter, so the computation is done framewise.

Requirements


Syntax and Parameters

AudioMin (clip, int "channel")
AudioMax (clip, int "channel")
AudioRMS (clip, int "channel")


clip   =
Input clip.


int  channel = 0
channel=0 (default) means that the max/min/rms is taken over all samples in all channels (framewise).


Examples

v = BlankClip(pixel_type="YV12")
a = Tone(type="Triangle", frequency=2, level=0.4)
w = AudioDub(v,a) #.Histogram(mode="audiolevels")
#w = ScriptClip(w, "Subtitle(String(AudioMax(1)))")
w = ScriptClip(w, "Subtitle(String(AudioRMS(0)))")
#w = ScriptClip(w, "Subtitle(String(AudioMin(1)))")
w = w #.ConvertToRGB32.AudioGraph(20)
return w

Note that the values are given in decibels (see also Histogram("audiolevels") docs for an explanation).

Changelog

Version      Date            Changes
v0.2 2007/09/09 - latest version v0.1 2007/08/23 - initial release


Archived Downloads

Version Download Mirror
v0.2 MinMaxAudio_v02.zip MinMaxAudio_v02.zip


External Links




Back to External Filters

Personal tools