MinMaxAudio

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(MinMaxAudio: add documentation)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
| {{author/Wilbert Dijkhof}}
 
| {{author/Wilbert Dijkhof}}
 
| v0.2
 
| v0.2
| 3=[http://www.wilbertdijkhof.com/MinMaxAudio_v02.zip MinMaxAudio_v02.zip]
+
| 3=[https://github.com/chikuzen/MinMaxAudio/releases/tag/v0.2.1 MinMaxAudio_v02_20251204.zip]
 
| 4=Audio filters
 
| 4=Audio filters
 
| 5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
| 5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
Line 23: Line 23:
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
:::Input clip.
+
:::Input clip, audio is converted to float internally.
 
<br>
 
<br>
 
::{{Par2|channel|int|0}}
 
::{{Par2|channel|int|0}}
Line 29: Line 29:
  
 
<br>
 
<br>
 +
 
== Examples ==
 
== Examples ==
 
<pre>
 
<pre>
Line 45: Line 46:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
 +
v0.2.1      2025/12/04      - x64 version
 
  v0.2        2007/09/09      - latest version
 
  v0.2        2007/09/09      - latest version
 
  v0.1        2007/08/23      - initial release
 
  v0.1        2007/08/23      - initial release

Latest revision as of 19:38, 3 December 2025

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

Contents

[edit] 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.

[edit] Requirements


[edit] Syntax and Parameters

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


clip   =
Input clip, audio is converted to float internally.


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


[edit] 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).

[edit] Changelog

Version      Date            Changes
v0.2.1 2025/12/04 - x64 version v0.2 2007/09/09 - latest version v0.1 2007/08/23 - initial release


[edit] Archived Downloads

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


[edit] External Links




Back to External Filters

Personal tools