Well I’ve talked about how to use IPod on FreeBSD, I haven’t talked about how to convert the videos to formats that IPod can understand, because, well, I struggled several days with that.
So here’s a short note about how to convert video to IPod on FreeBSD, as of 12/10/2006.
The credits goes to these web pages:
- Apple - iPod - Technical Specifications
- Atomized » Blog Archive » Converting video to play on your iPod with FFmpeg
- Initial Linux support for the 5g video iPod - video sync using gtkpod / libgpod Uwe Hermann
- m4v converter (video on new ipod) - LinuxQuestions.org
- Video iPod and Linux
And here’s the script I currently use:
#!/bin/bash
base=`echo $1 | gawk -F. ‘{print $1}’ `
echo “$1 $base”
ffmpeg -i “$1″ -f mp4 -vcodec xvid -maxrate 2000 -b 1500 \
-qmin 3 -qmax 5 -bufsize 16384 -g 30 -acodec aac -ac 2 -ar 44100 -ab 192 -s \
320×240 -aspect 4:3 “$base.mp4″
So Here’s the note:
- I need to use the ffmpeg-devel port instead of the ffmpeg portThis is because the IPod requires AAC audio and currently only the ffmpeg-devel port support that.
- Use the “xvid” for “-vcodec” in the script instead of “mpeg4″If I use mpeg4, the audio and video get un-sync for long movies (may after 30 minutes?)
- Build the ffmpeg-devel port with the “WITH_FAAC=yes” argumentFor some reason on my box ffmpeg didn’t build with FAAC even if I have audio/faac previously installed. Haven’t figured out why. The makefile looks OK.
- I can’t change the parameters too muchLike the “-b” thing. Or the video won’t be seekable on IPod.
Post a Comment
You could use <code type="name"> to get your code colorized