SSRC

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(formatting, links, phrasing)
(add link to avs+ documentation)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="max-width:62em" >
 
<div style="max-width:62em" >
High quality audio sample rate converter by [http://shibatch.sourceforge.net/ Naoki Shibata]. Audio is always converted to [[Float]]. This filter should result in better audio quality than [[ResampleAudio]] when converting between 44100&harr;48000 Hz.
+
<div {{BlueBox2|40|0|3px solid purple}} >
 +
{{AvsPlusFullname}}<br>
 +
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/ssrc.html https://avisynthplus.readthedocs.io]
 +
</div>
 +
 
 +
 
 +
High quality audio sample rate converter by [http://shibatch.sourceforge.net/ Naoki Shibata]. This filter should result in better audio quality than [[ResampleAudio]] when converting between 44100&harr;48000 Hz.
 
<div {{BoxWidthIndent|52|1}} >
 
<div {{BoxWidthIndent|52|1}} >
 
{{BoldColor|blue|120|“}}44.1kHz sampling rate is used for a CD, and 48kHz is used for a DVD... Converting between these frequencies is hard, because the ratio between these two frequencies is 147:160, which are not small numbers. Accordingly, we need a very long FIR filter in order not to degrade the sound quality during conversion. This program utilizes FFTs to apply the FIR filter in order to reduce the amount of computation.{{BoldColor|blue|120|”}} <sup>[http://shibatch.sourceforge.net/]</sup>
 
{{BoldColor|blue|120|“}}44.1kHz sampling rate is used for a CD, and 48kHz is used for a DVD... Converting between these frequencies is hard, because the ratio between these two frequencies is 147:160, which are not small numbers. Accordingly, we need a very long FIR filter in order not to degrade the sound quality during conversion. This program utilizes FFTs to apply the FIR filter in order to reduce the amount of computation.{{BoldColor|blue|120|”}} <sup>[http://shibatch.sourceforge.net/]</sup>
 
</div>
 
</div>
 
Unlike [[ResampleAudio]], '''SSRC''' doesn't work for arbitrary sample rate ratios. If it cannot handle resampling between the two sample rates, an error is raised.
 
Unlike [[ResampleAudio]], '''SSRC''' doesn't work for arbitrary sample rate ratios. If it cannot handle resampling between the two sample rates, an error is raised.
 +
</div>
  
  
 
== Syntax and Parameters ==
 
== Syntax and Parameters ==
 +
<div style="max-width:62em" >
 
{{FuncDef
 
{{FuncDef
 
|SSRC(clip, int samplerate [, bool fast])
 
|SSRC(clip, int samplerate [, bool fast])
 
}}
 
}}
 +
 +
:{{Par2|clip|clip|}}
 +
::Source clip. Audio is always converted to [[Float]].
 +
::{{AvsPluscon}} no conversion is performed. Accepts [[Float]] audio only.
  
 
:{{Par2|samplerate|int|}}
 
:{{Par2|samplerate|int|}}
Line 18: Line 30:
 
::Enable faster processing at slightly lower quality.  
 
::Enable faster processing at slightly lower quality.  
 
::Set this to ''false'' if you are doing large-ratio rate conversions (more than a factor 2).  
 
::Set this to ''false'' if you are doing large-ratio rate conversions (more than a factor 2).  
 +
</div>
  
  
 
== Examples ==
 
== Examples ==
 +
<div style="max-width:62em" >
 
* Downsampling to 44.1 kHz:
 
* Downsampling to 44.1 kHz:
 
<div {{BoxWidthIndent|24|2}} >
 
<div {{BoxWidthIndent|24|2}} >
 
  AviSource("c:\file.avi")
 
  AviSource("c:\file.avi")
 
  SSRC(44100)
 
  SSRC(44100)
 +
</div>
 
</div>
 
</div>
  
  
 
== Changes ==
 
== Changes ==
 +
<div style="max-width:62em" >
 
{| border="1"
 
{| border="1"
 
|-  
 
|-  

Latest revision as of 05:56, 18 September 2022

AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io


High quality audio sample rate converter by Naoki Shibata. This filter should result in better audio quality than ResampleAudio when converting between 44100↔48000 Hz.

44.1kHz sampling rate is used for a CD, and 48kHz is used for a DVD... Converting between these frequencies is hard, because the ratio between these two frequencies is 147:160, which are not small numbers. Accordingly, we need a very long FIR filter in order not to degrade the sound quality during conversion. This program utilizes FFTs to apply the FIR filter in order to reduce the amount of computation. [1]

Unlike ResampleAudio, SSRC doesn't work for arbitrary sample rate ratios. If it cannot handle resampling between the two sample rates, an error is raised.


[edit] Syntax and Parameters

SSRC(clip, int samplerate [, bool fast])

clip  clip =
Source clip. Audio is always converted to Float.
AVS+ no conversion is performed. Accepts Float audio only.
int  samplerate =
Target sample rate.
bool  fast = true
Enable faster processing at slightly lower quality.
Set this to false if you are doing large-ratio rate conversions (more than a factor 2).


[edit] Examples

  • Downsampling to 44.1 kHz:
AviSource("c:\file.avi")
SSRC(44100)


[edit] Changes

v2.54 Initial Release.

Some parts of SSRC is:

Copyright (C) 2001-2003, Peter Pawlowski All rights reserved.

Personal tools