De-hardcode the sample rate, framerate, width/height. Get rid of an awkward function. Style nits here and there.