Compare commits

...

1 Commits
0.3 ... master

Author SHA1 Message Date
encoded e0f5676e48 Allows bpm-tag to operate on m4a files.
Tags are written using mp4tags and read using mp4info, both of
which are part of the mp4v2 project, whose code is available at
https://code.google.com/p/mp4v2/
2014-05-23 22:10:28 +01:00
1 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@ case "$FILE" in
*.ogg)
BPM=`vorbiscomment "$FILE" | sed -n 's/^BPM=//p'`
;;
*.m4a)
BPM=`mp4info "$FILE" | sed -n 's/^\s*BPM://p'`
;;
*)
echo "$FILE: file extension not known" >&2
exit 1
@ -129,6 +132,9 @@ case "$FILE" in
*.ogg)
vorbiscomment -at "BPM=$BPM" "$FILE"
;;
*.m4a)
mp4tags -tempo "$BPM" "$FILE"
;;
*)
echo "$FILE: don't know how to tag this type of file" >&2
exit 1