Fix VideoPlayer from stop after just few frames
This commit is contained in:
@@ -1481,7 +1481,7 @@ int VideoPlayerClientTest() {
|
||||
int64_t pts = 0;
|
||||
ANSVIDEOPLAYER* videoClient;
|
||||
|
||||
std::string testVideoFile = "E:\\Programs\\DemoAssets\\Videos\\classroom.mp4";
|
||||
std::string testVideoFile = "E:\\Programs\\DemoAssets\\Videos\\classroom.mp4";//"E:\\Programs\\DemoAssets\\ALPR_Test\\cam17.mp4"
|
||||
CreateANSVideoPlayerHandle(&videoClient, "", testVideoFile.c_str());
|
||||
|
||||
StartVideoPlayer(&videoClient);
|
||||
@@ -1580,7 +1580,7 @@ int FilePlayerClientCVTest() {
|
||||
if ((index == 1800) || (index == 2200) || (index == 2500)) { StopFilePlayer(&filePlayerClient); }
|
||||
if ((index == 2000) || (index == 2300) || (index == 2700)) { StartFilePlayer(&filePlayerClient); }
|
||||
if (index > 20000) break;*/
|
||||
if (index > 2000) break;
|
||||
// if (index > 2000) break;
|
||||
auto start = std::chrono::system_clock::now();
|
||||
cv::Mat* image = nullptr;
|
||||
GetFilePlayerCVImage(&filePlayerClient, width, height, pts, &image);
|
||||
@@ -1647,17 +1647,17 @@ int main()
|
||||
// resolved inside ANSCV.dll (which is linked against libavcodec etc.),
|
||||
// so this works without the unit test having to link FFmpeg itself.
|
||||
//ANSCV_PrintFFmpegLicense_S();
|
||||
FilePlayerClientDoubleDestroy();
|
||||
FilePlayerClientCVTest();
|
||||
VideoPlayerClientDoubleDestroy();
|
||||
VideoPlayerClientTest();
|
||||
//FilePlayerClientDoubleDestroy();
|
||||
//FilePlayerClientCVTest();
|
||||
//VideoPlayerClientDoubleDestroy();
|
||||
// VideoPlayerClientTest();
|
||||
//OpenCVFunctionTest();
|
||||
//GenerateVideo();
|
||||
//VideoTestClient();
|
||||
// TestGetImage();
|
||||
//PureOpenCV();
|
||||
// RSTPTestClient();
|
||||
//RSTPTestCVClient();
|
||||
//RSTPTestClient();
|
||||
RSTPTestCVClient();
|
||||
//TestCreateImageFromJpegStringFile();
|
||||
//TestCreateImageFromFile();
|
||||
//for (int i = 0; i < 100; i++) {
|
||||
|
||||
Reference in New Issue
Block a user