LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-28-2008, 07:50 AM   #1
cbjhawks
Member
 
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Rep: Reputation: 30
Music Q - How to convert wav files into mp3...


...via linux....I have 35 CD's of music (all wav files) that I would like to import/copy to my HD of linux (OpenSuSE 10.2)...when I tried to copy the first CD to my HD I cancelled it after 4 hours (too big, too long)...my intent is to create a playlist with Amarok. I have 30-40 songs already on my HD in mp3 format. So the Q is how do I convert the 35 CD's to mp3 format within linux? What program will accomplish this or do I have to do it via XP and the reburn them to mp3 format.
Thoughts? Thanks for your input...
 
Old 03-28-2008, 08:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,871

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
You can use lame:
Code:
for i in *.wav; do lame  $i `basename $i .wav`.mp3; done
Regards
 
Old 03-29-2008, 05:28 PM   #3
cbjhawks
Member
 
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Original Poster
Rep: Reputation: 30
bathory....is that as sudo/su...

do I need to run that command/script as my regular user or as root?...I still have to copy the CD and then run lame on/in that directory?
 
Old 03-30-2008, 04:12 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Assuming the .wav files are in a directory of your regular user, use that user.

You should only really use root for administrative purposes, and encoding audio files is not an admin task. Admin tasks are things like installing software, managing user accounts, starting and stopping server processes. Encoding audio files is a non-admin task, and should not be done with the root user if it is possible to do it with a normal user.

However, if you created the .wav files as root (e.g. ran a CD ripping program as root), the files will probably be saved to some place where your normal user cannot write, e.g. /root/Music/ (this is a guess... where are the files?). Such files will also be "owned" by root.

If this is the case, you should move the files to your normal user account home directory (or some sub-directory of it), and change the ownership of the files to that user (using the chown command, which you will have to execute as root - a normal user cannot 'steal' root's files, but root can give them away). Then you can continue with the encoding using the non-root user.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
using mpg123 to convert .mp3 to .wav files cddesjar Linux - Software 7 06-26-2018 11:28 PM
i want to convert .wav file into mp3 files in batch mode sparsh Linux - Software 6 11-20-2007 10:53 AM
Can anyone recommend some good software to convert *.wav files into *mp3 files? Tom "Techno" Earl Linux - Software 4 10-12-2006 04:03 PM
Convert mp3 to wav trey85stang Linux - Software 5 08-23-2006 09:57 PM
Convert .mp3 to .wav GtkUser Linux - Software 12 06-07-2006 07:24 AM

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

All times are GMT -5. The time now is 07:23 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