Log in

View Full Version : Using SSRC with samplerates that can't be converted directly one from another


thetoof
20th December 2008, 12:22
This may be a silly math question... but I'm trying to find a way to resample 46034 audio into 48khz. I found out that audio.ssrc(44100).ssrc(48000) works, but I'd like to do the conversion without downsampling.

Is something that'd do the following possible in avisynth?
-Find a common samplerate to which the input samplerate and the destination samplerate can be converted to in case they can't be converted directly one from another.
-This samplerate must be higher than the destination samplerate to avoid downsampling + upsampling (this way, only up-up, up-down or down-down could be done, so at no point there is a useless downsampling that'd lead to some quality loss (correct me if I'm wrong))

IanB
20th December 2008, 23:30
Use ResampleAudio() it's not quite as fast as SSRC() with float samples, but it is not restricted to particular ratios.