char cmd[512]={0};
sprintf(cmd,"ffmpeg -f gdigrab -framerate 5 -offset_x %d -offset_y %d -video_size %dx%d -i desktop 1634.mp4",
m_ptBegin.x,m_ptBegin.y,m_ptEnd.x-m_ptBegin.x,m_ptEnd.y-m_ptBegin.y);
WinExec(cmd,SW_SHOW);
这样已结,so easy
char cmd[512]={0};
sprintf(cmd,"ffmpeg -f gdigrab -framerate 5 -offset_x %d -offset_y %d -video_size %dx%d -i desktop 1634.mp4",
m_ptBegin.x,m_ptBegin.y,m_ptEnd.x-m_ptBegin.x,m_ptEnd.y-m_ptBegin.y);
WinExec(cmd,SW_SHOW);
这样已结,so easy