FOURCC code "0"

whre can i find a FOURCC code “0" reply



http://www.moviecodec.com/questions/fourcc.html reply

Feedback


it’s only possible to save a video file with 3 clehnans.heres my code:#include#include#include#include#include int main( int argc, char** argv ){CvCapture *capture;//WebcamIplImage*frame;//RGBIplImage*frame_blue;//Subtraccion FrameIplImage*blue;//Blue FramesIplImage*frame_total;//REsulting Rame = blue frame_bluecapture = cvCaptureFromCAM( 0 );if ( !capture )return EXIT_FAILURE;frame = cvQueryFrame( capture ); if ( !frame )return EXIT_FAILURE;//cvNamedWindow( Video , CV_WINDOW_AUTOSIZE );//cvNamedWindow( Subtractor , CV_WINDOW_AUTOSIZE );CvSize size = cvSize( (int)cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH), (int)cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT));frame_blue = cvCreateImage( cvGetSize(frame), IPL_DEPTH_8U, 1 );cvSplit( frame , frame_blue , 0 , 0 , 0 );cvShowImage( Subtraction Frame ,frame_blue);blue = cvCreateImage( cvGetSize(frame), IPL_DEPTH_8U, 1 );frame_total = cvCreateImage( cvGetSize(frame), IPL_DEPTH_8U, 1 ); CvVideoWriter *writer = cvCreateVideoWriter(argv[ 1 ],CV_FOURCC( D','I','V','X'),25,size);while( (frame = cvQueryFrame( capture )) != NULL ){frame = cvQueryFrame(capture);if ( !frame )return EXIT_FAILURE;cvSplit( frame , blue , 0 , 0 , 0 );cvSub( frame_blue, blue, frame_total, NULL );//- Mostrar Janelas -//cvShowImage( RGB ,frame);cvShowImage( Blue ,blue);cvShowImage( Total ,frame_total);cvWriteFrame( writer, frame_total );char c = cvWaitKey(1);if (c == 27)return EXIT_FAILURE;}cvReleaseCapture( &capture );cvReleaseVideoWriter( &writer );cvDestroyWindow( Subtraccion Frame );cvDestroyWindow( Blue Vid );cvDestroyWindow( Total );return EXIT_SUCCESS;}please Ineed help reply

Feedback


Post Your Answer

Topic
Your reply
Your name
or log in
Verify you're human

By submitting this form you agree to our posting rules,
privacy policy and our disclaimer.