Archive for January, 2009

Encoding video for Zune 80GB using ffmpeg

Saturday, January 10th, 2009

I am able to put an old 45min *.rm video file to my Zune 80GB, using encode-handheld-2.5.pl + a version of ffmpeg that supports x264 video and aac audio.

Building ffmpeg:

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-libfaac --enable-libx264 --enable-gpl
make

Converting:

./encode-handheld.pl -t ipod -f input-file -n new-title-for-the-video-file-to-show-in-zune-ui

Batch processing photos with gm

Tuesday, January 6th, 2009
for i in `find -iname '*.jpg' -printf '%f\n'`; do echo $i; gm convert -resize 50% $i small-$i; rm $i; done

Need more work to let it process photo inside folders.