answered 2013-03-08 06:27:32 -0600
Change the file extension to m4v and delete existing file before calling cvCreateVideoWriter()
( opencv chooses filetype looking at file extension )