Please feel free to download and give it a try. I have a couple other imrpovements coming soon when I get a chance to work on them. They should include:
Direct link for download is here: http://www.box.net/shared/un3x08ato4
Snowboarding and Open Source Tech
-Now uses optparse python module for command line argument process handling
-New option for iphone/ipod-touch in addition to ipod-video and default modes
-Uses ffmpeg for processing ipod/iphone videos (H.264 and AAC codecs encoded to mp4 format)
-General code cleanup and slight re-factoring
-More verbose help options
$ ./mini-encoder.py --help
./mini-encoder.py - Encodes and resizes video files (avi or mpg) to fit
small screen resolution pmp devices. Resolution and codec formulas:
default - 320x240 (preserves original codecs from source video file)
ipod - 320x240 (re-encodes to mp4 using H.264 and AAC codecs)
iphone - 480x320 (re-encodes to mp4 using H.264 and AAC codecs)
Supply a path to the movie file you wish to encode (required):
./mini-encoder.py [options] --movie /path/to/file.avi
Options:
--version Print the version number of this program
-m, --movie Path to video file you wish to encode
-p, --ipod Encodes to mp4 format for use with ipod-video
-i, --iphone Encodes to mp4 format for use with iphone/ipod-touch
Usage: mini-encoder.py [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-m INMOVIE, --movie=INMOVIE
Input video file to encode
-p, --ipod Encode to ipod-video format
-i, --iphone Encode to iphone/ipod-touch format
Example for encoding for iphone/ipod-touch:
./mini_encoder.py --iphone --movie /path/to/movie.avi
$ ./wav2mp3.sh /home/nmaxwell/foo/
/usr/bin/bladeenc
Performing mp3 conversion on: /home/nmaxwell/foo/
Old filename: /home/nmaxwell/foo/song.wav
New filename: /home/nmaxwell/foo/song.mp3
BladeEnc 0.94.2 (c) Tord Jansson Homepage: http://bladeenc.mp3.no
===============================================================================
BladeEnc is free software, distributed under the Lesser General Public License.
See the file COPYING, BladeEnc's homepage or www.fsf.org for more details.
Files to encode: 1
Encoding: /home/nmaxwell/foo/song.wav
Input: 44.1 kHz, 16 bit, stereo.
Output: 128 kBit, stereo.
Completed. Encoding time: 00:00:07 (21.71X)
All operations completed. Total encoding time: 00:00:07