Set the video code to 'h264' instead of None in the Display_Event function.