Re: How do i know dynamic format change?
- From: Iain <Iain@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 9 Jan 2007 13:08:28 +0000
On Tue, 9 Jan 2007 20:23:29 +0800, zzhikang wrote:
"Iain" <Iain@xxxxxxxxxxxxxxxxxx> wrote in message
news:o2ixkeq4gtz7$.s99fuxgpqj29.dlg@xxxxxxxxxxxxx
On Mon, 8 Jan 2007 19:01:01 -0800, zzhikang wrote:Yes, it is!
So the problem is that when the wmp window is restored with the MS codec,
the media type appears to change immediately whereas for your codec, the
notification of the change (through the media sample) may take some time?
If MS codec is enabled, the format of media samples is YUY2.
Is this actually the case or does the MS codec just emit RGB until it
receives the format change? Specifically also what is the format that is
the normal format (a YUV type I presume)?
Also, i have tried the following:
My transform filter is drived from GetDeliveryBuffer class.
1) Use the default CTransformFilter::Receive function:
The last parameter of m_pOutput->m_pAllocator->GetBuffer in
InitializeOutputSample will be 0 or 2(2 means AM_GBF_NOTASYNCPOINT).
In this case, the notification of the change will take more time.
This case is what i have described before.
2)Another, Override CTransformFilter::Receive function:
m_pOutput->m_pAllocator->GetBuffer(&pOutSample,NULL,NULL,0) (set dwFlags = 0
always)
In this case, the notification of the change hardly occurs when the wmp
window is restored. There is no any delay.
But, the image of first several frames are fuzzy and it will persist for
several seconds aslo.
It seems such duration time is close to the previous time of black screen.
It sounds like you may have a problem with sync points (IFrames) -
especially if you are doing hardware decoding. Is the renderer waiting for
the first keyframe before displaying (case1) and in the second case, there
is not enough data to render a good image?
To be honest this sounds like it is something to do with the decoding
process. What format are you decoding?
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.
- Follow-Ups:
- Re: How do i know dynamic format change?
- From: zzhikang
- Re: How do i know dynamic format change?
- References:
- How do i know dynamic format change?
- From: zzhikang
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- From: zzhikang
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- From: Iain
- Re: How do i know dynamic format change?
- From: zzhikang
- How do i know dynamic format change?
- Prev by Date: Re: Drawing a string on a video in TansInPlace filter with GDI+ does not work properly
- Next by Date: Re: Video renderer: Increasing rendering lateness with a live source
- Previous by thread: Re: How do i know dynamic format change?
- Next by thread: Re: How do i know dynamic format change?
- Index(es):
Relevant Pages
|
Loading