WAVEFORMATEX problem [Answered]RSS

8 replies

Last post Jun 17, 2010 12:22 AM by johndeu

  • WAVEFORMATEX problem

    Jun 10, 2010 11:06 AM|kus3000|LINK

    Hello,

    I would like to add a AAC stream to my video.
    So I create a  WAVEFORMATEX struct.

    Like said here http://msdn.microsoft.com/en-us/library/ff402310(v=VS.90).aspx
    wFormatTag            = 0x00FF;

     Ok, right... AddStreamToMux says OK.
    But when I send with http post my manifest to IIS with Wireshark I do not see Subtype="AAC" or something like that.
    Moreover codecprivatedata is empty ! And silverlight crashes.

    For WMA I have Subtype="WMAPRO"and codecprivatedate full and Silverlight does not crash !

    What is the problem ?

     Here is a part of the live manifest  for AAC :

    // SubtypeTAG is missing
    <audio systemBitrate="128000">
    <param name="trackID" value="1" valueType="data" />
    <param name="systemBitrate" value="128000" valueType="data" />
    <param name="AudioTag" value="255" valueType="data" />
    <param name="Channels" value="1" valueType="data" />
    <param name="SamplingRate" value="44100" valueType="data" />
    <param name="BitsPerSample" value="16" valueType="data" />
    <param name="PacketSize" value="1024" valueType="data" />
    <param name="CodecPrivateData" value="" valuetype="data" /> // codecprivatedata  is empty !
    </audio>

     My ssfsdk.lib is dated of 03/03/2010 is there is a new version ?

    It is written :

    • Closed GOP encoded VC-1 with Elementary Stream Sequence Headers and WMA Pro, or WMA audio
    • H.264 (avc1) and AAC-LC audio 
    On the webpage http://blogs.iis.net/johndeu/archive/2010/03/04/iis-smooth-streaming-format-sdk-beta-1-released.aspx


    Is the lib really work with AAC ? Or are there any known issues ?


  • Re: WAVEFORMATEX problem

    Jun 10, 2010 05:13 PM|Nicolas.Drouin|LINK

    Yes AAC audio works. 

    Keep in mind that before you try getting the Live to work well; make sure you can correctly produce the .ism, .ismc, .ismv, .isma in file format.  It is MUCH harder to debug live than the file-format. 

    Moreover, the Silverlight Smooth players, either the Smooth Streaming PDK, or the SMF player, are much more picky about live streams than playing back presentations.  It is much easier to implement and trace-back the exceptions thrown by the player in playback mode.

     See my other post regarding Subtype/CodedPrivateData; I've uploaded full manifests and HTTP traces for you.

     -Nick

     

  • Re: WAVEFORMATEX problem

    Jun 10, 2010 10:05 PM|johndeu|LINK

    Thanks Nicolas.   Also the CodedPrivateData for AAC audio should be Empty.  That is correct.

  • Re: WAVEFORMATEX problem

    Jun 11, 2010 04:02 AM|kus3000|LINK

     It is strange, my audio stream is saved in a file nammed *.ismv and not *.isma !
    where does it come from ?

    nicolas.drouin

    See my other post regarding Subtype/CodedPrivateData; I've uploaded full manifests and HTTP traces for you.
     

    Where do I find your examples ?

     Here is a part of my *ism :
    <body>
    <switch>
    <audio src=Stream1.ismv" systemBitrate="128000">
    <param name="systemBitrate" value="128000" valuetype="data" />
    <param name="trackID" value="1" valueType="data" />
    </audio>

    <video src=Stream0.ismv" systemBitrate="150000">
    <param name="systemBitrate" value="150000" valuetype="data" />
    <param name="trackID" value="2" valueType="data" />
    <param name="Height" value="96" valueType="data" />
    <param name="Width" value="128" valueType="data" />
    </video >

    </switch>
    </body>

    If I push with pushencoder.exe this *.ism it DOES NOT WORK. But if I change the ism like that :

    <body>
    <switch>
    <audio src=Stream1.ismv" systemBitrate="128000">
    <param name="trackID" value="1" valueType="data" />
    </audio>

    <video src=Stream0.ismv" systemBitrate="150000">
    <param name="trackID" value="2" valueType="data" />
    <param name="Height" value="96" valueType="data" />
    <param name="Width" value="128" valueType="data" />
    </video >

    </switch>
    </body>

    I can push ! The lign bitRate seems to be duplicated. There are very strange issues with Live Manifest !

  • Re: WAVEFORMATEX problem

    Jun 11, 2010 06:13 AM|kus3000|LINK

    testlive.ism

    <div class=e>  <?xml version="1.0" encoding="utf-16" ?> </div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <smil xmlns="http://www.w3.org/2001/SMIL20/Language"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <head></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <meta name="clientManifestRelativePath" content="testlive.ismc" /> </div></div> <div>  </head></div></div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <body></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <switch></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <audio src="Stream1.ismv" systemBitrate="128000"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="systemBitrate" value="128000" valuetype="data" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="trackID" value="1" valuetype="data" /> </div></div> <div>  </audio></div></div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <video src="Stream0.ismv" systemBitrate="150000"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="systemBitrate" value="150000" valuetype="data" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="Height" value="96" valuetype="data" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="trackID" value="2" valuetype="data" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <param name="Width" value="128" valuetype="data" /> </div></div> <div>  </video></div></div></div> <div>  </switch></div></div></div> <div>  </body></div></div></div> <div>  </smil></div></div></div>
  • Re: WAVEFORMATEX problem

    Jun 11, 2010 06:13 AM|kus3000|LINK

    testlive.ismc

    <?xml version="1.0" ?>

    <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <SmoothStreamingMedia MajorVersion="2" MinorVersion="0" Duration="99900000" TimeScale="10000000"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <StreamIndex Type="video" SubType="" Chunks="6" TimeScale="10000000" Url="QualityLevels({bitrate},{CustomAttributes})/Fragments(video={start time})"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <QualityLevel Index="0" Bitrate="150000" CodecPrivateData="000000016742800b8d8d2041b6029100000300010000030032e0000249800124c7f18e30000124c0009263f8c70ed0a152400000000168ca432480" FourCC="AVC1" MaxWidth="128" MaxHeight="96"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <CustomAttributes></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Attribute Name="Height" Value="96" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Attribute Name="Width" Value="128" /> </div></div> <div>  </CustomAttributes></div></div></div> <div>  </QualityLevel></div></div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748831507039" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748851487039" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748871467039" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748891447039" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748911427039" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748931407039" d="19980400" /> </div></div> <div>  </StreamIndex></div></div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <StreamIndex Type="audio" SubType="" Chunks="5" TimeScale="10000000" Url="QualityLevels({bitrate})/Fragments(audio={start time})"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <QualityLevel Index="0" Bitrate="128000" CodecPrivateData="" FourCC="" AudioTag="255" Channels="1" SamplingRate="44100" BitsPerSample="16" PacketSize="1024" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748827896098" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748848312661" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748868725783" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748889138905" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <c t="12749748909552027" d="20581021" /> </div></div> <div>  </StreamIndex></div></div></div> <div>  </SmoothStreamingMedia></div></div></div>
  • Re: WAVEFORMATEX problem

    Jun 11, 2010 03:19 PM|johndeu|LINK

    I'll take a look at this again. I think that this was a bug that was recently fixed.  Are you using the public Beta 1 Smooth Streaming Format SDK? or a TAP build?


    This is what I currently see.  <?xml version=\"1.0\" encoding=\"utf-8\"?><smil xmlns=\"http://www.w3.org/2001/SMIL20/Language\"><head></head><body>                <switch>                                <video systemBitrate=\"1500000\">                                                <param name=\"trackID\" value=\"3\" valuetype=\"data\" />                                                <param name=\"FourCC\" value=\"WVC1\" valueType=\"data\" />                                                <param name=\"MaxWidth\" value=\"848\" valueType=\"data\" />                                                <param name=\"MaxHeight\" value=\"476\" valueType=\"data\" />                                                <param name=\"CodecPrivateData\" value=\"250000010fcb6e1a70ed8a1a783b68049081b0d3db8d400000010e5a67f840\" valuetype=\"data\" />                                </video>                </switch></body></smil>

     

  • Re: WAVEFORMATEX problem

    Jun 14, 2010 05:47 AM|kus3000|LINK

    johndeu

    Are you using the public Beta 1 Smooth Streaming Format SDK? or a TAP build?

     Beta1 SDK

     

    Now, I use IIS_Smooth_Streaming_Player_Development_Kit_1.0_Beta_2.exe for testing and I have a new error :
    "reach the end of known chunk list with 2 consecutive chunk errors..."


  • Re: WAVEFORMATEX problem

    Jun 17, 2010 12:22 AM|johndeu|LINK

    Per the other thread on this, this is likely due to the fact that you have not sent the EOS signal to stop the publishing point and transition it into on-demand mode.