Cleaning.
Cleaned up code, error checking in the recorder.
h264 is now used, and each frame now has its Y axis flipped.