Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 2 Jul 2008 02:18:40 -0700 (PDT),    group: microsoft.public.win32.programmer.directx.video        back       


VMR 9- Problem in setting video window?   
Hi to all...

Now i am working Live video capture application in MFC vc++.  I have
to looked the ampcap samples provided with DX SDK.  I just want to
create Capture graph using IGraphBuilder and ICaptureGraphBuilder2
interfaces.    When i intended display video in VMR Windowed, I can
display video in separate window. But When try to display video in my
own application window, i could not connect video to that window.  I
referred the code from DX9 documentation  .

How do i connect VMR9 - IVMRWindowlessControl9 interface to graph
Builder ?


Any code help? lot of thanks in advance.......


Regards
itekchandru...
date: Wed, 2 Jul 2008 02:18:40 -0700 (PDT)   author:   itekchandru

Re: VMR 9- Problem in setting video window?   
On Wed, 2 Jul 2008 02:18:40 -0700 (PDT), itekchandru wrote:

> How do i connect VMR9 - IVMRWindowlessControl9 interface to graph
> Builder ?

It's a matter of taking the code from one of the windowless samples like
Blender9 or Windowless9.  Use that code to replace the code in AmCap that
uses a windowed based renderer.

For the most dshow samples, get the DirectX Summer 2004 SDK (see my Links
page).

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Wed, 2 Jul 2008 10:39:59 -0600   author:   The March Hare [MVP] erland

Re: VMR 9- Problem in setting video window?   
From: "itekchandru"

> When i intended display video in VMR Windowed, I can
> display video in separate window. But When try to display
> video in my own application window, i could not connect
> video to that window.  I referred the code from DX9
> documentation  .
> How do i connect VMR9 - IVMRWindowlessControl9 interface
> to graph Builder ?

The graph manager only support 1 windowed video renderer. If 
you have more than 1 renderer or you want to use a mode 
other than windowed, you need to talk to the renderer 
directly.

Also, you do not need windowless mode to display the video 
in your own window. In windowed mode, you can either leave 
the video renderer's window at its default, which creates a 
separate top-level window, or you can make the window a 
child window of your own, which will make it display the 
video in your window. Windowsless has no window at all, not 
even a child one, and the video is drawn directly into a 
rectangle of your own window.

The following articles explain out to use both windowed and 
windowless modes and how to make the window a child window 
in windowed mode:

http://msdn.microsoft.com/en-us/library/ms787926(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms788090(VS.85).aspx


-- 
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
date: Wed, 2 Jul 2008 13:46:39 -0400   author:   Alessandro Angeli

Re: VMR 9- Problem in setting video window?   
Ok.. thanks allot.  I will try it...
date: Wed, 2 Jul 2008 23:02:00 -0700 (PDT)   author:   itekchandru

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us