On Sat, 2 Dec 2017, Tomas Kuchta wrote:

lame
ffmpeg

Tomas,

  lame requires another library (faad2) and both are installed. There
apparently is an expected format that is not what the recorder provides. The
script I tried is:

#!/bin/sh
# name of this script: wav2mp3.sh
# wav to mp3

for i in *.wav; do
 if [ -e "$i" ]; then
   file=`basename "$i" .wav`
   lame -h -b 192 "$i" "$file.mp3"
 fi
done

  When I run the script with the .wav file's name I get this output:

Unsupported data format: 0x0011

  Knowing nothing about audio formats I looked on the Web and found sox.
Apparently did not use it properly. Audacity does the trick and ffmpeg is
installed although I've not used it before.

Should both work from command line given input.wav output.mp3 with optional
compression options.

  Not knowing what compression options would be appropriate there were none
on the script's command line and that might well be why it failed.

ffmpeg in particular is the real "Swiss army knife" type of a tool.

  I'll read the man page.

Thanks,

Rich
_______________________________________________
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to