Help - Search - Members - Calendar
Full Version: [LINUX] avi2mp4.sh to convert videos for iPods
Hydrogenaudio Forums > Digital Audio/Video > General A/V
micmac
Hi all,

just want to toot my own horn >:)

I've written a shell script that converts videos to X264/AAC wrapped in MP4. The resulting files you can put on your iPod (e.g. with amarok, gtkpod). I use it mostly to convert AVI files, but it can also help to rip DVDs etc. All the necessary info can be found in the script's comments.

I dare say the requirements are minimal. Only open source software is used. The quality is very good as it doesn't add black bars to the video and two encoding passes are used. Running it usually just involves calling the script itself with the files to be converted as arguments, so it's very easy to use.

The script can be downloaded from Doom9 forum.

Kind regards
mic
micmac
CODE
1.1.5: - Add $MP4BOX_IPOD to set whether "MP4Box -ipod ..." is run
       - Add possibility to renice the script (alter its priority)
       - use "-oac pcm" instead of "-oac copy"; it does add a little
         overhead (and we need more drive space) but it helps keeping
         audio and video in sync; also some audio codecs cannot be
         muxed into AVI, e.g. Vorbis, so now we're working around this
         issue
micmac
CODE
1.1.6:
        - Split release into ChangeLog, README, INSTALL and script itself
        - Add possibility to use neroAacEnc AAC encoder instead of faac; it's
          not Open Source but I ran into an issue with faac earlier and
          apparently it's not maintained anymore
        - Increase accuracy of aspect calculation; I doubt this has any effect
micmac
CODE
1.1.7:
        - mention faac in INSTALL
        - add possibility to override neroAacEnc binary (README for more
          info)
        - add Xvid support; it's so much faster than x264, had to add it
        - add configuration file example to README
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.