IWMSyncReader skips frames
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
IWMSyncReader skips frames

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Jony Kwa
Guest





Posted: Tue Sep 07, 2004 12:52 pm    Post subject: IWMSyncReader skips frames Reply with quote

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 Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB