+ CV_FUNCNAME( "cvCreateVideoWriter" );
+
+ CvVideoWriter *result = 0;
+
+ if(!fourcc || !fps)
+ result = cvCreateVideoWriter_Images(filename);
+
+ #ifdef WIN32
+ if(!result)
+ result = cvCreateVideoWriter_Win32(filename, fourcc, fps, frameSize, is_color);
+ #endif
+
+/* #ifdef HAVE_XINE
+ if(!result)
+ result = cvCreateVideoWriter_XINE(filename, fourcc, fps, frameSize, is_color);
+ #endif
+*/
+ #ifdef HAVE_FFMPEG
+ if(!result)
+ result = cvCreateVideoWriter_FFMPEG(filename, fourcc, fps, frameSize, is_color);
+ #endif
+
+ #ifdef HAVE_QUICKTIME
+ if(!result)
+ result = cvCreateVideoWriter_QT(filename, fourcc, fps, frameSize, is_color);
+ #endif
+
+ if(!result)
+ result = cvCreateVideoWriter_Images(filename);
+
+ return result;