Re: converting mp3 to wav in 48k sample rate

Dubphil <[email protected]>
Newsgroups gmane.comp.audio.ecasound.general
Message-ID <[email protected]>
 Hi claude,

 when I do this :

 $ ecasound -f s16_le,2,48000 -i resample-hq,auto,in.mp3 -o out.wav

 I've  got this error :

 (eca-chainsetup) Opened input "resample:dubwalk.mp3", mode "read". 
 Format:
 ... s16_le, channels 2, srate 48000, interleaved (locked params).
 (eca-chainsetup) NOTE: using existing audio parameters 
 -f:s16_le,2,44100
 ... for object 'dubwalk.wav' (tried to open with -f:s16_le,2,48000).
 (eca-chainsetup) Opened output "dubwalk.wav", mode "read/write 
 (update)".
 ... Format: s16_le, channels 2, srate 44100, interleaved (locked 
 params).
 ERROR:  Connecting chainsetup failed: "All audio objects must have a 
 common
 ... sampling rate; sampling rate of audio object "dubwalk.wav" differs 
 from
 ... engine rate (44100 <-> 48000); unable to continue."

 The mp3 is effectively at 44100Hz in fact.
 it seems to be impossible to do this with ecasound.

 Thanks !

 Philippe

 On Fri, 07 Oct 2011 22:26:45 +0100, Claude Heiland-Allen wrote:
> On 07/10/11 19:04, Dubphil wrote:
>>   Hello,
>>
>>   I want to convert a mp3 file to wav at a 48000 sample rate :
>>
>>   so I have use this :
>>
>>   $ ecasound -i resample-hq,48k,dubwalk.mp3 -o dubwalk.wav
>>
>>   and here what it says never ending :
>
> I get the same error flood with your syntax.
>
> After installing mpg123, with :
>
> $ ecasound -i resample-hq,48000,in.mp3 -o out.wav
>
> I get no failure, but it does this: it assumes the mp3 is 48000
> (overriding its sample rate, in my case 44100), and resamples it to
> 44100, which means it ends up higher pitched and faster.
>
> Perhaps you want something more like:
>
> $ ecasound -f s16_le,2,48000 -i resample-hq,auto,in.mp3 -o out.wav
>
> Thanks,
>
>
> Claude
>
>>   Warning: type DBC_CHECK soft-assert 'ret == 0' failed at
>>    ->  samplebuffer.cpp:1382 [void
>>   
>> SAMPLE_BUFFER::resample_secret_rabbit_code(SAMPLE_SPECS::sample_rate_t,
>>   SAMPLE_SPECS::sample_rate_t)]
>>   Warning: type DBC_CHECK soft-assert 'ret == 0' failed at
>>    ->  samplebuffer.cpp:1386 [void
>>   
>> SAMPLE_BUFFER::resample_secret_rabbit_code(SAMPLE_SPECS::sample_rate_t,
>>   SAMPLE_SPECS::sample_rate_t)]
>>
>>   How can I achieve this ?
>>
>>   Best regards
>>
>>   Philippe
>>
>
>
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously 
> valuable.
> Why? It contains a definitive record of application performance, 
> security
> threats, fraudulent activity, and more. Splunk takes this data and 
> makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Ecasound-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ecasound-list

-- 
 http://dubphil.free.fr


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.