Chikuzen
16th February 2012, 12:12
I tried follow script,
ColorBars()
AssumeSampleRate(48000)
SSRC(40000, false)
and got error "SSRC: could not to resample between two samplerates." with both avs2.58 and avs2.60alpha3.
According to docs (http://avisynth.org/mediawiki/SSRC), these samplerates must be proper.
fs1 / dfrq = sfrq / frqgcd = 48000 / 8000 = 6
6 % 2 = 0 (also 6 % 3 = 0)
but code(SSRC.cpp) says as follows
if (dfrq>sfrq){
int fs1 = sfrq / frqgcd * dfrq;
if (fs1/dfrq == 1) return 1;
else if (fs1/dfrq % 2 == 0) return 1;
else if (fs1/dfrq % 3 == 0) return 1;
else return 0;
} else {
if (dfrq/frqgcd == 1) return 1;
else if (dfrq/frqgcd % 2 == 0) return 1;
else if (dfrq/frqgcd % 3 == 0) return 1;
else return 0;
}
Which is correct between docs and code :confused:
ColorBars()
AssumeSampleRate(48000)
SSRC(40000, false)
and got error "SSRC: could not to resample between two samplerates." with both avs2.58 and avs2.60alpha3.
According to docs (http://avisynth.org/mediawiki/SSRC), these samplerates must be proper.
fs1 / dfrq = sfrq / frqgcd = 48000 / 8000 = 6
6 % 2 = 0 (also 6 % 3 = 0)
but code(SSRC.cpp) says as follows
if (dfrq>sfrq){
int fs1 = sfrq / frqgcd * dfrq;
if (fs1/dfrq == 1) return 1;
else if (fs1/dfrq % 2 == 0) return 1;
else if (fs1/dfrq % 3 == 0) return 1;
else return 0;
} else {
if (dfrq/frqgcd == 1) return 1;
else if (dfrq/frqgcd % 2 == 0) return 1;
else if (dfrq/frqgcd % 3 == 0) return 1;
else return 0;
}
Which is correct between docs and code :confused: