Comments

I used this CV_FOURCC('X','2','6','4'). I've tried it with other containers (mkv and avi), and I can confirm that it works. However the reason I want to use MP4, is because if I use the containers (mkv or avi), it doesn't get displayed in the HTML5 video element (in Safari and Firefox); though Chrome can handle it.

Therefore I prefer to have the MP4 container, as this works in all browsers (Firefox, Safari, and Chrome).