| Author |
Message |
Jony Kwa
Guest
|
Posted:
Tue Sep 07, 2004 12:52 pm Post subject:
IWMSyncReader skips frames |
|
|
I have a problem with IWMSyncReader::ReadSamples. I basically clone
the code form WmSYNCReader from WMFSDK.
I read video and audio.
The problem is upon ReadSamples, it skips alot of video frames.
Anyone has the same problem before?
|
|
| Back to top |
|
 |
Jony Kwa
Guest
|
Posted:
Mon Sep 27, 2004 3:52 am Post subject:
Re: IWMSyncReader skips frames |
|
|
thanks for your reply,
I just realized that the frames are skipped, but when i set the
frameRange and do another read, it will read the first frame that i
set in the frameRange, and if I do read again, it will give me the
right frame (without skip).
Is this make sense? |
|
| Back to top |
|
 |
Jony Kwa
Guest
|
Posted:
Mon Sep 27, 2004 11:04 am Post subject:
Re: IWMSyncReader skips frames |
|
|
My previous posting may be too brief.
I try to explain more details.
After setting up all those necessary steps for IWMSyncReader, i start
reading the WMV file using m_pReader->GetNextSample(...
Few early samples are sampled perfectly, after that calling
m_pReader->GetNextSample will give me a 10x previous duration.
So what i do is calling m_pReader->SetRange(prev_time, 0), and calls
m_pReader->GetNextSample(... again which give me previous frame, and
calls m_pReader->GetNextSample(... again to give me the correct next
frame.
It can be done like that and give me sattisafactory result, it just
weird how GetNextSample all the sudden just jump around.
|
|
| Back to top |
|
 |
|
|
|
|