Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: [Rendering plugin] GUID

HTVi
TV Discussion Newsgroups

[Rendering plugin] GUID
Igor 4/27/2007 12:46:01 AM
Hello,

I am creating a rendering plugin with some help from Samples in Media SDK
(Vista SDK). I created a very simple test plugin which works with
rendering.asf sample file from SDK. My plugin simply writes out the x and y
coordinates of the mouse click in drawing surface.

I want to do the same thing with for example all(!) wmv files. The problem
is, that the plugin loads only with the 'rendering.asf' file (because of the
GUID associated with it).

Is it possible to associate plugin with all wmv files?

Any other guidelines would help me a lot.

Thanks.
RE: [Rendering plugin] GUID
Igor 4/27/2007 1:50:03 AM
And another sub question.

The following GUID is defined for 'render.asf':
0xc1ccdf59, 0x6924, 0x4b96, 0x82, 0x47, 0xdb, 0xb0, 0xea, 0xe5, 0xb6, 0x7

It is mentioned in MSDN Documentation. But how could I get GUID for this
file if haven't read it in documentation?
Re: [Rendering plugin] GUID
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 4/27/2007 9:09:53 AM
From: "Igor"

[Quoted Text]
> The following GUID is defined for 'render.asf':
> 0xc1ccdf59, 0x6924, 0x4b96, 0x82, 0x47, 0xdb, 0xb0, 0xea,
> 0xe5, 0xb6, 0x7
>
> It is mentioned in MSDN Documentation. But how could I
> get GUID for this file if haven't read it in
> documentation?

The media type GUID specifies the data format of the stream
in the ASF file. The sample you are referring to uses a
custom (i.e. non standard) media type and that is its GUID.
You can find out the media types of the streams in a given
ASF file by reading its header (either directly or by
getting an IWMProfile object from one of the readers in the
WMF runtime) but that won't help you. Unless your DSP plugin
doesn't do anything with the data it receives, it can only
accept the formats it understands so, if you do not know
about a media type GUID, then there is no point in
supporting it.

> I am creating a rendering plugin with some help from
> Samples in Media SDK (Vista SDK). I created a very simple
> test plugin which works with rendering.asf sample file
> from SDK. My plugin simply writes out the x and y
> coordinates of the mouse click in drawing surface.
>
> I want to do the same thing with for example all(!) wmv
> files. The problem is, that the plugin loads only with
> the 'rendering.asf' file (because of the GUID associated
> with it).
>
> Is it possible to associate plugin with all wmv files?

A DSP plugin is not associated with specific sets of files
but it is simply used for the media types it
accepts/supports. If you add support for some standard media
type (e.g. MEDIATYPE_Video and some subtype you understand)
it may be used for standard WMV files (but there is no
guarantee). Since a DSP is just a DMO, you should read about
DMOs and media types in the DirectShow section of the
Platform/Windows SDK. You can find a list of standard WMV
media types in the WindowsMediaFormat SDK.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: [Rendering plugin] GUID
Igor 4/27/2007 4:00:00 PM
Thank you for your answer Alessandro.

Maybe rendering plugin is not the best thing to use in my scenario, but it
is the closest one in this moment.

I won't be playing any specific files (using specific streams) only existing
media types. Thatsway may pluging will only have to know how to read and
render those formats.

All my extra work will be done in OnPaint method (drawing some additional
shapes) getting information what to do from memory (or another file).

If this approachs is not good please let me know.

Thanks again.
Re: [Rendering plugin] GUID
Igor 5/1/2007 11:01:01 PM
Ok, now I am debuging the application with 'rendering.asf' sample trying to
figure out cronological order of execution (and to find the lines of code
where plugin deceides if paint should be called).

I set some debug points in DllMain and plugin constructor and run
'rendering.asf'. Debug points were reached at the begining. But when I
debuged with another WMV file debug points have not been reached.

Thats why I don't know how plugin knows when its code should be executed and
when not. (where exactly is the branch deceiding if file format is or is not
supported)

I also manually compared some different wmv GUIDs with rendering.asf GUID
(by manually reading the firs 16 bytes) and they were identical but different
from GUID on MSDN examples. So how can I get (callculate) GUID defined on
MSDN.

Thanks.
Re: [Rendering plugin] GUID
"Jim Travis [ms]" <jtravis[ at ]online.microsoft.com> 5/3/2007 2:13:30 AM
Have you read these sections of the documentation?

http://msdn2.microsoft.com/en-us/library/bb262835.aspx


--
Jim Travis
Microsoft Corp.

Please do not send email directly to this alias as this alias is for
newsgroup purposes only. This posting is provided "AS IS" with no
warranties, and confers no rights. You assume all risk for your use. © 2007
Microsoft Corporation. All rights reserved.



"Igor" <Igor[ at ]discussions.microsoft.com> wrote in message
news:AA507E98-E960-4301-BE6F-A564661D883C[ at ]microsoft.com...
[Quoted Text]
> Ok, now I am debuging the application with 'rendering.asf' sample trying
> to
> figure out cronological order of execution (and to find the lines of code
> where plugin deceides if paint should be called).
>
> I set some debug points in DllMain and plugin constructor and run
> 'rendering.asf'. Debug points were reached at the begining. But when I
> debuged with another WMV file debug points have not been reached.
>
> Thats why I don't know how plugin knows when its code should be executed
> and
> when not. (where exactly is the branch deceiding if file format is or is
> not
> supported)
>
> I also manually compared some different wmv GUIDs with rendering.asf GUID
> (by manually reading the firs 16 bytes) and they were identical but
> different
> from GUID on MSDN examples. So how can I get (callculate) GUID defined on
> MSDN.
>
> Thanks.


Re: [Rendering plugin] GUID
BMM 5/7/2007 4:15:00 PM
Hi Jim,

Can you explain the "deprecated" text on this documentation? For those of
us who have based products on the WMP Rendering plugin, should be be looking
at another way of implementing our rendering plugin for WM in the future?

Should we be using Filters etc.?

I have been worried about pushing our WMP based product since I have seen
deprecated on the rendering plugin docs... But I wouldn't worry if we are
given a path using a different lib....

Thanks for any light you can shed on this.
Brian

"Jim Travis [ms]" wrote:

[Quoted Text]
> Have you read these sections of the documentation?
>
> http://msdn2.microsoft.com/en-us/library/bb262835.aspx
>
>
> --
> Jim Travis
> Microsoft Corp.
>
> Please do not send email directly to this alias as this alias is for
> newsgroup purposes only. This posting is provided "AS IS" with no
> warranties, and confers no rights. You assume all risk for your use. © 2007
> Microsoft Corporation. All rights reserved.
>
>
>
> "Igor" <Igor[ at ]discussions.microsoft.com> wrote in message
> news:AA507E98-E960-4301-BE6F-A564661D883C[ at ]microsoft.com...
> > Ok, now I am debuging the application with 'rendering.asf' sample trying
> > to
> > figure out cronological order of execution (and to find the lines of code
> > where plugin deceides if paint should be called).
> >
> > I set some debug points in DllMain and plugin constructor and run
> > 'rendering.asf'. Debug points were reached at the begining. But when I
> > debuged with another WMV file debug points have not been reached.
> >
> > Thats why I don't know how plugin knows when its code should be executed
> > and
> > when not. (where exactly is the branch deceiding if file format is or is
> > not
> > supported)
> >
> > I also manually compared some different wmv GUIDs with rendering.asf GUID
> > (by manually reading the firs 16 bytes) and they were identical but
> > different
> > from GUID on MSDN examples. So how can I get (callculate) GUID defined on
> > MSDN.
> >
> > Thanks.
>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen