Fixed record script, but it records raw H264 (no header/footer).