Encode video and audio from the camera and microphone using FFmpeg