Re: Capricious Video playback with DShow



Hi

I had an almost identical problem recently.

If you're using XP and simply calling the IFilterGraph Render method on your
output pin

The default XP renderer (VMR 7) appears to need some set-up that I'm not
aware of before it's used. Using the VMR 9 instead seems to resolve the
problem, by adding in the VMR 9 to the graph before rendering ...

IBaseFilter *pVmr = NULL;
hr = CoCreateInstance(CLSID_VideoMixingRenderer9, 0, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (void**)&pVmr);
m_pFilterGraph->AddFilter(pVmr,L"VMR9");

Then calling the
hr = m_pFilterGraph->Render(pPin);


"Geraint Davies" <geraintd@xxxxxxxxxx> wrote in message
news:13sb7vobzilsb$.eos6r393rfvw$.dlg@xxxxxxxxxxxxx
> On 13 Jan 2006 01:30:34 -0800, matthieu.bocktaels wrote:
>
>> Hi !
>>
>> I've succeed in playing video into a window using DShow.
>> I'm calling the video several time in my application and most of the
>> time, it works fine but sometimes, the video doesn't start and the
>> playback area still blank (not black).
>> But if I move the window (with the mouse for exemple) the video
>> appears.
>
> sounds like the WM_ERASEBACKGROUND f.a.q. You might want to search with
> Google Groups for this.


.



Relevant Pages

  • Re: Retrieve the true Pixel Aspect Ratio
    ... if I correctly understand your idea: I render the video using ... that in this case the VMR is responsible to ... any producer of video clips could ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: YUV / RGB
    ... The video capture card is a IEI IVC100. ... horrible" it is true even if I use a custom source filter which produces RGB ... render it to the VMR, and my application can provide some bitmap to incrust. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Render Closed-Caption to VMR
    ... Does anyone know how to render closed caption to VMR, ... if render it to default video render(Pass NULL at the ... sink filter) will be ok,buf if VMR it will failed. ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: Implementing a tight render loop when using a UserControl
    ... To get the same results using a Control I would consider the following: ... windows messages, however, to use VMR in a control make sure the window in ... > create the window and handling all the messages. ... > The Render method is just clearing the window in Managed DX to a blue color. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: asp.net page template *inheritance)
    ... because Render is an instance method - you were ... calling it by using the class name: 'PageBase'. ... > Imports System.Web.UI ...
    (microsoft.public.dotnet.framework.aspnet)

Loading