ディスク上にビデオを書き込むWriterを生成する.
Writerを解放する.
CV_FOURCC('D','I','V','3')
#define CV_FOURCC(c1,c2,c3,c4) (((c1)&255) + (((c2)&255)<<8) + (((c3)&255)<<16) + (((c4)&255)<<24))
Cinepak Code by Radius | CVID |
Intel 4:2:0 Video V2.50 | 失敗 |
Intel Indeo(R) Video R3.2 | IV32 |
Intel IndeoR Video 4.5 | IV41 |
Intel IYUV code | IYUV |
Microsoft RLE | 失敗 |
Microsoft Video 1 | MSVC |
Microsoft H.263 Video Codec | 失敗 |
Microsoft H.261 Video Codec | 失敗 |
IndeoR video 5.10 | IV50 |
Canopus Software DV Decompressor | 失敗 |
Microsoft MPEG-4 Video Codec V1 | MPG4 |
Microsoft MPEG-4 Video Codec V2 | MP42 |
Microsoft MPEG-4 Video Codec V3 | MP43 |
DivX(R) 6.1 Codec (1 Logical CPU) | DIVX¬e{divx-latest:インストールされているDivXの最新バージョンでエンコーディングする}; |
DivX(R) 6.1 YV12 Decoder | ? |
DivX(R) 6.6.1 Codec (2 Logical CPU) | DIVX¬e{divx-latest}; |
DivX(R) 6.6.1 YV12 Decoder | 失敗 |
Microsoft Windows Media Player Video 9 | ? |
Ut Video Codec Suite¬e{utvideo-intro:Ut Video Codec Suite - k本的に無料ソフト・フリーソフト, 2013-04-15閲覧};¬e{utvideo-binary-distribution:Index of /archive/utvideo, 2013-01-13更新, 2013-04-15閲覧};¬e{utvideo-author-official:或るプログラマの一生, 2013-04-15閲覧}; | ULRG |
Huffyuv¬e{Huffyuv-official:Huffyuv, 2013-04-15閲覧};¬e{huvvyuv-introduction:Huffyuv - k本的に無料ソフト・フリーソフト, 2013-04-15閲覧}; | HFYU |
非圧縮AVI | DIB |
#geshi(c++,number=on,start=212){{ CvVideoWriter* cvCreateVideoWriter_Win32( const char* filename, int fourcc,
double fps, CvSize frameSize, int isColor ){
CvVideoWriter_FFMPEG_proxy* result = new CvVideoWriter_FFMPEG_proxy;
if( result->open( filename, fourcc, fps, frameSize, isColor != 0 )) return result; delete result;
return cvCreateVideoWriter_VFW(filename, fourcc, fps, frameSize, isColor);
} }}
#geshi(c++,number=on,start=212){{ CvVideoWriter* cvCreateVideoWriter_Win32( const char* filename, int fourcc,
double fps, CvSize frameSize, int isColor ){
//CvVideoWriter_FFMPEG_proxy* result = new CvVideoWriter_FFMPEG_proxy;
//if( result->open( filename, fourcc, fps, frameSize, isColor != 0 )) // return result; //delete result;
return cvCreateVideoWriter_VFW(filename, fourcc, fps, frameSize, isColor);
} }}
#geshi(c++,number){{
#include <cv.h> #include <highgui.h> void main(){ CvVideoWriter *writer; IplImage *image; writer = cvCreateVideoWriter( "result.avi", -1, 29.97, cvSize(IMAGE_WIDTH, IMAGE_HEIGHT)); while(end){ image = SomeKindOfProcess( some, parameters); cvWriteFrame(writer, image); } cvReleaseVideoWriter( &writer); }
}}