Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-23-2005, 02:01 PM   #1 (permalink)
 
Wizard Techie

Join Date: Mar 2004

Posts: 3,545

GameGURU is on a distinguished road

Default OGG to MP3

So, I noticed that KAudioCreator put all of my music on my computer as .ogg and not MP3 which is what I wanted, so that when I get an I-Pod I can put it on the I-Pod.

It took me FOREVER to put all of this on here, and I would like to just copy my amaroK playlist into a MP3 format.

I downloaded the script for amaroK that should be able to do that, but I can only convert it into .wav which is no good because .wav is massive.

Whenever I try to do it in MP3, nothing happens. It says it's all going correctly but when the transfer ends, nothing is in the folders.

Does anyone know an alternative to that script or even a seperate program that I can use to copy all of my music into a MP3 format?
__________________
15'' Macbook Pro
Intel Core 2 Duo 2.16ghz
x1600 128MB
1GB DDR2 SDRAM
Windows XP/Mac OSX 10.5


No longer a Guru of games...
GameGURU is offline  
Old 12-23-2005, 03:12 PM   #2 (permalink)
 
Ultra Techie

Join Date: Nov 2004

Posts: 905

Sevoma is on a distinguished road

Send a message via AIM to Sevoma
Default

http://pacpl.sourceforge.net/
or
http://linux.oldcrank.com/tips/mp3ogg/
will work
__________________
<a href=\"http://truecombat.us\"><img src=\"http://www.truecombat.us/images/buttons/tcusbannersmall.jpg\"></a>

Sevoma Web Hosting
Sevoma is offline  
Old 12-23-2005, 04:57 PM   #3 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

if you have sox, libmp3lame, and libmad installed just use sox to do it

a simple bash script would work:
#!/bin/bash
for i in <directory>/*.ogg
do
sox $i $i.mp3
done

might have to change the syntax a bit, been awhile since I used sox, but that should be pretty close
horndude is offline  
Old 12-23-2005, 06:16 PM   #4 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

you seem to like linux, have you seen ipodlinux? www.ipodlinux.org
they got videos to play on a nano, and supposedly you'll be able to play oggs and copy music directly to the iPod. its pretty cool, i had it working on my ipod mini, then i got an ipod colour and it didnt work, and now i have a 60gb video ipod and havent tried it yet. its not supported but ive seen doom played on it.

oh, and i've never seen "iPod" hyphenated before... but i dunno
The General is offline  
Old 12-24-2005, 12:25 PM   #5 (permalink)
 
Wizard Techie

Join Date: Mar 2004

Posts: 3,545

GameGURU is on a distinguished road

Default

Quote:
Originally posted by horndude
if you have sox, libmp3lame, and libmad installed just use sox to do it

a simple bash script would work:
#!/bin/bash
for i in <directory>/*.ogg
do
sox $i $i.mp3
done

might have to change the syntax a bit, been awhile since I used sox, but that should be pretty close
I would use that, except my music is spread out through tons of folders, and what I am getting out of this is that I have to give this command to every individual song.
__________________
15'' Macbook Pro
Intel Core 2 Duo 2.16ghz
x1600 128MB
1GB DDR2 SDRAM
Windows XP/Mac OSX 10.5


No longer a Guru of games...
GameGURU is offline  
Old 12-24-2005, 12:57 PM   #6 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

no just put all the songs in one directory unless you want to have to search for them all, and that can be done too

that thing above is a script, it needs made executable with chmod +rwx <filename> then run in a terminal..........its a simple for next loop, it will convert everything in one directory

you could write something to search and find all the files, make a list, and use the list to tell sox what files to convert, this is the power of linux.........simple scripts and automation
horndude is offline  
Old 12-24-2005, 09:17 PM   #7 (permalink)
 
Wizard Techie

Join Date: Mar 2004

Posts: 3,545

GameGURU is on a distinguished road

Default

Ok, all of my songs are in one directory...

It is titled "ogg"

In it, I have multiple folders of CD names and "Various Artists"

Now, sorry if this is hard for me but what exactly do I do and type?
__________________
15'' Macbook Pro
Intel Core 2 Duo 2.16ghz
x1600 128MB
1GB DDR2 SDRAM
Windows XP/Mac OSX 10.5


No longer a Guru of games...
GameGURU is offline  
Old 12-25-2005, 06:29 PM   #8 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

open an editor and type in the script below

ever done programming in QBASIC or anything like that? Same deal, just now your using BASH which is not only a shell, but has its own scripting language-------and many of the commands are similar to BASIC

since youve got multiple directories we will add a little twist to this:
#!/bin/bash
find /home/gameguru -name "*.ogg" -print > list.txt
while read i
do
sox "$i" "$i".mp3
done < list.txt

save that as is then do this to it
chmod +rwx <its_name>
then run it with ./<its_name>

assuming your version of sox has mp3 and ogg support and none of your filenames are really funky, that should do it quick and dirty like

if your music is somewhere other than /home somewhere........change the line that has "find" in it to start searching above wherever the music is

its should re-encode all of them into wherever they are so you will have .ogg and .ogg.mp3 files with the same names
horndude is offline  
 
Closed Thread

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On