|
|
@ -876,9 +876,11 @@ public: |
|
|
|
/** @overload
|
|
|
|
/** @overload
|
|
|
|
@param filename Name of the output video file. |
|
|
|
@param filename Name of the output video file. |
|
|
|
@param fourcc 4-character code of codec used to compress the frames. For example, |
|
|
|
@param fourcc 4-character code of codec used to compress the frames. For example, |
|
|
|
VideoWriter::fourcc('P','I','M','1') is a MPEG-1 codec, VideoWriter::fourcc('M','J','P','G') is a |
|
|
|
VideoWriter::fourcc('P','I','M','1') is a MPEG-1 codec, VideoWriter::fourcc('M','J','P','G') |
|
|
|
motion-jpeg codec etc. List of codes can be obtained at [Video Codecs by |
|
|
|
is a motion-jpeg codec etc. List of codes can be obtained at |
|
|
|
FOURCC](http://www.fourcc.org/codecs.php) page. FFMPEG backend with MP4 container natively uses
|
|
|
|
[MSDN](https://docs.microsoft.com/en-us/windows/win32/medfound/video-fourccs) page
|
|
|
|
|
|
|
|
or with this [archived page](https://web.archive.org/web/20220316062600/http://www.fourcc.org/codecs.php)
|
|
|
|
|
|
|
|
of the fourcc site for a more complete list). FFMPEG backend with MP4 container natively uses |
|
|
|
other values as fourcc code: see [ObjectType](http://mp4ra.org/#/codecs),
|
|
|
|
other values as fourcc code: see [ObjectType](http://mp4ra.org/#/codecs),
|
|
|
|
so you may receive a warning message from OpenCV about fourcc code conversion. |
|
|
|
so you may receive a warning message from OpenCV about fourcc code conversion. |
|
|
|
@param fps Framerate of the created video stream. |
|
|
|
@param fps Framerate of the created video stream. |
|
|
|