Re: Question about Audio tracks



When Becky says synchronize between streams, she means give the writer
samples in presentation time order, regardless of the stream number. So,
send audio sample timestamped 15000 ms _before_ video sample timestamped
15002 ms.

To answer what I think your question is, the timestamps on the samples you
give to the writer determine the order and synchronization when playing back
the file. So you need to be sure audio and video have the same starting
timestamp, if you expect them to play at the same time.

Geoff

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"smtppop" <smtppop@xxxxxxxx> wrote in message
news:uYqEOVdVFHA.616@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks.
> More a quesiton about synchronization . If I need write the sample depend
> on the time stamp on it ?
>
> If the audio time stamp is natively different from the video time stamp,
how
> can i process it ?
>
> Thanks again.
>
>
> "Becky Weiss [MS]" <BeckyWeissMS@xxxxxxxxxxxxxxxxxxxxxxxxx> дÈëÏûÏ¢
> news:56881A9D-DB8F-47B1-8551-25CC628CDCA7@xxxxxxxxxxxxxxxx
> > There isn't sample code that does exactly this. But here's the general
> idea
> > of how I might add an audio track to an existing file original.asf:
> > 1) Encode your audio track into foo.wma
> > 2) Create two instances of the IWMSyncReader: one to read from
> original.asf,
> > and one to read from foo.wma.
> > 3) Create an IWMWriter to write output.asf and set the profile, using
the
> > mediatypes from original.asf and from foo.wma (make sure you get the
> > mediatypes exactly)
> > 4) Read samples from the two input files and pass them into
> > IWMWriterAdvanced::WriteStreamSample. Make sure you're synchronizing
> between
> > the various streams.
> >
> > Becky
> >
> > This posting is provided AS IS with no warranties and confers no rights.
> >
> > "smtppop" wrote:
> >
> > > I want to insert two or more audio tracks into asf file. But I can not
> find
> > > any sample code in WM format SDK 9.0 . I have no idea about this. Can
> you
> > > help me ? Where can i find the sample code or the instruction to do
this
> ?
> > >
> > >
> > >
>
>


.



Relevant Pages

  • Re: Is DAB worth saving?
    ... were at the BBC, Simon Nelson, was in control of them, which was why ... Steve -www.digitalradiotech.co.uk-Digital Radio News & Info ... It is a fact that the audio is received off-air via digital satellite prior ... Internet radio streams, and 2 very recent ad campaigns saying that 1Xtra and ...
    (alt.radio.digital)
  • Re: Is DAB worth saving?
    ... were at the BBC, Simon Nelson, was in control of them, which was why ... It is a fact that the audio is received off-air via digital satellite prior ... Internet radio streams, and 2 very recent ad campaigns saying that 1Xtra and ...
    (alt.radio.digital)
  • Re: Does iMovie 6 support USB camcorders?
    ... Any MPEG-2 file that you can "watch" with audio tends to be ... the separate streams are referred to ... MPEG-2 video streams typically have the ...
    (comp.sys.mac.apps)
  • unified audio model
    ... to the fact that audio hardware can be configured for one ... format at a time and that format is the output format of ... the software mixer. ... This is also depends on the number of streams that UAM ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DVD Shrink alternatives?
    ... >> And streams can be removed or included, ... >> Barco monitor will not display properly if fed video with macrovison, ... >> so I have a Macrovision remover on its input. ... remove all the other language audio ...
    (alt.video.dvd)