Sign in to follow this  

Problems seeking to avi frame with DirectShow

This topic is 4357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on trying to extract frames from an uncompressed avi. I need to seek every frame in the avi, but instead, I get every 30th frame. I thought the process to seek generally went as follows (given an IMediaSeeking interface at pSeek and I've gotten the avi stream already)
rtNow = *frame I want to seek*

m_hr = m_pSeek->IsFormatSupported(&TIME_FORMAT_FRAME);
m_hr = m_pSeek->SetTimeFormat(&TIME_FORMAT_FRAME);
m_hr = m_pSeek->SetPositions(&rtNow, AM_SEEKING_AbsolutePositioning, 0, AM_SEEKING_NoPositioning);
if (SUCCEEDED(m_hr))
{
	printf("I've set frame to %d\n", rtNow);
}
If rtNow is set to 1, the frame I grab from the avi is actually 30, 2 is 60, etc. What is wrong with this approach?

Share this post


Link to post
Share on other sites

This topic is 4357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this