Pixel
January 22, 2005, 23:56:59
Hello,
I wrote an application to sink video into an avi file, display other info (like local system time, frame number) on GUI and write these data into a log file. A listener is added to grabber and the overlay callback function is attached to guarantee that I got a trigger every time a new frame is streaming into avi. The overlay callback funtion sends a message to GUI thread to display and logging data. The application starts fine. But it stops at the time 'StopLive()' is called. In debug mode, the program refused to go to the next line. If I skip the display codes, it works but only when the avi sinking lasts less than 3 minutes.
1. Any idea why I got these problems happened?
2. Should I use 'grabber->setCallback(..)' to set a callback function instead of using overly callback?
3. Because I do not need to process video, I didn't allocate memory buffer to grabber. Is it an issue?
Thank you very much
I wrote an application to sink video into an avi file, display other info (like local system time, frame number) on GUI and write these data into a log file. A listener is added to grabber and the overlay callback function is attached to guarantee that I got a trigger every time a new frame is streaming into avi. The overlay callback funtion sends a message to GUI thread to display and logging data. The application starts fine. But it stops at the time 'StopLive()' is called. In debug mode, the program refused to go to the next line. If I skip the display codes, it works but only when the avi sinking lasts less than 3 minutes.
1. Any idea why I got these problems happened?
2. Should I use 'grabber->setCallback(..)' to set a callback function instead of using overly callback?
3. Because I do not need to process video, I didn't allocate memory buffer to grabber. Is it an issue?
Thank you very much