Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-13-2005, 12:28 AM
|
#1
|
Member
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46
Rep:
|
audio conversion problems,,,
I checked the wiki and I found how to convert between different audio formats. But, I couldn't find how to convert an ogg format to mp3. Please tell me what commands/scripts/programs I would use to get this done. By the way, im on ubuntu 5.04 if that makes any difference.
|
|
|
06-13-2005, 02:43 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
ogg2mp3 would be an obvious choice... but there will be dozens of ways to do it.
|
|
|
06-13-2005, 10:13 AM
|
#3
|
Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Slackware
Posts: 124
Rep:
|
This requires vorbis-tools and lame.
#!/bin/sh
# Convert all ogg vorbis files in current directory to mp3 files.
for file in *.ogg ; do
oggdec "$file"
wavfile=`basename "$file" .ogg`.wav
mp3file=`basename "$file" .ogg`.mp3
lame "$wavfile" "$mp3file"
rm "$wavfile"
# Uncomment the next line if you want the ogg vorbis files to be removed
# rm "$file"
done
|
|
|
06-13-2005, 10:23 AM
|
#4
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
It'll result in a pretty low-quality copy tho - two lossy formats applied to one track? Not good!
|
|
|
06-13-2005, 03:51 PM
|
#5
|
Member
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46
Original Poster
Rep:
|
Thanx a lot guys. It doesn't really matter thought that the quality isn't that great, I'll live. I just needed the files to work on my ipod.
|
|
|
All times are GMT -5. The time now is 10:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|