我正在尝试将 avi 视频保存到文件中。为此,我使用了生产这些相机的公司的特殊 API,它已经具有允许我设置 avi 文件并执行所有其他相关操作的所有功能。但是,一旦我运行代码,我就无法访问保存视频的文件。
我的程序编译得很好。但是,我找不到保存 .avi 视频的文件的位置。我尝试将 CSIDL_ 更改为不同的位置,但我无法访问任何位置。
`// Configure the video file settings.
pIStVideoFiler->SetMaximumFrameCountPerFile(iMaximumCountOfImagesPerFile);
pIStVideoFiler->SetVideoFileFormat(StVideoFileFormat_AVI2);
pIStVideoFiler->SetVideoFileCompression(StVideoFileCompression_MotionJPEG);
pIStVideoFiler->SetFPS(fps);
// Get the path of the video files.
char szPath[MAX_PATH];
SHGetFolderPathA(NULL, CSIDL_MYVIDEO, NULL, 0, szPath);
// Register the file name of the video files
for (size_t i = 0; i < nCountOfVideoFiles; i++)
{
GenICam::gcstring strFileName(szPath);
strFileName.append("\\SaveVideo");
stringstream ss;
ss << i;
strFileName.append(ss.str().c_str());
strFileName.append(".avi");
pIStVideoFiler->RegisterFileName(strFileName);
}`
我的期望是能够告诉函数将视频文件保存到我可以访问的位置。请记住,我是 C++ 编程的新手。