LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 06-13-2005, 12:28 AM   #1
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Rep: Reputation: 15
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.
 
Old 06-13-2005, 02:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ogg2mp3 would be an obvious choice... but there will be dozens of ways to do it.
 
Old 06-13-2005, 10:13 AM   #3
Speek
Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Slackware
Posts: 124

Rep: Reputation: 41
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
 
Old 06-13-2005, 10:23 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
It'll result in a pretty low-quality copy tho - two lossy formats applied to one track? Not good!
 
Old 06-13-2005, 03:51 PM   #5
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio Conversion: FLAC to WAV timswim78 Linux - Software 4 12-06-2017 06:12 PM
Audio problems whitelinux Linux - Hardware 1 08-15-2005 08:12 PM
clustering audio conversion? e1000 Linux - Software 2 06-15-2004 06:33 PM
Audio conversion tools bulliver Linux - Software 8 04-03-2003 02:07 PM
CD Audio problems cjergl Linux - Software 9 10-31-2001 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration