Windows Media Format SDK - Too much of Delay
Locked
-
Thursday, January 29, 2009 1:46 PM
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>
�
Thanks in advance.
Regards,
Samir
All Replies
-
Thursday, February 05, 2009 8:03 AMplease reply..
-
Friday, February 13, 2009 7:45 AMIt is not surprising to have 5-10 seconds of latency if you are using Windows media SDK. Microsoft is lagging way behind other technologies like VLC, Darwin etc.
Windows media 2003 server at any case cannot be used for live video broadcasting. I have tested different configuration, profiles etc and found Windows media is good only for recorded video broadcasting.
Dont expect any support from microsot guys as they dont have any answer for this. (I have tried enough to get an answer with no luck) -
Thursday, March 05, 2009 6:39 PMAre you writing to a NetworkSink and connecting from WMP? If so, there is buffering in both the NetworkSink and the Player which is "delay".
if you need low latency, use DirectShow/DirectX and the Windows Media Compressors -
Wednesday, March 18, 2009 2:40 PMHello TAV95
Thanks for replying.
Yes. I am writing to network sink. I have also written network reader. I have set buffer window to 200 ms in writer object. But after setting buffer the latency is around 4 seconds.
What exactly is windows media compressors?
I am new to directx. Using directshow/directx, can we achieve the writer and reader functionality? How directx/directshow different from Windows Media Format SDK? -
Thursday, October 29, 2009 3:24 AM
-
Thursday, October 29, 2009 3:32 AMModerator
This forum is for Media Foundation Development.
See this post at the top of the forum for resources for other
multimedia forums and newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/mediafoundationdevelopment/thread/c78d9b6e-2da2-42d9-8cde-606a498522fb
For Windows Vista questions, please post in the appropriate forum here:
http://social.answers.microsoft.com/Forums/en-US/category/windowsvista/
For Windows XP questions, use one of these forums or newsgroups:
http://www.microsoft.com/windowsxp/expertzone/newsgroups.mspx
For Windows 7 Media questions: (more W7 forums if you go up a level)
http://social.technet.microsoft.com/Forums/en-US/w7itpromedia/threads
Windows Media SDK questions belong here (see the left pane of the page
below for other WM categories including Player, Encoder and
MovieMaker):
http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx?dg=microsoft.public.windowsmedia.sdk&lang=en&cr=US
General Windows multimedia questions (wave, Video for Windows, mmio,http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.win32.programmer.mmedia
The Windows Driver Kit (previously known as the DDK) has a
forum/newsgroup on MSDN here:
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.development.device.drivers&lang=en&cr=US
For Silverlight questions, including developer ones:
http://silverlight.net/forums/
The official Microsoft forums for Windows Media Center, including for
developers, are:
http://thegreenbutton.com/forums/
For DirectX SDK questions use these Microsoft forums:
http://forums.xna.com/forums/default.aspx?GroupID=7
For Microsoft Expression products there are forums here:
http://expression.microsoft.com/en-us/cc182192.aspx
Unfortunately, my Moderator 'move thread' permissions do not extend to
those forums. Please read the posts at the top of the forums before
posting.
This thread is locked. Please re-post in the appropriate forum or newsgroup.
Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
My dshow site is http://tmhare.mvps.org.- Marked As Answer by The March HareModerator Thursday, October 29, 2009 3:32 AM


