Results 1 to 2 of 2

Thread: New script to convert mp3 to m4b for iTunes

  1. #1
    Join Date
    Mar 2005
    South Africa
    Ubuntu 11.10 Oneiric Ocelot

    Lightbulb New script to convert mp3 to m4b for iTunes

    Hi all.
    I use my ipod solely for audiobooks.
    There are many places to download ripped audio books from but they are all in mp3 format usually.
    I developed this script to combine the mp3 files into audiobooks with chapters and artwork, ready to be imported into iTunes.
    I have a function in there to create your own watermarked art if needed.

    I hope you'll find this helpful.

    You'll need the following programs installed to run this script
    ffmpeg, imagemagick and mp3wrap:
    Get from repositories.

    mp4tags etc:
    tar -xf mp4v2-1.9.1.tar.bz2
    cd mp4v2-1.9.1
    sudo checkinstall

    Remember to do the following with the script
    chmod +x
    and run as ./

    I am no programmer.
    Let me know if you can change it to make it better.
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2006

    Re: New script to convert mp3 to m4b for iTunes

    You should list programs or packages that are required to use the script. Maybe under your version number in the head of the script would suffice.

    As for your main ffmpeg command:
    ffmpeg -i $cfg_workingDir/album_MP3WRAP.mp3 -y -vn -acodec aac -strict experimental -ab 64k -ar 44100 -threads 3 -f mp4 "$cfg_workingDir/$ffOUT" >> "$logs" 2>&1
    The native aac encoder (sometimes called ffaacenc) in ffmpeg is usually not considered to be very good. Oneiric supports libvo-aacenc if the user also installs libavcodec-extra-53. Other Ubuntu versions can use libfaac if the Medibuntu version of the same package is used (libavcodec-extra-52). Unfortunately this requires additional work by the user, although it isn't much work. Instructions for that are here:

    HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg

    I do not believe ffaacenc supports -threads. -ab 64k might be a little low, but for audiobooks perhaps it's enough.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts