LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Editing music format conversion (http://www.linuxquestions.org/questions/slackware-14/editing-music-format-conversion-4175449959/)

waddles 02-13-2013 04:18 AM

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?

Alien Bob 02-13-2013 05:00 AM

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

irgunII 02-13-2013 07:02 AM

1 Attachment(s)
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.

waddles 02-14-2013 02:39 AM

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.


All times are GMT -5. The time now is 03:15 AM.