The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Overlay an image to a video file using Microsoft Expression Encoder 4
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

rachana tewariPosted Apr 3, 2012, 7:07 AM
I have an wmv file without an audio track, and I want to add an audio overlay to the encoding job. Whatever I do, I can't get the audio track to get added. In the Desktop app, I can do this by enabling the audio track and then setting the audio overlay file. From the SDK, I just can't get this to work. Does anyone have an example of getting this to work? Here is the basics of my code: MediaItem mediaItem= new MediaItem(wmvFilePath); mediaItem.AudioOverlayFileName = "C:\\clap.wav"; mediaItem.AudioOverlayFileName = L_Path; mediaItem.AudioGainLevel = 10; mediaItem.AudioOverlayGainLevel = 10; mediaItem.AudioOverlayLayoutMode = OverlayLayoutMode.Custom; mediaItem.AudioOverlayLoop = false; using (Job job = new Job()) { job.MediaItems.Add(mediaItem); job.OutputDirectory = outputFolder; job.CreateSubfolder = false; job.DefaultMediaOutputFileName = outputFileName; job.Encode(); }
rachana tewariPosted Apr 3, 2012, 6:44 AM
Using SDK function its not working properly