Adding WEB stream into ASF file



Hello guys.

I have a problem when I trying to create a wmv file with
one web stream. I genereted profile by GenProfile.exe
utility from Windows Media Format SDK 9.5
Here is example of the profile:

<profile version="589824"
storageformat="1"
name="WEB"
description="Streams: 1 web">
<streamconfig
majortype="{D9E47579-930E-4427-ADFC-AD80F290E470}"
streamnumber="1"
streamname="Web1"
inputname=""
bitrate="50000"
bufferwindow="3000"
reliabletransport="1"
decodercomplexity=""
rfc1766langid="ru"

<wmmediatype
subtype="{776257D4-C627-41CB-8F81-7AC7FF1C40CC}"
bfixedsizesamples="0"
btemporalcompression="1"
lsamplesize="0">
<webstreamformat cbSize="8"
cbSampleHeaderFixedData="10"
wVersion="1" />
</wmmediatype>
</streamconfig>
</profile>

For initialization profile in my project I choose LoadProfileByData
function, and it work fine, but when I call:

WMCreateWriter(NULL,&m_pWriter);
hr = m_pWriter->SetProfile(m_pProfile);

SetProfile return 0xc00d0bc6(The profile is invalid).
It's strange, because another profiles genereted by GenProfile.exe
utility work fine with Writer object.

Could anybody help me with this problem,
or show me the correct way to add the web stream into ASF file?

Thanks.

.



Relevant Pages

  • Re: Adding WEB stream into ASF file
    ... or show me the correct way to add the web stream into ASF file? ... What happens if you provide the input name in the profile? ... I even tried to create Profile Object by Media Format SDK and ...
    (microsoft.public.windowsmedia.sdk)
  • Windows Media Format SDK - Creating a Web Stream
    ... I am trying to create a Web Stream in an AFS file using Windows Media Format ... writer and try to set the Profile in the Writer, ...
    (microsoft.public.windowsmedia.sdk)
  • Sample code for inserting a web stream/web page in a WMV
    ... I'm trying to insert a web stream into a WMV file using web streams. ... does initialize the profile, and that call succeeds. ... Any pointers and/or actual code will really help. ...
    (microsoft.public.windowsmedia)
  • Re: Photo Story 3 : Encoder profile settings for PAL-DVD as end-r
    ... I think that the Sonic encoder (at least with its provided profile) ... I render my slideshow as a 1280x960 pixel size .wmv file which is ... If you want above all *sharpness of the pictures* and you don't mind some occasional PCTV effects then export it as a new profile with a filename you choose yourself. ... the problem is clearly not the number of pixels (my DVD ...
    (microsoft.public.windowsxp.photos)
  • AddDataUnitExtension
    ... I have tested the profile that I'm using in Windows Media Encoder and have ... For both the custom capture resulting wmv file and the Windows Media Encoder ... In the header Extension Object... ... Extended Stream Properties Object is the video stream which has ...
    (microsoft.public.windowsmedia.sdk)

Loading