Importing MPEG-4
From Rivendell Wiki
This script will convert m4a's to wav and format filenames for import.
## Put the folder with your m4a's below. ## drop=/var/drop/MUSIC ## Put your log file here ## log=/var/log/rivendell/drop for file in $drop/*.m4a do title=`faad -i "$file" 2>&1 | grep "title: " | sed -e "s%title: %%"` artist=`faad -i "$file" 2>&1 | grep "artist: " | sed -e "s%artist: %%"` album=`faad -i "$file" 2>&1 | grep "album: " | sed -e "s%album: %%"` faad -q -o "$drop/.converted/$title _$artist _$album.wav" "$file" && rm $file echo "$file converted" >> $log done
Now make a drop box for $drop/.converted/ and use this metadata pattern;
%t _%a _%l.wav
I run this script as a hourly cron job.

