Vondrona Sary Laha-tahiry Tranonkala
Recently Visited Groups | Help | Sign in
Google Groups Home
Metadata from OGG, FLAC and zero duration
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 31 of 31 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AJD  
View profile  
 More options Jul 14 2009, 9:54 am
Newsgroups: microsoft.public.windowsmedia.player
From: AJD <flyer...@gmail.com>
Date: Mon, 13 Jul 2009 23:54:27 -0700 (PDT)
Local: Tues, Jul 14 2009 9:54 am
Subject: Re: Metadata from OGG, FLAC and zero duration
On Jul 9, 2:42 pm, Tim De Baets <TimDeBa...@discussions.microsoft.com>
wrote:

> So the only way to add real third-party metadata support is to trick WMP
> into thinking that it's handling a default format instead (such as mp3). I
> was eventually able to do this, by hooking into WMP and intercepting the call
> that compares the audio/x-other and audio/mp3 mime types. After that, WMP
> would use a metadata editor object (IWMMetadataEditor) to get the metadata of
> the third-party format, just like it does for mp3. Of course, this failed for
> the third-party format, so I had to hook into this too, allowing me to return
> any metadata I want, including tags that are read-only in the library such as
> Duration. This seemed to fix the zero-duration bug and seeking worked
> perfectly. WMP indeed only uses the Duration tag in the library and ignores
> the duration returned by the DirectShow filter, when a file is played from
> the library.

Which call compares the mime types? I haven't been able to find it.
This seems promising as a temporary solution, and it doesn't seem like
there is any other way to do it.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim De Baets  
View profile  
 More options Jul 14 2009, 4:37 pm
Newsgroups: microsoft.public.windowsmedia.player
From: Tim De Baets <tdeba...@nospam.com>
Date: Tue, 14 Jul 2009 15:37:30 +0200
Local: Tues, Jul 14 2009 4:37 pm
Subject: Re: Metadata from OGG, FLAC and zero duration

AJD wrote:
> Which call compares the mime types? I haven't been able to find it.
> This seems promising as a temporary solution, and it doesn't seem like
> there is any other way to do it.

WMP calls _wcsicmp from msvcrt.dll to compare the strings. Are you
interested in writing a third-party metadata plug-in too? It's probably
unnecessary to start from scratch; Cristian Adam is already showing
interest to make such a plug-in. It will likely have pluggable tag
support (just like WMP Tag Support Extender), allowing you to write a
tag support dll for whatever third-party format you like.

Regards

--
Tim De Baets
http://www.bm-productions.tk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AJD  
View profile  
 More options Jul 15 2009, 12:14 am
Newsgroups: microsoft.public.windowsmedia.player
From: AJD <flyer...@gmail.com>
Date: Tue, 14 Jul 2009 14:14:18 -0700 (PDT)
Local: Wed, Jul 15 2009 12:14 am
Subject: Re: Metadata from OGG, FLAC and zero duration
On Jul 14, 9:37 am, Tim De Baets <tdeba...@nospam.com> wrote:

> WMP calls _wcsicmp from msvcrt.dll to compare the strings. Are you
> interested in writing a third-party metadata plug-in too? It's probably
> unnecessary to start from scratch; Cristian Adam is already showing
> interest to make such a plug-in. It will likely have pluggable tag
> support (just like WMP Tag Support Extender), allowing you to write a
> tag support dll for whatever third-party format you like.

Which call is the one calling _wcsicmp?

I am interested in writing a plug-in, but not in taking the same
approach that Christian has. It would make much more sense to link
WMP's metadata/property handlers to the shell handlers so that were
one to write metadata support for the shell then WMP would also have
that support.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim De Baets  
View profile  
 More options Jul 15 2009, 12:58 am
Newsgroups: microsoft.public.windowsmedia.player
From: Tim De Baets <tdeba...@nospam.com>
Date: Tue, 14 Jul 2009 23:58:02 +0200
Local: Wed, Jul 15 2009 12:58 am
Subject: Re: Metadata from OGG, FLAC and zero duration

AJD wrote:

> Which call is the one calling _wcsicmp?

_wcsicmp gets called directly by wmp.dll, from within its internal
MLSDBHelper::FindMediaInStoreByURL procedure (according to the symbols).
If you view wmp.dll's imports, you will see that _wcsicmp is one of them.

> I am interested in writing a plug-in, but not in taking the same
> approach that Christian has. It would make much more sense to link
> WMP's metadata/property handlers to the shell handlers so that were
> one to write metadata support for the shell then WMP would also have
> that support.

That's actually an interesting idea, but property handlers are not
available on XP. Also, the only property handler I have found so far
that could be useful is the one for m4a files. As far as I know, no
property handlers for other audio formats exist.

Regards

--
Tim De Baets
http://www.bm-productions.tk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AJD  
View profile  
 More options Jul 15 2009, 8:10 am
Newsgroups: microsoft.public.windowsmedia.player
From: AJD <flyer...@gmail.com>
Date: Tue, 14 Jul 2009 22:10:59 -0700 (PDT)
Local: Wed, Jul 15 2009 8:10 am
Subject: Re: Metadata from OGG, FLAC and zero duration
On Jul 14, 5:58 pm, Tim De Baets <tdeba...@nospam.com> wrote:

> AJD wrote:

> > Which call is the one calling _wcsicmp?

> _wcsicmp gets called directly by wmp.dll, from within its internal
> MLSDBHelper::FindMediaInStoreByURL procedure (according to the symbols).
> If you view wmp.dll's imports, you will see that _wcsicmp is one of them.

I've been looking through MLSDBHelper::FindMediaInStoreByURL for a
while and have been unable to find the function responsible for
creating the object which implements IWMMetadataEditor. Though the
mime check is there the object seems to be created somewhere else
entirely.

Which functions did you hook? I'm currently using WMP12, so this may
have changed from 11.

> That's actually an interesting idea, but property handlers are not
> available on XP. Also, the only property handler I have found so far
> that could be useful is the one for m4a files. As far as I know, no
> property handlers for other audio formats exist.

Property handlers aren't particularly difficult to write, and I
currently have a FLAC property handler half-implemented (as I
mentioned in a previous post I had used this to check whether WMP
accessed them for duration info--it does not). I just don't see the
point in duplicating code for a 3rd party plug-in when I can get WMP /
and/ shell support from the same extension. I do not plan on targeting
XP, only Vista and up.

Cheers


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim De Baets  
View profile  
 More options Jul 15 2009, 4:06 pm
Newsgroups: microsoft.public.windowsmedia.player
From: Tim De Baets <tdeba...@nospam.com>
Date: Wed, 15 Jul 2009 15:06:05 +0200
Local: Wed, Jul 15 2009 4:06 pm
Subject: Re: Metadata from OGG, FLAC and zero duration

AJD wrote:
> I've been looking through MLSDBHelper::FindMediaInStoreByURL for a
> while and have been unable to find the function responsible for
> creating the object which implements IWMMetadataEditor. Though the
> mime check is there the object seems to be created somewhere else
> entirely.

WMP calls WMCreateEditor to retrieve a reference to a metadata editor
object, I haven't checked where it does that though (that's not
important anyway).

> Which functions did you hook? I'm currently using WMP12, so this may
> have changed from 11.

_wcsicmp and WMCreateEditor. I haven't tested anything on WMP 12 yet.

Regards

--
Tim De Baets
http://www.bm-productions.tk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google