Amplify

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(clarify AmplifyDB w/ examples; clarify negative scale factor; delete obsolete "converted to 16 bits in the process")
(please don't put stuff in comments; just ask or add a todo line if you are not sure about something)
Line 1: Line 1:
 
{{Template:Func4Def|Amplify(clip, float ''amount1'' ''[, ...]'')|Amplify(clip, float ''left'', float ''right'')|AmplifydB(clip, float ''amount1'' ''[, ...]'')|AmplifydB(clip, float ''left'', float ''right'')}}
 
{{Template:Func4Def|Amplify(clip, float ''amount1'' ''[, ...]'')|Amplify(clip, float ''left'', float ''right'')|AmplifydB(clip, float ''amount1'' ''[, ...]'')|AmplifydB(clip, float ''left'', float ''right'')}}
  
 +
These filters amplify the audio of the clip by the prescribed amount.
  
 
'''Amplify''' multiplies the audio samples by ''amount''. You use scale factors between 0 and 1 for reducing volume.  
 
'''Amplify''' multiplies the audio samples by ''amount''. You use scale factors between 0 and 1 for reducing volume.  
Line 6: Line 7:
 
:*Negative scale factors will shift the phase by 180 degrees (i.e. invert the samples)  
 
:*Negative scale factors will shift the phase by 180 degrees (i.e. invert the samples)  
  
 +
'''AmplifyDB''' is the same, except values are in [[wikipedia:Decibel|decibels]] (dB). The relation between them is 'amount = 10^(decibels/20)'. You use negative dB values for reducing volume.
  
'''AmplifyDB''' is the same, except values are in [[wikipedia:Decibel|decibels]] (dB). You use negative dB values for reducing volume.
+
:*<code>AmplifyDB( 6.0)</code> is equivalent to <code>Amplify(2.0)</code>
 
+
:*<code>AmplifyDB( 0.0)</code> is equivalent to <code>Amplify(1.0)</code>
:*<code>AmplifyDB( 6.0)</code> is equivalent to <code>Amplify(2.0)</code>  
+
 
:*<code>AmplifyDB(-6.0)</code> is equivalent to <code>Amplify(0.5)</code>
 
:*<code>AmplifyDB(-6.0)</code> is equivalent to <code>Amplify(0.5)</code>
 
  
 
You can specify different factors for each channel. If there are more volumes than there are channels, the extra volume arguments are ignored. If there are fewer volumes than channels, the last volume is applied to the rest of the channels.  
 
You can specify different factors for each channel. If there are more volumes than there are channels, the extra volume arguments are ignored. If there are fewer volumes than channels, the last volume is applied to the rest of the channels.  
  
<!-- Audio samples are converted to 16 bits in the process. -->
+
8bit and 24bit Audio samples are converted to float in the process, the other audio formats are kept.
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]

Revision as of 23:39, 6 September 2015

Amplify(clip, float amount1 [, ...])
Amplify(clip, float left, float right)
AmplifydB(clip, float amount1 [, ...])
AmplifydB(clip, float left, float right)

These filters amplify the audio of the clip by the prescribed amount.

Amplify multiplies the audio samples by amount. You use scale factors between 0 and 1 for reducing volume.

  • Negative scale factors will shift the phase by 180 degrees (i.e. invert the samples)

AmplifyDB is the same, except values are in decibels (dB). The relation between them is 'amount = 10^(decibels/20)'. You use negative dB values for reducing volume.

  • AmplifyDB( 6.0) is equivalent to Amplify(2.0)
  • AmplifyDB( 0.0) is equivalent to Amplify(1.0)
  • AmplifyDB(-6.0) is equivalent to Amplify(0.5)

You can specify different factors for each channel. If there are more volumes than there are channels, the extra volume arguments are ignored. If there are fewer volumes than channels, the last volume is applied to the rest of the channels.

8bit and 24bit Audio samples are converted to float in the process, the other audio formats are kept.

Personal tools