I am wondering if anyone can tell me what the correct codec is to write .mpg format in opencv. I can successfully write in the .avi format using the following codec