LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2013, 04:18 AM   #1
waddles
Member
 
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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: http://taper.alienbase.nl/mirrors/pe...ame/pkg/13.37/ (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:
Code:
#!/bin/sh
# Copy this script: to /usr/local/bin/wav2mp3.sh
# Make it executable: chmod +x /usr/local/bin/wav2mp3.sh

for i in *.wav; do
 if [ -e "$i" ]; then
   file=$(basename "$i" .wav)
   lame -h -b 192 "$i" "$file.mp3"
 fi
done
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):
Code:
#!/bin/sh
# Copy this script: to /usr/local/bin/wav2mp3.sh
# Make it executable: chmod +x /usr/local/bin/wav2mp3.sh

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

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
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
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:	30
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
waddles
Member
 
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.
 
  


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
[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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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