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: Thu, 17 Jul 2008 05:37:30 -0700 (PDT),    group: microsoft.public.win32.programmer.directx.video        back       


How to set custom properties on a filter?   
I have a Pinnacle Dazzle capture box to capture video.  I've set up a
graph in GraphEdit to capture the video into a file, and arranged for
the data to be saved in MPEG2 video format via the property page of
the Dazzle filter.  That all works fine, and I can capture and play
the file.

Now, I want to achieve the same thing programmatically, using
DirectShowLib v2.  The problem is I don't know how to programmatically
set the Dazzle filter to output MPEG2.

Going back to GraphEdit, there are a number of property pages for the
Dazzle filter.  Some of these, like 'Video Decoder' map to interfaces
in DirectShowLib, and I can cast the filter to these and set the
properties happily.  But the 'Video Setting' page does not appear to
map to an interface, so I can't set the 'Stream' property to 'MPEG2,
IPB, DVD'.

Is there a general method of programmatically setting properties on
third party filters?

TIA.

Ian.
date: Thu, 17 Jul 2008 05:37:30 -0700 (PDT)   author:   Ian

Re: How to set custom properties on a filter?   
On Jul 17, 2:37 pm, Ian  wrote:
> I have a Pinnacle Dazzle capture box to capture video.  I've set up a
> graph in GraphEdit to capture the video into a file, and arranged for
> the data to be saved in MPEG2 video format via the property page of
> the Dazzle filter.  That all works fine, and I can capture and play
> the file.
>
> Now, I want to achieve the same thing programmatically, using
> DirectShowLib v2.  The problem is I don't know how to programmatically
> set the Dazzle filter to output MPEG2.
>
> Going back to GraphEdit, there are a number of property pages for the
> Dazzle filter.  Some of these, like 'Video Decoder' map to interfaces
> in DirectShowLib, and I can cast the filter to these and set the
> properties happily.  But the 'Video Setting' page does not appear to
> map to an interface, so I can't set the 'Stream' property to 'MPEG2,
> IPB, DVD'.
>
> Is there a general method of programmatically setting properties on
> third party filters?
>
> TIA.
>
> Ian.

You must obtain from the vendor the description of the proprietary
interface he has implemented.
date: Thu, 17 Jul 2008 09:08:47 -0700 (PDT)   author:   Michel Roujansky - Senior developer, Starfish Technologies Ltd

Re: How to set custom properties on a filter?   
Hi,

> > Is there a general method of programmatically setting properties on
> > third party filters?

The best choice for you is to obtain technical documentation/
information or other help from software vendor on using the filter and
its interfaces.

However with certain luck you can find implemented interfaces in the
type library of the binary that contains the filter using COM/OLE
Viewer. If the desired interfaces are there you will need to
QueryInterface for appropriate interface and take a programmatic
control over it.

Roman
date: Thu, 17 Jul 2008 12:47:00 -0700 (PDT)   author:   Roman Ryl...

Re: How to set custom properties on a filter?   
> The best choice for you is to obtain technical documentation/
> information or other help from software vendor on using the filter and
> its interfaces.
>
> However with certain luck you can find implemented interfaces in the
> type library of the binary that contains the filter using COM/OLE
> Viewer. If the desired interfaces are there you will need to
> QueryInterface for appropriate interface and take a programmatic
> control over it.

Thanks Michel and Roman.  I will investigate both options and post
back as appropriate.
date: Fri, 18 Jul 2008 01:50:56 -0700 (PDT)   author:   Ian

Google
 
Web ureader.com


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