Result video only 1 second

Jul 8, 2011 at 7:03 PM
Edited Jul 8, 2011 at 7:04 PM

Hi there,


This is probably something I am doing wrong, but my result video with watermark is only 1 second long when my input video is 14.5 seconds. I've followed a couple different examples from unit tests and examples from codeplex to no success. The Duration property is definitely ~14.5 in the debugger.

ie:

---earlier code goes here---

IClip watermarkClip = watermarkTrack.AddImage(System.IO.Directory.GetCurrentDirectory() + @"\Images\image.jpg", 0, videoTrack.Duration)

using (WindowsMEdiaRenderer renderer = new WindowsMediaRenderer(timeline, outputFile, WIndowsMediaProfile.HighQUalityVideo))

{

renderer.Render();

Any input would be helpful. Thanks in advance

A

Jul 11, 2011 at 5:27 PM

I figured this out, the codec was not correct. Does anyone know of a way to capture video with Windows Media Video 9? The Direct SHow library, and a custom capture library I am using encode with Windows Media Video 8. Unfortunately, this is the problem why the watermarking does not work properly. For some reason, stand-alone webcam software on my computer records at 9, but my requirement is to capture video WITHIN the application.

Any info on this problem would be great. Thanks in advance

A