export standalone video on mac and pc

Is there a solution out there for a standalone game to export video and game sound from the gameplay. I need a solution for mac and pc.

You can use a 3rd party tool like ffmpeg to do that. Use it as a plugin to enode videos from unity.