Hi there,
I have an application that can use USB webcams to feed the video and record the video in avi file with/without compression, the filter graph uses Intel Indeo Video 5.10 or Microsoft Windows Media Video 9 compressor.
Now I am trying to get the video from IP camera, there is no problem to preview the video from IP camera and record it into an avi file. Everything is fine without compression if I record the video and playback with Windows Media Player. However, the playback time is not correct if I record the video with compressor above and play it back with WMP. For example, for a 10 seconds video from IP camera, with the frame rate 1, 10 and 30 fps, the recorded frames in avi files are 32, 30 and 34, so when playback those files, the time become 32, 3 and 1 second.
My source filter and output pin class are drived from CSource and CSourceStream. I tried many ways, but still have no idea what is wrong.
Please help and your input are much appreciated.
Thanks in advance.
W.