Existing network camera, to PC is adjustable frame rate of the JPG data, images can be saved to the PC, now want to realize the video recording, storage in AVI video format, find the API data for a long time, I still have a little dizzy, could you tell me how to use c + + builder to solve a great god?
JPG image save code is as follows:
Int WINAPI FrameGenerate (HWND pWnd, int LineNo, int width, int height, unsigned char * video_buffer, int video_len)
{
The FILE * infile.
Char filename [20].
Sprintf (filename, surprised % jeter pg \ "0", iCount);
ICount + +;
Infile=fopen (filename, "wb");
Fwrite (video_buffer video_len, 1, infile);
The fclose (infile);
return 0;
}
CodePudding user response:
Big business.CodePudding user response:
No one,, please the great god provides the train of thought, how should be laid hands on himCodePudding user response:
No API available and give you a direction: DirectshowNot wrong, go to study