Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th March 2007, 00:39   #1  |  Link
Moti172
Registered User
 
Join Date: Jan 2006
Posts: 98
Need mp3 to wav - cmd's program

Hi

Can someone recommend a CMD program, for rencode mp3 file to wav? A kind of the opposite of lame.

Thanks
Moti172 is offline   Reply With Quote
Old 25th March 2007, 00:43   #2  |  Link
wisodev
Registered User
 
Join Date: Nov 2006
Posts: 161
Quote:
Originally Posted by Moti172 View Post
Hi

Can someone recommend a CMD program, for rencode mp3 file to wav? A kind of the opposite of lame.

Thanks
You can use lame to decode mp3 file to wav file, usage:
Quote:
lame.exe --decode --mp3input "input.mp3" "output.wav"
wisodev is offline   Reply With Quote
Old 25th March 2007, 01:53   #3  |  Link
Moti172
Registered User
 
Join Date: Jan 2006
Posts: 98
Is there a way to resample the frequency of the output file to 48Khz?
The --resample option doesn't work with --decode.

Thanks for your answer
Moti172 is offline   Reply With Quote
Old 25th March 2007, 07:18   #4  |  Link
wisodev
Registered User
 
Join Date: Nov 2006
Posts: 161
Quote:
Originally Posted by Moti172 View Post
Is there a way to resample the frequency of the output file to 48Khz?
The --resample option doesn't work with --decode.

Thanks for your answer
You can use SSRC (http://shibatch.sourceforge.net/) to resample decoded wav file.
Sample command-line (it's not perfect but resampling is very high quality):
Quote:
lame.exe --decode --mp3input "input.mp3" "tmp_output.wav"
ssrc.exe --rate 48000 --twopass "tmp_output.wav" "output.wav"
del "tmp_output.wav"
or you can use my simple batch script:

http://www.sendspace.com/file/eb1jww (dec_res.zip, 272 KB)

Package includes LAME v3.97, SSRC v1.30 and dec_res.bat batch script.

Usage sample for my script:
Quote:
dec_res.bat "input.mp3" "output.wav" 48000
where 48000 is output file sampling rate.
wisodev is offline   Reply With Quote
Old 25th March 2007, 13:18   #5  |  Link
Moti172
Registered User
 
Join Date: Jan 2006
Posts: 98
Thanks a lot
Moti172 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.