PSP Video

I've been fighting to get PSP video working consistently for what feels like years now, and so I'm going to document the workflows that work for me. For reference, I'm running Mac OS X 10.5.1 and I've got the latest PSP firmware, which at the moment is version 3.8.

DVD 16x9 source
Handbrake 0.9.1
Choose the PSP preset
Change Codec to "AVC/H.264 Video /AAC Audio"
Go into Picture Settings and Change Width to 480, Close
Go to Advanced Tab and type "level=3" in the x264 Advanced Option String
After encoding, place file into the /VIDEO/ folder of the PSP (no renaming required)

DVD 4x3 source
Handbrake 0.9.1
Choose the PSP preset
Change Codec to "AVC/H.264 Video /AAC Audio"
Go into Picture Settings and Change Height to 272, Close
Go to Advanced Tab and type "level=3" in the x264 Advanced Option String
After encoding, place file into the /VIDEO/ folder of the PSP (no renaming required)

AVI (or other video file) 16x9 source
ffmpegx 0.0.9x r1 (this is a version behind)
Choose the PSP H.264 preset
After encoding, place file without renaming (it'll be named MAQxxxxx.MP4) into the /MP_ROOT/100ANV01/ folder of the PSP

AVI 4x3 source
ffmpegx 0.0.9x r1 (this is a version behind)
Choose the PSP H.264 preset
Go to the Video tab and change the Video Size to 272 x 208
After encoding, place file without renaming (it'll be named MAQxxxxx.MP4) into the /MP_ROOT/100ANV01/ folder of the PSP

The last two are not ideal, but they work.
ffmpegx can be a pain to set up.