Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

SSRC

( Diese Seite in flag-germany.gif Deutsch )

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

SSRC resampling. Audio is always converted to float. This filter will result in better audio quality than ResampleAudio. It uses SSRC by [Naoki Shibata], which offers the best resample quality available.

Sampling rates of 44.1kHz and 48kHz are populary used, but ratio of these two frequency is 147:160, and they are not a small numbers. Therefore, sampling rate conversion without degradation of sound quality requires filter with very large order, and it's difficult to achive both quality and speed. This program achieved relatively fast and high quality with two different kinds of filters combined skillfully.

Parameter:

samplerate samplerate must be an integer.
fast This will enable faster processing at slightly lower quality. Disable this if you are doing large samplerate conversions (more than a factor 2). Default: true

SSRC doesn't work for arbitrary ratios of the samplerate of the source and target clip. The following ratios are allowed (see SSRC.c):

sfrq = samplerate of source clip
dfrq = samplerate of destination clip
frqgcd = gcd(sfrq,dfrq)
fs1 = dfrq * sfrq / frqgcd
Resamping is possible if: (fs1/dfrq == 1) or (fs1/dfrq % 2 == 0) or (fs1/dfrq % 3 == 0)

example for which resampling is possible:
sfrq = 44.1 kHz
dfrq = 48 kHz
frqgcd = gcd(44100,4800) = 300
fs1 / dfrq = sfrq / frqgcd = sfrq / gcd(sfrq,dfrq) = 44100/300 = 147
and 147%3=0 since 47 / 3 = 49 = integer

The samplerate of your source clip can be found as follows

AviSource(...)
Subtitle(string(c.AssumeFPS(23.976,sync_audio=true).AudioRate))

Example:

#Downsampling to 44,1 kHz:
AviSource("c:\file.avi")
SSRC(44100)

Changelog:

v2.54 Initial Release

Some parts of SSRC is:

Copyright 2001-2003, Peter Pawlowski

All rights reserved.

SourceForge Logo

 


Edit this document | View document history
Document last modified Wed, 02 Mar 2005 16:19:36