PDA

View Full Version : Interface VRDInterface allways crashed in c#


arogerm
11-28-2006, 07:30 PM
When I create a COM object with

VideoReDo.VideoReDoSilentClass xVideoRedoSilent = new VideoReDo.VideoReDoSilentClass();

VideoReDo.VideoReDo xVideoRedo = (VideoReDo.VideoReDo)xVideoRedoSilent.VRDInterface ;

allways crashed

Can you help me

Thanks

simontam
12-31-2006, 01:57 AM
try this piece of code out:

VideoReDoSilentClass vrds = new VideoReDoSilentClass();
IVideoReDo vrd = (IVideoReDo)vrds.VRDInterface;

seems to work for me. Make sure to have your videoredo.tlb type library registered first. If you can't figure out how to do that let me know.

Harry
12-31-2006, 05:41 AM
guys i'm curious, what kind of tools are you programming?

simontam
12-31-2006, 06:50 AM
I'm working on some frame grabbing and individual frame analysis. I'll probably be doing some creation of histograms to analyze the intensity/luminance from frame to frame.

I think it'll be more involved than ad-detective. I don't want to strip out things per se but I need to determine where certain types of transitions may be to help me mark points in the video.

I chose to use VRD because of the great COM interface it has and the lighting speed it provides.

It would be kind of cool if they had a more flexible/extensible ad-detective like module where people could develop their own video analysis extensions within the same general framework. hint hint hint... :)

Harry
12-31-2006, 09:56 AM
i created an example c# project file which you can grab here:

http://www.mytempdir.com/1142617

instructions are in the file "VideoReDo via COM Interface.txt"

thanks to simontam for sharing his knowledge :)