Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:09:01+00:00 2026-06-15T01:09:01+00:00

Does anyone have this working? I believe I have the CodecPrivateData messed up, but

  • 0

Does anyone have this working? I believe I have the CodecPrivateData messed up, but I can’t find any WAVEFORMTEX FormatTags that seem to work. I tried 0xFF00, 0x1016, and 0x0116. I used the MSDN documentation to complete the rest of the string.

I found this in MMReg.h (WAVE_FORMAT_MPEG_ADTS_AAC 0x1600) which would have a FormatTag(0x0016). You would think this is what I should use, but that does not work either.

When using 0xFF if I avoid the adts headers in the stream GetSampleAsync get called repeatedly but there is no playback. I know the stream is good because I can play it in FooBar, VLC, and Window Media Player. When I stick the raw AAC into an MP4 container it works fine in silverlight so I know that the AAC setting are supported by silverlight.

Can someone supply me with a hex CodecPrivateData string that worked for them?

Edit:

This is an example of PrivateCodecData hex string that I think should work:

0x1016010080BB0000E02E0000010000000E000100FE0000000000000000001190

This string goes straight from OpenMediaAsync() to CloseMedia() without even trying a sample. The MSDN documentation example does the same thing found here. I would expect it to at least try a sample before closing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:09:02+00:00Added an answer on June 15, 2026 at 1:09 am

    Silverlight seems to be not compliant with AAC and ADTS wrapper…

    If you analyze your MP4 file (with MediaInfo for example), you will see AAC for audio but without ADTS wrapper. This is why Silverlight can read in this case your AAC audio embedded in a MP4 file.

    So you need to remove the ADTS header for each audio sample before calling ReportSampleCompleted() in the MediaStreamSource. The ADTS header consists of 7 or 9 bytes (without or with CRC). For more informations about the ADTS header, see this link.

    Obviously, you need to adapt your CodecPrivateData string with the right FormatTag. Here is mine for a AAC LC 48KHz @96Kbps file : FF00020080BB0000E02E0000040010000200

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any idea what this jQuery selector will do? object.find('td:eq(1) div div');
Googling this does little good, as you can imagine. Does anyone have resources that
Does anyone have any experience with this sort of thing? I'm talking about applets
I know this is kind of a dumb question, but does anyone have an
Does anyone have experience with database links between 10g and 11g? Is this a
Someone has an answer to this missing feature in Entity Framework. Does anyone have
Does any one have any idea why this would be happening? This is some
IS this straightforward? Does any one have any good examples? All my google searches
I've look at the questions on here but can't find an answer that specifically
Does anyone have a translate function for x/y positions after rotation in javascript? for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.