Using ffmpeg to convert videos for import into iPhoto

If iPhoto is unable to import a video, you can convert it into a format it understands using e.g. $ ffmpeg -i "$input_path" -vcodec libx264 -preset medium \ -acodec aac -pix_fmt yuv420p "$output_path" $ timestamp=`GetFileInfo -m "$input_path"` $ SetFile -d "$timestamp" -m "$timestamp" "$output_path" You can set the preset to slow, if you want more compression, or fast if you want it to convert faster. The GetFileInfo and SetFile utilities are part of ffmpeg and are used to extract and add metadata. [Read More]

Late 2009 iMac HDD Replacement

The harddrive in my iMac (Late 2009 27”) died last weekend and I decided to replace it myself. Here’s some quick tips if you find yourself in the same situation. Not sure if disk errors are your problem? Boot you Mac and press “Command-V” during startup for verbose boot output. You’ll see messages about “Disk I/O Error” during boot.

There’s a great tutorial on iFixit that explains step-by-step how to replace the drive. I found my iMac had a 3.5” Hitachi Model HDE721010SLA330 SATA 3.0 Gb/s drive once I cracked it open. You can replace the drive with any 3.5” SATA drive you like. I chose to replace it with a comparable Western Digital drive that had more cache.

[Read More]