Re: Adding audio data to a video file

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Fri, 2 May 2008 00:09:18 -0700 (PDT), bharath_r
<bharath.0523@xxxxxxxxx> wrote:

I have a wmv file which contains only video and i have a wav file of
the same duration as the wmv file. I would like to know how i can add
the audio data to the wmv file.

There's a StreamEdit interface exposed by the WM Encoder SDK

I would like to know whether it is necessary to convert the wav file
to wma? I was reading the same thing on another fourm where one of the
users had the same question as mine. In a reply someone told that the
wav has to be converted to wma before doing the stream edit operation.

Yes - the stream editor interface only operates on ASF content (i.e.
WMA or WMV), I'm not sure if it requires the content to be indexed
(probably not - which stream's index would it pick ?).

WAV just wouldn't work as an input format there, and as you can see
it's not listed as a source type in the stream editor application
(only ASF, WMA and WMV are listed)

Specifically in the SDK, WMEncStreamEdit interface doesn't offer any
encoding options - if you follow the examples in the SDK, you can
setup your sources, then call Stream.Validate and catch an exception
if the stream type is unsupported (it should be, for WAV).

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
.



Relevant Pages

  • Re: Auto Play PPS on my website
    ... Your wav and wmv file can automatically start, ... PPT file to wav or wmv format? ...
    (microsoft.public.powerpoint)
  • convert wmv into wav?
    ... is there a way to convert wmv file made by windows movie ... maker into a wav or mp3 file by that programme? ...
    (microsoft.public.windowsxp.general)