Create a game that render itself into a video file.

Hi, I want to create a game that when open by user, it will start to run a cinematic and render that cinematic into a video file (the cinematic depend on that the user input). I searched everywhere but could not find the answer. Can anyone help me with this?

Thanks
Panton

Sorry for the unclear question. I already have the game with the custom cinematic. I am looking for a way to make the game render itself into a video file when run. I found the -BENCHMARK and -DUMPMOVIE commands but these only work when run with editor. I want the packaged game to work automatically when user open it. Thanks.