LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2003, 12:16 PM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Converting mp3 to ogg


Hi, I want to convert my mp3's to ogg. I know there is a "mp3ogg" script out there that converts it for you. The problem is, the names of my mp3's contain white spaces. The result, for example is this:

Code:
sohail@linux ~/music/Bjork]$ mp3ogg Bjork\ -\ Army\ of\ Me.mp3

mp3ogg v 1.1.2 mp3 to ogg conversion script
Remove original mp3 files after ogg conversion? [y/N]:n
ls: Bjork: No such file or directory
ls: -: No such file or directory
ls: Army: No such file or directory
ls: of: No such file or directory
ls: Me.mp3: No such file or directory
The trival suggestion ofcource would be to rename my mp3's. But I kinda have alot of 'm (Don't tell the RIAA ). And most of them contain white spaces.
Also doing :

mp3ogg "Bjork - Army of Me.mp3"

doesn't work either. How can I get arond this stuped problem.

Last edited by qanopus; 07-06-2003 at 12:17 PM.
 
Old 07-06-2003, 12:32 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
When I convert from ogg to mp3 (I know, but I bought a $40 DVD player that only plays mp3), I did the following.

In Konqueror, right clicked on an ogg, open with 'other'. In the command line entered 'oggdec' and selected the option to 'Open in terminal'' and
selected 'Remember this app for this mime type' (mostly so I can watch progress'.

Now, using Konqeuror, I can select any number and open wth 'oggdec' and Konqeuror takes care of the spaces, and passed the file into oggdec. This converts to wav (1/2 the time I burn CDs 1/2 covert to mp3)

I did the exactly similar thing with 'wav' and saved a mime type to open with 'notlame <options>'

You can now use Konqeuror to select multiple files and 'open with' in parallel. (Although I have only notlamed 200 .wav files at once). Computer took 2 1/1 hours to complete taks). It should only take a minute or two for you to add the 'mp3toogg' mimetype.

RO
 
Old 07-06-2003, 03:20 PM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
I wouldnt suggest converting between lossy file formats.

Because each format actually removes a chunk of the sound from the file, and each one removes a different chunk, so you end up with a holey song.

The best thing to do is to rip it strait from the CD, because MP3 to Ogg (or the other way around) will produce really crappy sound.
 
Old 07-06-2003, 04:25 PM   #4
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks for the advice contrasutra. It's just that those mp3 really take up alot of space. But then again, it really does'nt matter since I have alot of space. Thanks you guy's anny way.

What could be usefull to know though, is how do I get rid of the white space from my file names. They can be a big pain.
 
Old 07-06-2003, 07:54 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
is someone know a way to convert wma to ogg/mp3?
 
Old 07-06-2003, 07:58 PM   #6
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
This little bit will change all fo the whitespaces for every mp3 in a dir to underscores:
Code:
for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr ' ' '_'`; done
Ian
 
Old 07-06-2003, 08:10 PM   #7
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Quote:
Originally posted by Half_Elf
is someone know a way to convert wma to ogg/mp3?
If mplayer can play the file, maybe you can use the pcm audio output plugin and pipe that into an ogg/vorbis or mp3 compressor.
 
Old 07-06-2003, 08:34 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
eeeeh sorry?
pcm audio output? well I'll take a look at google about it I suppose.
 
Old 07-07-2003, 12:58 AM   #9
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
"mplayer -ao help" prints info about audio output modules.
Quote:
Available audio output drivers:
pcm RAW PCM/WAVE file writer audio output
If that output plugin will write to standard output, then you can pipe it directly into a compressor program. Otherwise you can write out the whole PCM/WAVE file, or use a fifo as the output file and have the compressor program read from that (see "man mkfifo").
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
converting .ogg to .mp3? servnov Linux - General 8 03-06-2014 03:21 PM
converting ogg vorbis to mp3 Samoth Linux - Software 3 11-28-2005 07:05 PM
Converting from .wma to .mp3/.ogg Napalm Llama Linux - Software 2 09-10-2005 11:18 AM
Converting cda to mp3 OR ogg Cyb3rKnyght Linux - Software 2 10-18-2004 08:41 PM
converting from ogg to mp3 adee Linux - Newbie 4 04-04-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 PM.

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