title: Writing a video file using H.264 compression in OpenCV
body: <p>How do I write a video using H.264 compression with the VideoWriter class in OpenCV?  I basically want to get a video from the webcam and save it after a character is pressed. The ouput video file is huge when using MPEG4 Part 2 compression.</p>