Re: How do i know dynamic format change?




"Iain" <Iain@xxxxxxxxxxxxxxxxxx> wrote in message
news:o2ixkeq4gtz7$.s99fuxgpqj29.dlg@xxxxxxxxxxxxx
On Mon, 8 Jan 2007 19:01:01 -0800, zzhikang wrote:
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?
Yes, it is!

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)?
If MS codec is enabled, the format of media samples is YUY2.
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.



Iain

--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk


.



Relevant Pages

  • Re: Which codec is required?
    ... Where can I find the format for the different file types? ... that much I could parse apart the file..... ... Depending on the type of media, you will probably have to find or write ... (I don't want them to download codec - I just want to use the codecs I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Transform filter problem.(VMR double frame rate @ 50 Hz)
    ... >> format of your media, you need to copy the source buffer into the ... >My input media type is VideoInfoHeader type, ... This is important so you can format the video the way your video ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Which codec is required?
    ... which is why I was mentioning the file extension. ... the first filter in terms of identifying the media type. ... Depending on the type of media, you will probably have to find or write ... (I don't want them to download codec - I just want to use the codecs I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How do i know dynamic format change?
    ... 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, ... notification of the change (through the media sample) may take some time? ... Specifically also what is the format that is ...
    (microsoft.public.win32.programmer.directx.video)
  • Thanks Re: cant play some .avi files
    ... media centre v 10 will not play some avi files my previous win 2k media ... AVI is actually a container format and not a compression format in and of ... You're probably missing the codec the data inside AVI files is ...
    (microsoft.public.multimedia.windows.mediaplayer)

Loading