Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2009, 07:17 AM
zubinmehta zubinmehta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Location: Mumbai, India
Posts: 63 zubinmehta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 43 m 7 sec
Reputation Power: 7
Send a message via Google Talk to zubinmehta
Facebook
LAME .wav to.mp3 batch conversion

I am using lame to do .wav to .mp3 conversion
I have to do this -->
Quote:
lame -V input.wav output.mp3

But i have 1000 .wav files and all i need to do is using lame convert them all into .mp3 automatically by naming the mp3 the same.

How do I do it using command line or maybe by writing a script

Reply With Quote
  #2  
Old July 17th, 2009, 08:37 AM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,840 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 2 Days 19 h 21 m 53 sec
Reputation Power: 1774
Well from a command line...
Code:
for i in *.wav ; do
  echo $i
  b=`basename $i .wav`
  lame -V $i $b.mp3 
done
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

Reply With Quote
  #3  
Old July 17th, 2009, 08:46 AM
zubinmehta zubinmehta is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Location: Mumbai, India
Posts: 63 zubinmehta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 43 m 7 sec
Reputation Power: 7
Send a message via Google Talk to zubinmehta
Facebook
Quote:
Originally Posted by salem
Well from a command line...
Code:
for i in *.wav ; do
  echo $i
  b=`basename $i .wav`
  lame -V $i $b.mp3 
done


thank you it worked. Simple and great!

Reply With Quote
  #4  
Old October 12th, 2012, 10:55 AM
gkolomvos gkolomvos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 1 gkolomvos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 37 sec
Reputation Power: 0
A little modification for filenames with SPACES

If your filenames have spaces then you have to make a little modification:

for i in *.wav ; do
echo $i
b=`basename "$i" .wav`
echo $b
lame --preset insane "$i" "$b.mp3"
done

The --preset insame makes lame convert in higher quality

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > LAME .wav to.mp3 batch conversion

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap