ViewAudio

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Examples: copy pasta errors)
(ViewAudio: typos and corrections)
Line 31: Line 31:
 
:::Waveform position (Y coordinate):
 
:::Waveform position (Y coordinate):
 
:::* -1 : waveform will be added to the bottom on the input clip.
 
:::* -1 : waveform will be added to the bottom on the input clip.
:::* 0 : waveform will be overlaid at the very top of the input clip.
+
:::* 0 : waveform will be superimposed at the very top of the input clip.
:::Higher values specify the distance (in pixels) from the top of the input clip where the waveform will be overlaid.
+
:::Higher values specify the distance (in pixels) from the top of the input clip where the waveform will be superimposed.  
  
 
<br>
 
<br>
Line 40: Line 40:
 
::{{Par2|fill|bool|true}}
 
::{{Par2|fill|bool|true}}
 
:::Fill background; {{Template:FuncDef3|top}} must be greater than -1, otherwise this parameter is ignored.
 
:::Fill background; {{Template:FuncDef3|top}} must be greater than -1, otherwise this parameter is ignored.
:::* true : input clip background is discarded and waveform will be filled with black background.
+
:::* true : waveform will be filled with a black background.
:::* false : waveform is overlaid on top of the existing background of the input clip.
+
:::* false : waveform will be superimposed onto the input clip.
 
<!--:::* true : luma levels are filled between 32-255.
 
<!--:::* true : luma levels are filled between 32-255.
 
:::* false : luma levels are filled between 0-255 (PC range).-->
 
:::* false : luma levels are filled between 0-255 (PC range).-->
 
<br>
 
<br>
 
::{{Par2|channel|int|-1}}
 
::{{Par2|channel|int|-1}}
:::Whats channels to display:
+
:::What channel(s) to display:
 
:::* -1 : both channels
 
:::* -1 : both channels
:::* 0 : left channel
+
:::* 0 : left channel only
:::* 1 : right channel  
+
:::* 1 : right channel only
 
<br>
 
<br>
 +
 
===CacheAudio===
 
===CacheAudio===
  

Revision as of 17:45, 29 March 2015

Abstract
Author minamina
Version v0.3.01
Download ViewAudio0301.zip
Category Audio filters
License GPLv2
Discussion


Contents

Description

An audio plugin with 2 functions: ViewAudio and CacheAudio. Based on Richard Ling's original AudioGraph.

Requirements

  • AviSynth 2.5.8 or later
  • Supported color formats: YUY2, YV12


Syntax and Parameters

ViewAudio

ViewAudio (clip, int "frames", int "top", int "height", bool "fill", int "channel")


clip   =
Input clip; must contain audio and video. Only 8-bit or 16-bit mono or stereo audio allowed. Use ConvertAudioTo16Bit() if needed.


int  frames = 2
Specifies the number of backward and forward frames. Maximum values is 10.


int  top = -1
Waveform position (Y coordinate):
  • -1 : waveform will be added to the bottom on the input clip.
  • 0 : waveform will be superimposed at the very top of the input clip.
Higher values specify the distance (in pixels) from the top of the input clip where the waveform will be superimposed.


int  height = 80
The height of the drawing; width will always be the same as the input clip.


bool  fill = true
Fill background; top must be greater than -1, otherwise this parameter is ignored.
  • true : waveform will be filled with a black background.
  • false : waveform will be superimposed onto the input clip.


int  channel = -1
What channel(s) to display:
  • -1 : both channels
  • 0 : left channel only
  • 1 : right channel only


CacheAudio

CacheAudio (clip, int "MaxFrame", int "BlockFrame")


clip   =
Input clip; must contain audio and video. Only 8-bit or 16-bit mono or stereo audio allowed. Use ConvertAudioTo16Bit() if needed.


int  MaxFrame = 1000
Specify the maximum number of cached frames.
-1 caches all frames; requires large amount of memory and initialization may be slow.


int  BlockFrame = 100
Specifies the number of frames to be read at once.
-1 will use the same value as MaxFrame; also requires large amount of memory and initialization may be slow.


Examples

ViewAudio with default values:

AviSource("blah.avi") # make sure clip has audio and video
ViewAudio(frames=2, top=-1, height=80, fill=true, channel=-1)

CacheAudio with default values:

AviSource("blha.avi") # make sure clip has audio and video
CacheAudio(MaxFrame=1000, BlockFrame=100)


Changelog

Version      Date            Changes
v0.3.01 2003/11/03 - add CacheAudio v0.2.02 2003/10/06 - fix maximum value for "frames", check was broken v0.2.01 2003/09/22 - initial release


Archived Downloads

Version Download Mirror
v0.3.01 ViewAudio0301.zip viewaudio_25_dll_20031103.zip


External Links




Back to External Filters

Personal tools