Re: Adding audio data to a video file
- From: "Neil Smith [MVP Digital Media]" <neil@xxxxxxxxxx>
- Date: Fri, 02 May 2008 18:03:56 GMT
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
.
- References:
- Re: Adding audio data to a video file
- From: Neil Smith [MVP Digital Media]
- Re: Adding audio data to a video file
- From: bharath_r
- Re: Adding audio data to a video file
- Prev by Date: Re: sending a movie via email
- Next by Date: Re: sending a movie via email
- Previous by thread: Re: Adding audio data to a video file
- Next by thread: WMP no video problem - a solution
- Index(es):
Relevant Pages
|