Page 1 of 1

Read other files than AVI

PostPosted: Thu Mar 05, 2009 11:48 am
by thomas_r_a
Hi

I have made a small app to detect motion in a clip from my web cam. It works fine but I have to convert the file from the web cam til AVI. My web cam can generate ASF and MP4 files and I have the necessary codecs installed on my computer. Is there some way to read other than AVI.

Regards
Thomas

Re: Read other files than AVI

PostPosted: Thu Mar 05, 2009 12:33 pm
by andrew.kirillov
Hello,

Try FileVideoSource class instead of AVIFileVideoSource (or AVIReader).

Re: Read other files than AVI

PostPosted: Mon Mar 16, 2009 12:41 pm
by thomas_r_a
Hi Andrew

I am using your sample app. to view a clip and capture motion. I did the following

using VideoSource;
using AForge.Video.DirectShow;
//using Tiger.Video.VFW;

When I run the app now it runs AVI, DivX, Xvid fine but still not ASF and MP4 though they are running fine in Windows Media Player

Am I missing something ?

Best regards
Thomas Andersen

Re: Read other files than AVI

PostPosted: Mon Mar 16, 2009 2:57 pm
by andrew.kirillov
Hello,

It looks like it is not an issue on your side. I have similar report from another user of the framework - he is also unable playing ASF files. It looks like FileVideoSource class needs to be revisited and fixed.