Re: Capricious Video playback with DShow
- From: "Joe" <joe@xxxxxxxxxxxxxxx>
- Date: Sat, 14 Jan 2006 23:10:30 GMT
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.
.
- References:
- Capricious Video playback with DShow
- From: matthieu.bocktaels
- Re: Capricious Video playback with DShow
- From: Geraint Davies
- Capricious Video playback with DShow
- Prev by Date: Re: Problems display IVideoWindow Child of CDialog
- Next by Date: Using D3D to render controls with the VMR9
- Previous by thread: Re: Capricious Video playback with DShow
- Next by thread: Detecting sequence of video has begun
- Index(es):
Relevant Pages
|
Loading