Re: [ecasound] convert sample rate

From: Rémi R <untruclong.durabombarder@email-addr-hidden>
Date: Thu Jan 24 2008 - 00:11:49 EET

Hi,

I hope this answer from a biginer is not stupid...

"-f:s16_le,1,11025" don't resample your signal, that's specify a format
for a part of your chain setup. (even if it can magicly change from 24
to 16 bits sometimes).

You should better use something like :
-f:s16_le,1,11025 -i resample,auto,9645.mp3 -o out.wav

Your chain setup is in format s16_le,1,11025, the input file is 9645.mp3
resampled, the output file is out.wav.

Pick up "resample" stuff in man and examples pages.

Good luck,
Rémi+

Enzo a écrit :
> Hi
>
> I have an mp3 44100 Hz, stereo
>
> I'd like to create a wav mono 11025Hz, so i do:
> ecasound -i:9645.mp3 -f:16,1,11025 -o:out.wav
> (or ecasound -i:9645.mp3 -f:s16_le,1,11025 -o:out.wav)
>
> ecasound creates a mono wav file, but doesn't change the sample rate, how can i do to convert it also ?
>
> Here is the dump of ecasound command:
>
> - [ Session created ] ----------------------------------------------------------
> - [ Chainsetup created (cmdline) ] ---------------------------------------------
> - [ Connecting chainsetup ] ----------------------------------------------------
> (eca-chainsetup) 'nonrt' buffering mode selected.
> (eca-chainsetup) Audio object "9645.mp3", mode "read".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> (eca-chainsetup) Audio object "out.wav", mode "read/write".
> (audio-io) Format: s16_le, channels 1, srate 44100, interleaved.
> - [ Chainsetup connected ] -----------------------------------------------------
> (eca-control-objects) Connected chainsetup: "command-line-setup".
> - [ Controller/Starting batch processing ] -------------------------------------
> - [ Engine init - Driver start ] -----------------------------------------------
> - [ Controller/Batch processing finished (0) ] ---------------------------------
> (eca-control-objects) Disconnecting chainsetup: "command-line-setup".
> - [ Chainsetup disconnected ] --------------------------------------------------
>
> Thanks
> Enzo
>
>
>
>
>
>
>
>
>
> _____________________________________________________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ecasound-list mailing list
> Ecasound-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecasound-list

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Thu Jan 24 04:15:01 2008

This archive was generated by hypermail 2.1.8 : Thu Jan 24 2008 - 04:15:01 EET