Compression/Decompression Wave File to MP3 and Vice Versa

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #11
Apr 25th, 2006
Hi, WolfPack, I have tried to implement in my current software followed the instrustions given in your post, appreciate your help.

For your info, I put the code in the OnSave so that the lame exe will be executed whenever I click the button 'Save'.

But, what happens is after I record one sentence, I click 'Save', the software prompt me for save file name and the lame.exe came out very fast and disappeared in just a blink. And, I went to check the folder, I couldnt find any .mp3 file.

I am sorry, I think I must have made some mistakes. I wonder where I did wrong. still searching...
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #12
Apr 25th, 2006
Originally Posted by cindy_16051988
Hi, WolfPack, I have tried to implement in my current software followed the instrustions given in your post, appreciate your help.

For your info, I put the code in the OnSave so that the lame exe will be executed whenever I click the button 'Save'.

But, what happens is after I record one sentence, I click 'Save', the software prompt me for save file name and the lame.exe came out very fast and disappeared in just a blink. And, I went to check the folder, I couldnt find any .mp3 file.

I am sorry, I think I must have made some mistakes. I wonder where I did wrong. still searching...
Well without any code I can't say anything from here. So please post your code. Anyway I have attached a simple script file inside a zip file. You can extract it and put
1. All your wav files
2. Lame.exe
3. the script file Convert_To_MP3.cmd
into a single folder and double click the Script file. All the wav files in that folder will be converted to MP3 files.
If you find that enough for your requirements you can use it freely. Otherwise if you want to find the error in your code, you should post your code.
Attached Files
File Type: zip Convert_To_MP3.zip (343 Bytes, 13 views)
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #13
Apr 25th, 2006
Hi, WolfPack, I have tried steps as stated in your last post.

But, After I double click the script file, it generated LAME REPORT.txt but I didnt get any .mp3 file converted.

Can I paste the code here? I afraid I will be scolded for the big space wasted.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #14
Apr 25th, 2006
What does LAME_REPORT.txt say?
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #15
Apr 25th, 2006
Hi, WolfPack, the text file is empty
I am sorry to cause this trouble.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #16
Apr 25th, 2006
HI, WolfPack. I mean it generated a file name LAME_REPORT.txt but when I opened, it is empty and nothing inside.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #17
Apr 25th, 2006
Originally Posted by cindy_16051988
HI, WolfPack. I mean it generated a file name LAME_REPORT.txt but when I opened, it is empty and nothing inside.
:eek: Beats me. It worked at my computer.
Anyway zip your code and attach it in this thread if it is too big. If a wave file is not that big, attach a sample wave file too.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #18
Apr 25th, 2006
Hi, WolfPack, thanks for your reply.

Sorry for the late reply as I forget to save from the computer before I back.

I attached the file folder as below.
Attached Files
File Type: zip Convert_To_MP3.zip (355.6 KB, 13 views)
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #19
Apr 25th, 2006
Yahoooo. Got it. I forgot to write it for files with spaces in the file name.
Here is a Correct version. Hope it works this time.
Attached Files
File Type: zip Convert_To_MP3.zip (333 Bytes, 5 views)
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 52
Reputation: cindy_16051988 is an unknown quantity at this point 
Solved Threads: 0
cindy_16051988 cindy_16051988 is offline Offline
Junior Poster in Training

Re: Compression/Decompression Wave File to MP3 and Vice Versa

 
0
  #20
Apr 25th, 2006
Hi, WolfPack, thanks for your reply.

I have run it successfully with your latest zip file, thanks.

May I ask some more?

1. After the children complete their practices, they will use your codes to compress and then save in a floppy. Then, they bring the floppy to our centre on the next visits. We (Me and the therapist) need to decompress the MP3 file back to Wave file because our software is designed to play the wave.
May I know how can I decompress back? Is it a big problem?

2. I still get the LAME_REPORT.txt which is empty, did I make any mistake? (I am just asking)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC