Fix video recording.

Reformat code.