Replacement for "aactomp3" option?
Charles Johnson
cehjohnson at googlemail.com
Thu Sep 1 08:02:51 PDT 2016
On 01/09/16 15:06, Shevek wrote:
> 2) Why would you use Cygwin with Windows 10 when it now has built in BASH [2]
On that note, here is what i use to convert. Install ffmpeg and make
sure it's in your PATH
========================= SNIP ================================
#!/bin/bash
# get_iplayer now saving as m4a
# Allow for a different source directory but still place conversions in current dir
working_dir=.
if [ $# -eq 1 ]
then
working_dir=$1
fi
for f in "$working_dir"/*.m4a
do
# Don't attempt to encode files already processed
echo "Processing $f..."
test -f "$f.mp3" || ffmpeg -i "$f" $(basename "$f").mp3
done
========================= SNIP ================================
More information about the get_iplayer
mailing list