Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
wmplayer.exe codec resolution BUG [???]
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
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Nadav  
View profile  
 More options Dec 18 2005, 6:16 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Nadav" <Na...@discussions.microsoft.com>
Date: Sun, 18 Dec 2005 03:16:01 -0800
Local: Sun, Dec 18 2005 6:16 am
Subject: wmplayer.exe codec resolution BUG [???]
Hi,

I have created a custom ASF file using WMFSDK95 and the WMWriter object, of
some strange reason the file can be successfully played with mplayer2 while
it cannot be played using wmplayer.exe with error “The audio codec identified
by the format tag 0x55 is required to play this file …”, why does this
happen? Why wmplayer.exe can’t play the file while mplayer2.exe does?
‘l3codeca.acm’ exists on my system directory and is referred to by the
registry “HKEY_CLASSES_ROOT\Windows Media\WMSDK\AudioDecode\85”

What is causing this problem ?
Is it a WMPlayer BUG?

Any help would be appreciated.

--
Nadav
    http://www.sophin.com


    Reply to author    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.
Alessandro Angeli [MVP::DigitalMedia]  
View profile  
(1 user)  More options Dec 18 2005, 9:30 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Sun, 18 Dec 2005 15:30:19 +0100
Local: Sun, Dec 18 2005 9:30 am
Subject: Re: wmplayer.exe codec resolution BUG [???]

Nadav wrote:
> I have created a custom ASF file using WMFSDK95 and the
> WMWriter object, of some strange reason the file can be
> successfully played with mplayer2 while it cannot be
> played using wmplayer.exe with error "The audio codec
> identified by the format tag 0x55 is required to play
> this file .", why does this happen? Why wmplayer.exe
> can't play the file while mplayer2.exe does?
> 'l3codeca.acm' exists on my system directory and is
> referred to by the registry "HKEY_CLASSES_ROOT\Windows
> Media\WMSDK\AudioDecode\85"

> What is causing this problem ?
> Is it a WMPlayer BUG?

While WMP6.4 uses the old WMSourceFilter, WMP7+ uses a
private WM reader.

The old WMSourceFilter outputs compressed streams as they
are, including their media types, leaving the task of
decoding them to DirectShow.

WMP7+'s private reader outputs uncompressed streams, setting
the task of decoding them to the WMF runtime, which is far
more limited in its capabilities than DirectShow. For it to
work, the media types must be set up correctly and there
must be WMM or DMO decoders, and it still may not work. If I
remember correctly, you are using a WDM-related major type
instead of MEDIATYPE_Audio as I suggested (which may or may
not solve the problem, but that's the correct value anyway).

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


    Reply to author    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.
Nadav  
View profile  
 More options Dec 18 2005, 11:10 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Nadav" <Na...@discussions.microsoft.com>
Date: Sun, 18 Dec 2005 08:10:03 -0800
Local: Sun, Dec 18 2005 11:10 am
Subject: Re: wmplayer.exe codec resolution BUG [???]
Hi Alessandro,

Thanks for your response, I am using MEDIATYPE_Audio as major type, I wonder
Is there any other way to resolve this problem? the codec used by graphedit
to decode the audio stream is the "Fraunhofer IISMPEG Layer-3 Decoder"
(l3codeca.acm) this is not a DMO nor it is a Windows Media Codec...

I am really desperate about this, any ideas will be apprecited.

P.S.
I would rather not to use the AVI container...

bellow is the media type I use:
majortype               MEDIATYPE_Audio ( the previos post showed the name of COM whose
CLSID matched MEDIATYPE_Audio as predented by the debug watch )
subtype         {00000055-0000-0011-8000-00AA00389B01}
bFixedSizeSamples       1
bTemporalCompression 0
lSampleSize     182
formattype              {05589F81-C356-11CE-BF01-00AA0055595A}
pUnk            0x00000000
cbFormat                30
pbFormat                0x06b53098

MPEGLAYER3WAVEFORMAT* pbFormat
wfx
  wFormatTag    85 == 0x55
  nChannels     2
  nSamplesPerSec        22050
  nAvgBytesPerSec       7000
  nBlockAlign   1
  wBitsPerSample        16
  cbSize                12
wID             2
fdwFlags                 2
nBlockSize               182
nFramesPerBlock 1
nCodecDelay       0

--
Nadav
    http://www.sophin.com


    Reply to author    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.
Alessandro Angeli [MVP::DigitalMedia]  
View profile  
 More options Dec 18 2005, 12:07 pm
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Sun, 18 Dec 2005 18:07:33 +0100
Local: Sun, Dec 18 2005 12:07 pm
Subject: Re: wmplayer.exe codec resolution BUG [???]

Nadav wrote:
> Thanks for your response, I am using MEDIATYPE_Audio as
> major type, I wonder Is there any other way to resolve
> this problem? the codec used by graphedit to decode the
> audio stream is the "Fraunhofer IISMPEG Layer-3 Decoder"
> (l3codeca.acm) this is not a DMO nor it is a Windows
> Media Codec...

DirectShow, and thus GraphEdit, should use the FhG MP3
decoder filter (l3codecx.ax) and not the FhG ACM codec
(l3codeca.acm), while WMF (and thus WMP7+) should use the
ACM codec. Those 2 decoder versions (DirectShow filter and
ACM codec) do not behave exactly in the same way.

> I am really desperate about this, any ideas will be
> apprecited.

Can you provide a short sample ASF with an MP3 stream
created by your application? I do not have time to write my
own muxer right now just to try.

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


    Reply to author    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.
Nadav  
View profile  
 More options Dec 18 2005, 1:46 pm
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Nadav" <Na...@discussions.microsoft.com>
Date: Sun, 18 Dec 2005 10:46:02 -0800
Local: Sun, Dec 18 2005 1:46 pm
Subject: Re: wmplayer.exe codec resolution BUG [???]
Hi Angeli,

Thanks for your immediate response, I would be happy to send you a sample
ASF file and my code, what mail should I use?

Many Thanks
   Nadav
( I have rated your answer, this is the least I can do )


    Reply to author    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.
Alessandro Angeli [MVP::DigitalMedia]  
View profile  
 More options Dec 18 2005, 2:18 pm
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Sun, 18 Dec 2005 20:18:16 +0100
Local: Sun, Dec 18 2005 2:18 pm
Subject: Re: wmplayer.exe codec resolution BUG [???]

Nadav wrote:
> Thanks for your immediate response, I would be happy to
> send you a sample ASF file and my code, what mail should
> I use?

Last line of the signature at the bottom of this post. It's
written that way on purpose, so it's not easily
machine-readable: please do not write it in clear in a
Usenet message. Try to send something under 1 MiB if
possible.

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


    Reply to author    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.
Alessandro Angeli [MVP::DigitalMedia]  
View profile  
 More options Dec 18 2005, 4:56 pm
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Sun, 18 Dec 2005 22:56:18 +0100
Local: Sun, Dec 18 2005 4:56 pm
Subject: Re: wmplayer.exe codec resolution BUG [???]

Nadav wrote:
>  wBitsPerSample 16

If I patch your file putting 0 here, it works. The FhG
decoder expects 0.

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


    Reply to author    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.
Nadav  
View profile  
 More options Dec 19 2005, 1:40 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Nadav" <Na...@discussions.microsoft.com>
Date: Sun, 18 Dec 2005 22:40:02 -0800
Local: Mon, Dec 19 2005 1:40 am
Subject: Re: wmplayer.exe codec resolution BUG [???]
Hi Alessandr,

Thanks for your help, now  wmplayer.exe is able to play my files, I wonder,
why does mplayer2.exe and graphedt.exe doesn't have this requierment? do they
use a different codec? where does this wBitsPerSample = 0 is written? is it
available to everyone or only to MVPs that have access to the source code?
--
Nadav
    http://www.sophin.com


    Reply to author    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.
Alessandro Angeli [MVP::DigitalMedia]  
View profile  
 More options Dec 19 2005, 3:28 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Mon, 19 Dec 2005 09:28:09 +0100
Local: Mon, Dec 19 2005 3:28 am
Subject: Re: wmplayer.exe codec resolution BUG [???]

Nadav wrote:
> Thanks for your help, now  wmplayer.exe is able to play
> my files, I wonder, why does mplayer2.exe and
> graphedt.exe doesn't have this requierment?
> do they use a different codec?

As I said, GE and WMP6.4 use the DirectShow decoder while
WMP7+ uses the ACM one: most likely the DirectShow decoder
ignores the wBitsPerSample field while the ACM one tries to
match it and it expects 0 (which means it is ignored
anyway).

> where does this wBitsPerSample = 0 is
> written?

You mean where is it written what value to use for a given
format? Nowhere.

> is it available to everyone or only to MVPs that
> have access to the source code?

I don't have access to the source code of either WMP or the
MP3 decoder so, yes it is available to everyone. I found out
this way: I used VirtualDub to create a WAV containing an
MP3 stream compressed by the system's ACM codec, then I
opened both this WAV and your ASF in an hex editor, found
the MPEGLAYER3WAVEFORMAT in both and compared them. There
were a couple of different fields, so I started modifying
your ASF in the hex editor to match the structure in the WAV
and this way I discovered that what the ACM decoder didn't
like was the wBitsPerSample value set to anything but 0
(which is the correct value for MP3, when you think of it:
MP3 itself does not have a fixed bits/sample ratio).

--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


    Reply to author    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.
Nadav  
View profile  
 More options Dec 19 2005, 10:55 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Nadav" <Na...@discussions.microsoft.com>
Date: Mon, 19 Dec 2005 07:55:03 -0800
Local: Mon, Dec 19 2005 10:55 am
Subject: Re: wmplayer.exe codec resolution BUG [???]
ThanX
--
Nadav
    http://www.sophin.com


    Reply to author    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.
Doug  
View profile  
 More options Dec 19 2005, 11:57 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Doug" <Dug...@blueyonder.co.uk>
Date: 19 Dec 2005 08:57:22 -0800
Local: Mon, Dec 19 2005 11:57 am
Subject: Re: wmplayer.exe codec resolution BUG [???]
As usual, some bloody useful info there from the MVPs, and not just
applicable to this particular situation.  I've just done exactly the
same thing to solve one of my problems.  Cheers Alessandro!

    Reply to author    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
« Back to Discussions « Newer topic     Older topic »

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