Re: [LAU] No ffmpeg, help convert script for Sox

From: Kazakore <dj_kaza@email-addr-hidden>
Date: Tue Nov 18 2014 - 15:41:40 EET

>> and I'll look to see if there is a stdout option for Sox as guess
that is what was needed there too :)

And this appears to work with Sox (with progress shown.)

#!/bin/bash
if [ -d "${1}" ] ; then
   cd "${1}" && for f in *.flac; do sox "$f" -b 16 -t wav - -S | lame -b
320 -m j -q 0 - "${f%.flac}.mp3"; done
fi

Now any pointers to getting it so I run a single file, rather than the
full command of:
find -type d -exec ~/bin/flac2mp3sox "{}" \;
Always thought that looked a very messy way to have to do it!

Regards, Dale.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Tue Nov 18 16:15:02 2014

This archive was generated by hypermail 2.1.8 : Tue Nov 18 2014 - 16:15:03 EET