I'm a trying to create a simple application in C#.NET that can generate a video file from a stream of Images and an audio file. I chooses the Splicer and its working perfectly fine with my part of code. However when I try to put an mp3 audio format it shows an ERROR:An invalid media type was specified. I scanned the Splicer forum but didn't get anything useful. Any kind of help is appreciated. Here is a simple code:
using (ITimeline timeline = new DefaultTimeline())
{
IGroup audioGroup = timeline.AddAudioGroup();
ITrack rootTrack = audioGroup.AddTrack();
rootTrack.AddAudio("testinput.mp3");
using (
WindowsMediaRenderer renderer =
new WindowsMediaRenderer(timeline, "output.avi", WindowsMediaProfiles.LowQualityAudio))
{
renderer.Render();
}
}