The easiest way is to use a screen-recording program built for capturing gameplay.
Among gamers, one of the most popular choices is Fraps, which is well known for recording smooth, high-quality footage. Set your resolution and frame rate, hit the capture hotkey, and you're good to go.