locked
Windows Media Format SDK - Too much of Delay

    Question

  •  

    Hello,

     

    I am using WMF SDK to create a video stream out of many BMPs(Live source). I am getting around 3-4 seconds of delay.

    I am passing uncompressed packets using IWMWriter::WriteSample(...) method.

    Is there any way to reduce the delay?

     

    Following is my writer profile. After configuring following profile, I am setting the buffer window (using

    SetBufferWindow) to 200 ms. Still the delay is around 3-4 seconds.

     

     

    <profile version="589824"

    storageformat="1"

    name="test"

    description="Streams: 1 video">

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

    streamnumber="1"

    streamname="Video Stream"

    inputname="Video409"

    bitrate="239000"

    bufferwindow="1000"

    reliabletransport="0"

    decodercomplexity="SP"

    rfc1766langid="en-us"

    >

    <videomediaprops maxkeyframespacing="20000000"

    quality="60"/>

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

    bfixedsizesamples="0"

    btemporalcompression="1"

    lsamplesize="0">

    <videoinfoheader dwbitrate="239000"

    dwbiterrorrate="0"

    avgtimeperframe="333667">

    <rcsource left="0"

    top="0"

    right="320"

    bottom="240"/>

    <rctarget left="0"

    top="0"

    right="320"

    bottom="240"/>

    <bitmapinfoheader biwidth="320"

    biheight="240"

    biplanes="1"

    bibitcount="24"

    bicompression="WMV3"

    bisizeimage="0"

    bixpelspermeter="0"

    biypelspermeter="0"

    biclrused="0"

    biclrimportant="0"/>

    </videoinfoheader>

    </wmmediatype>

    </streamconfig>

    </profile>

    &#0;

     

    Thanks in advance.

     

    Regards,

    Samir

    Thursday, January 29, 2009 1:46 PM

Answers

All replies