media seeking can't work in my decoder filter
- From: "hbtmzrui@xxxxxxxxx" <hbtmzrui@xxxxxxxxx>
- Date: 7 Sep 2006 01:32:16 -0700
the problem is when I try to play a H.264 avi file with my decoder
filter, media seeking doesn't work. as soon as I try to seek, the graph
stopped immediately and restart to run from first frame.
I build the graph like this:
file source(H.264 avi file) -> avi splitter -> decoder -> video render
I've checked other filters such as xvid or ffdshow's implementation,
and I can find nothing different from my filter and nothing about media
seeking in these transform filters, but they all work correctly.
maybe I should set timestamp for every samples passed to next filter,
so I add such code:
....
CRefTime rtEnd = m_time + m_avgFrameTime;
pOutSample->SetTime(&m_time.m_time, &rtEnd.m_time);
m_time = rtEnd;
but it don't help, what's wrong with my filter?
Thanks a lot!
.
- Follow-Ups:
- Re: media seeking can't work in my decoder filter
- From: Geraint Davies
- Re: media seeking can't work in my decoder filter
- Prev by Date: several capture sources + crossbar selection
- Next by Date: Unwanted latency when using StreamBufferEngine
- Previous by thread: several capture sources + crossbar selection
- Next by thread: Re: media seeking can't work in my decoder filter
- Index(es):
Relevant Pages
|