Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-13-2013, 04:18 AM   #1
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
Editing music format conversion

Running slack 13.37 and xfce windo mgr.
Have downloaded music to wave file OK. Now need to edit it and put edited version to cd as MP3.
I cannot figure a way to convert from wave format to mp3 with this full install version of slackware. Is this correct?
I am willing to do multiple conversions to get the job done as I am not a purist.
I have looked at lame thinking to download it so I could convert to mp3 but there is a dependency problem requiring further downloads and I prefer not to clutter my system.
I considered gnac but it also appears to need more downloads.
Is there a means to go from the wave file to and thru 1 or more conversions to get the file into an mp3 format with just what I have got via the full install of slackware?
Old 02-13-2013, 05:00 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,976

Rep: Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566Reputation: 4566
Slackware can't encode to MP3 out of the box, it is a license and patent issue.
LAME does not require any dependencies. Try this package: (change "pkg" to "pkg64" if you run 64-bit Slackware).
You could create a script to convert all WAV files to mp3 in one command. Something like this:
# Copy this script: to /usr/local/bin/
# Make it executable: chmod +x /usr/local/bin/

for i in *.wav; do
 if [ -e "$i" ]; then
   file=$(basename "$i" .wav)
   lame -h -b 192 "$i" "$file.mp3"
This will work fine as long as the WAV files do not contain spaces. Fir files with spaces, this should work - you run it in the directory where you have your WAV files (just like the first example which you also have to run from inside the directory with the WAV files):
# Copy this script: to /usr/local/bin/
# Make it executable: chmod +x /usr/local/bin/

find . -name '*.wav' -print0 | xargs -0 -i{} sh -c "FILE=\"{}\" ; lame -h -b 192 \"\$FILE\" \"\${FILE%wav}mp3\""

Last edited by Alien Bob; 02-13-2013 at 05:14 AM. Reason: Added second example for filenames containing spaces
Old 02-13-2013, 07:02 AM   #3
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 71
pacpl works very well also. I would advise having a fast internet connection when first installing it, because it downloads all the perl modules it needs to be able to work well. It can be done on dial-up, but takes a good deal longer (perhaps an hour or so...I know this from experience, heh). Make sure you run it the first time as root in konsole. Once you're done, it's a right-click menu option when used on music files and gives you dozens and dozens of options of converting from one form to another.
Attached Thumbnails
Click image for larger version

Name:	pacpl1.jpg
Views:	24
Size:	105.1 KB
ID:	11825  

Last edited by irgunII; 02-13-2013 at 07:04 AM.
2 members found this post helpful.
Old 02-14-2013, 02:39 AM   #4
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Thanks Eric, appreciate UR correction re LAME dependencies. Must have seen an out of date notation. Am downloading LAME now.
Appreciate input from U and irgunII.


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
[SOLVED] date format conversion iddarth.85 Linux - Newbie 3 04-29-2011 03:36 AM
Midi & other music format conversion to mp3 Benny7440 Linux - Software 6 10-01-2009 03:43 PM
How to convert rm format music files to mp3 format me4linux Linux - Software 2 05-15-2007 01:45 PM
Looking for WMA to MP3 music conversion ZakuSage Linux - Software 6 05-22-2005 07:24 PM
List format conversion rickenbacherus Linux - General 3 10-18-2004 11:23 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:54 AM.

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