Re: adding stream to ASF file



On Thu, 15 Mar 2007 01:13:13 -0700, Roman Prysiazhniuk wrote:

Hi!

can anybody explaine how can I add some stream to ASF file?
I want to add one stream with some info to my wmv(asf) files.

I saw similar example in WMPlayer SDK called rendering.asf but I don't know
how to create my own file with additional stream.

Er. Firstly, you need a profile which supports the extra stream. Create a
Asf Writer and set the profile.
Then open up the source file with ASF Reader and connect up the outputs to
the appropriate pins of the writer.
Then add the new input file / stream to the graph and hook it up to the ASF
Writer.

If you want to do this without transcoding, you will need to use the WM
Format SDK which gives you much more control. It *may* be possible to do
it in DS, but if it is it will be very painful working out how.


Iain
.



Relevant Pages

  • Media Format NS_E_INVALID_STREAM of Flaming Death
    ... My code is creating a Network Writer to I can encapsulate ... // Create a new stream profile for the Writer ... // Get a handle to the VideoMediaProps interface ...
    (microsoft.public.windowsmedia.sdk)
  • Re: FiltersAsync sample with WMA?
    ... > memory byte stream instead of from a file. ... the stock file source filter does using the registry (but it ... nothing about the stream format. ... (WMA is an audio-only ASF). ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Can not start playing video wherever I want in an ASF file being b
    ... > WMFormat v9.5 SDK), it is impossible to start playing ... > of the ASF format? ... I have only one stream, ...
    (microsoft.public.windowsmedia.sdk)
  • CAsfMuxFilter audio/video sync problem
    ... Back here again after a few more days of investigating ASF streaming ... same when the stream is rendered to a file. ... when I add both audio and video input to the Asf ... So it seems like there is a problem in the ASF mux filter, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: SCR in ASFs structure (two audio streams in WMP solution?)
    ... so that's the reason for using ASF. ... I have two ASF files working with the seeking: 2 Audio Stream Audio ...
    (microsoft.public.windowsmedia.sdk)

Loading