[PlanetCCRMA] sndfile-resample fixed
R Parker
rtp405 at yahoo.com
Tue Jun 8 14:32:01 PDT 2004
Hi Fernando,
[studio at stepdaddy aiff]$ rpm -qa |grep libsamplerate
libsamplerate-devel-0.1.0-2.rh90.ccrma
libsamplerate-0.1.0-2.rh90.ccrma
Looks like we've got an old bug that's returned. First
the unconverted file (notice duration at the end):
[studio at stepdaddy aiff]$ sndfile-info damaged.aiff
Version : libsndfile-1.0.6
========================================
File : damaged.aiff
Length : 44212374
FORM : 44212366
AIFF
COMM : 18
Sample Rate : 48000
Frames : 7368720
Channels : 2
Sample Size : 24
Encoding : NONE
SSND : 44212328
Offset : 0
Block Size : 0
----------------------------------------
Sample Rate : 48000
Frames : 7368720
Channels : 2
Format : 0x00020003
Sections : 1
Seekable : TRUE
Duration : 00:02:33.515
Signal Max : 6.36341e+06
Convert the file:
[studio at stepdaddy aiff]$ sndfile-resample -to 44100 -c
0 damaged.aiff damaged-44100.aiff
Input File : damaged.aiff
Sample Rate : 48000
Input Frames : 7368720
SRC Ratio : 0.918750
Converter : Best Sinc Interpolator
Output file : damaged-44100.aiff
Sample Rate : 44100
Output Frames : 6770012
And the results, again note the duration at the end:
[studio at stepdaddy aiff]$ sndfile-info
damaged-44100.aiff
Version : libsndfile-1.0.6
========================================
File : damaged-44100.aiff
Length : 11338
FORM : 11330
AIFF
COMM : 18
Sample Rate : 44100
Frames : 0
Channels : 2
Sample Size : 24
Encoding : NONE
SSND : 11292
Offset : 0
Block Size : 0
----------------------------------------
Sample Rate : 44100
Frames : 1880
Channels : 2
Format : 0x00020003
Sections : 1
Seekable : TRUE
Duration : 00:00:00.042
Signal Max : 0
I CC'd this to Erik.
Thanks for the help.
ron
--- Fernando Pablo Lopez-Lezcano
<nando at ccrma.Stanford.EDU> wrote:
> On Mon, 2004-06-07 at 10:08, Fernando Pablo
> Lopez-Lezcano wrote:
> > > rh9
> > > [studio at stepdaddy wav]$ rpm -qa |grep libsndfile
> > > libsndfile-devel-1.0.6-2.rh90.ccrma
> > > libsndfile-1.0.6-2.rh90.ccrma
> > >
> > > Looks like something might be wrong with
> libsndfile:
> > > [studio at stepdaddy wav]$ sndfile-resample --help
> > > /usr/bin/sndfile-resample: line 1: cd:
> > > /usr/src/rpm/BUILD/libsamplerate-0.1.0/examples:
> No
> > > such file or directory
> > > gcc: sndfile_resample-sndfile-resample.o: No
> such file
> > > or directory
> > > gcc: ../src/.libs/libsamplerate.so: No such file
> or
> > > directory
> > >
> > > Or are my pre-coffee mornings degenerating even
> > > further? :)
> >
> > Nope, even with coffee it is also failing here.
> I'll try to see what's
> > wrong later today (looks like what I packaged is
> the not completely
> > linked script in the build tree.... how come?...
> doh...)
>
> Some stoopid manual install I was doing, probably as
> a result of blind
> copy and paste of spec files :-)
>
> Fixed now (I think), just released
> libresample-0.1.0-2 for all distros.
> Another coffee would be fine :-) ;-p :-O
> -- Fernando
>
>
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA at ccrma.stanford.edu
>
http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
More information about the PlanetCCRMA
mailing list