ScAlAn

Script to prepare iPod audiobook on ubuntu from mp3 files

Task: create iPod audiobooks on linux (Ubuntu) with tempo = 1.5

Solution:

Run this script in the directory with mp3 files.

  mkdir ${PWD##*/}.iBook
  for f in * ; do
    ff=`basename $f .mp3`
    ffmpeg -i "$f" -metadata title="1x5_$f" -metadata author="${PWD##*/}" -metadata artist="${PWD##*/}" -metadata album="${PWD##*/}" -filter:a "atempo=1.5" -b:a 128k -strict -2 "${PWD##*/}.iBook/${PWD##*/}_${f%}.m4a"
    mv "${PWD##*/}.iBook/${PWD##*/}_${f%}.m4a" "${PWD##*/}.iBook/${PWD##*/}_${f%}.m4b"
  done

Results will be located in the iBook directory.

Done.

Leave a Reply

Your email address will not be published. Required fields are marked *

5  +    =  12