Viv
2010-10-12 07:53:19 UTC
Hi all,
I really hope this is the right place to post my question because I
really need some guidance from some experts.
I was told to find out a library, preferably LGPL, but in a worst case
scenario also a commercial one would be ok, that would do resampling.
Some scenarios where I will have to use this would be:
1) I get a file with some audio with the following attributes:
Frequency 44k, bps (bits per seconds) 16, Channels 1 and I have to
convert it to: Frequency 11k, bps 12, Channels 1.
2) I get 2 audio files:
- file 1: Freq 22k, bps 16, Channels 1
- file 2: Freq 22k, bps 16, Channels 1
and I have to merge them and convert them either to:
a) Freq 22k, bps 16, Channels 1
or
b) Freq 22k, bps 16, Channels 2
Note: The files might be as big as 200MB.
I am not familiar neither with audio files nor with the resampling
concept. I read about it and I found out that there are 3 libraries
that one can use:
https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
resample, libresample and libsamplerate
I decided to go for the second one: libresample by Dominic Mazzoni b/c
it's LGPL licensed.
My problem is that the library itself doesn't have any documentation,
also I couldn't find anywhere on internet a usage sample of the
library and the only documentation that I seem to find is something
like:
https://ccrma.stanford.edu/~jos/resample/
which is too technical for what I need, as I don't think I need to
understand all that math behind the lib, but I do need to understand
what source, factor, etc means in order to use the lib.
Can somebody point out a place where I could see how to use the
library (libresample by Dominic Mazzoni) in order to achieve the
scenarios I described above? What calls do I have to make? What input
should I pass? What would be the values of the parameters? And what
should I expect as output?
Thank you in advance,
Any tip would be appreciated!
Viv
I really hope this is the right place to post my question because I
really need some guidance from some experts.
I was told to find out a library, preferably LGPL, but in a worst case
scenario also a commercial one would be ok, that would do resampling.
Some scenarios where I will have to use this would be:
1) I get a file with some audio with the following attributes:
Frequency 44k, bps (bits per seconds) 16, Channels 1 and I have to
convert it to: Frequency 11k, bps 12, Channels 1.
2) I get 2 audio files:
- file 1: Freq 22k, bps 16, Channels 1
- file 2: Freq 22k, bps 16, Channels 1
and I have to merge them and convert them either to:
a) Freq 22k, bps 16, Channels 1
or
b) Freq 22k, bps 16, Channels 2
Note: The files might be as big as 200MB.
I am not familiar neither with audio files nor with the resampling
concept. I read about it and I found out that there are 3 libraries
that one can use:
https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
resample, libresample and libsamplerate
I decided to go for the second one: libresample by Dominic Mazzoni b/c
it's LGPL licensed.
My problem is that the library itself doesn't have any documentation,
also I couldn't find anywhere on internet a usage sample of the
library and the only documentation that I seem to find is something
like:
https://ccrma.stanford.edu/~jos/resample/
which is too technical for what I need, as I don't think I need to
understand all that math behind the lib, but I do need to understand
what source, factor, etc means in order to use the lib.
Can somebody point out a place where I could see how to use the
library (libresample by Dominic Mazzoni) in order to achieve the
scenarios I described above? What calls do I have to make? What input
should I pass? What would be the values of the parameters? And what
should I expect as output?
Thank you in advance,
Any tip would be appreciated!
Viv