locked
WM Asf writer can't write script command stream RRS feed

  • Question

  • Hello,

    I am using Window Media Format SDK 9.
    I am using WM ASF writer filter to write and/or stream wmv video+audio - and this works well for a long time already.
    For the configuration of the filter I build a prx file.
    Now I am trying to add a script stream to the wmv file/stream.
    I added the script "streamconfig" entry to the profile.
    When I used this (new) profile in WM Encoder, it worked well and produced wmv file with video, audio and script.
    However, when I tried to set the new profile to the WM ASF Writer, it managed to write only a few frames of video and audio, and was not able to write any more frames. No script data was written. The graph continued to run until we just pressed stop.

    (To generate script samples, we created a "PushSource" filter with format type WMFORMAT_Script and connected it to the Script input pin of the WM ASF Writer)

     

    Is there anything that I should add to the profile (see profile bellow), or any special settings that should be done on the WM ASF Writer, so it could write the wmv properly.

     

    Please note that without the script stream the graph is playing properly.

     

    Thanks in advanced

    Igor



    Here is the used prx:

     

    <profile version="589824"

                 storageformat="1"

                 name="TESTScript"

                 description=" TEST Script ">

                       <streamconfig majortype="{73647561-0000-0010-8000-00AA00389B71}"

                       streamnumber="1"

                       streamname="Audio Stream"

                       inputname="Audio409"

                       bitrate="48024"

                       bufferwindow="5000"

                       reliabletransport="0"

                       decodercomplexity=""

                       rfc1766langid="en-us"

     >

                 <wmmediatype subtype="{00000161-0000-0010-8000-00AA00389B71}" 

                       bfixedsizesamples="1"

                       btemporalcompression="0"

                       lsamplesize="1115">

               <waveformatex wFormatTag="353"

                             nChannels="1"

                             nSamplesPerSec="44100"

                             nAvgBytesPerSec="6003"

                             nBlockAlign="1115"

                             wBitsPerSample="16"

                             codecdata="008800000F00D9220000"/>

                </wmmediatype>

                </streamconfig>

                       <streamconfig majortype="{73646976-0000-0010-8000-00AA00389B71}"

                       streamnumber="2"

                       streamname="Video Stream"

                       inputname="Video409"

                       bitrate="198976"

                       bufferwindow="5000"

                       reliabletransport="0"

                       decodercomplexity="AU"

                       rfc1766langid="en-us"

     >

                         <videomediaprops maxkeyframespacing="60000000"

                                         quality="80"/>

                 <wmmediatype subtype="{33564D57-0000-0010-8000-00AA00389B71}" 

                       bfixedsizesamples="0"

                       btemporalcompression="1"

                       lsamplesize="0">

           <videoinfoheader dwbitrate="198976"

                            dwbiterrorrate="0"

                            avgtimeperframe="400000">

            <rcsource left="0"

                      top="0"

                      right="384"

                      bottom="288"/>

            <rctarget left="0"

                      top="0"

                      right="384"

                      bottom="288"/>

                <bitmapinfoheader biwidth="384"

                                  biheight="288"

                                  biplanes="1"

                                  bibitcount="24"

                                  bicompression="WMV3"

                                  bisizeimage="0"

                                  bixpelspermeter="0"

                                  biypelspermeter="0"

                                  biclrused="0"

                                  biclrimportant="0"/>

           </videoinfoheader>

                </wmmediatype>

                </streamconfig>

                       <streamconfig majortype="{73636D64-0000-0010-8000-00AA00389B71}"

                       streamnumber="3"

                       streamname="Script Stream"

                       inputname="Script409"

                       bitrate="4000"

                       bufferwindow="-1"

                       reliabletransport="0"

                       decodercomplexity=""

                       rfc1766langid="en-us"

     >

                 <wmmediatype subtype="{00000000-0000-0000-0000-000000000000}" 

                       bfixedsizesamples="0"

                       btemporalcompression="0"

                       lsamplesize="0">

           <WMSCRIPTFORMAT scripttype="{82F38A70-C29F-11D1-97AD-00A0C95EA850}"/>

                </wmmediatype>

                </streamconfig>

        </profile>

     

    Sunday, August 19, 2007 12:48 PM

Answers