ConvertAudio

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(clarification)
Line 1: Line 1:
 
{{Template:Func5Def|ConvertAudioTo8bit(clip ''clip'')|ConvertAudioTo16bit(clip ''clip'')|ConvertAudioTo24bit(clip ''clip'')|ConvertAudioTo32bit(clip ''clip'')|ConvertAudioToFloat(clip ''clip'')}}
 
{{Template:Func5Def|ConvertAudioTo8bit(clip ''clip'')|ConvertAudioTo16bit(clip ''clip'')|ConvertAudioTo24bit(clip ''clip'')|ConvertAudioTo32bit(clip ''clip'')|ConvertAudioToFloat(clip ''clip'')}}
  
The first four filters convert the audio samples to 8, 16, 24 and 32 bits, and ConvertAudioToFloat converts the audio samples to float. ConvertAudioTo8bit, ConvertAudioTo24bit, ConvertAudioTo32bit and ConvertAudioToFloat are available starting from v2.5.
+
The first four filters convert the audio samples to 8, 16, 24 and 32 bits (all four of them being integer formats), and ConvertAudioToFloat converts the audio samples to 32-bit [[Float]]. ConvertAudioTo8bit, ConvertAudioTo24bit, ConvertAudioTo32bit and ConvertAudioToFloat are available starting from v2.5.
  
Starting from v2.5 the audio samples will be automatically converted if any filters requires a special type of sample. This means that most filters will accept several types of input, but if a filter doesn't support the type of sample it is given, it will automatically convert the samples to something it supports. The internal formats supported in each filter is listed in the colorspace column. A specific sample type can be forced by using the ConvertAudio functions.
+
Many audio filters will accept several types of input, but if a filter doesn't support the type of sample it is given, it will either throw an error or (which is the case for most filters) automatically convert the samples to something it supports.
  
 +
The internal formats supported in each filter is listed in the colorspace column. A specific sample type can be forced by using these ConvertAudio functions.
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]

Revision as of 15:42, 20 September 2015

ConvertAudioTo8bit(clip clip)
ConvertAudioTo16bit(clip clip)
ConvertAudioTo24bit(clip clip)
ConvertAudioTo32bit(clip clip)
ConvertAudioToFloat(clip clip)

The first four filters convert the audio samples to 8, 16, 24 and 32 bits (all four of them being integer formats), and ConvertAudioToFloat converts the audio samples to 32-bit Float. ConvertAudioTo8bit, ConvertAudioTo24bit, ConvertAudioTo32bit and ConvertAudioToFloat are available starting from v2.5.

Many audio filters will accept several types of input, but if a filter doesn't support the type of sample it is given, it will either throw an error or (which is the case for most filters) automatically convert the samples to something it supports.

The internal formats supported in each filter is listed in the colorspace column. A specific sample type can be forced by using these ConvertAudio functions.

Personal tools