AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Read other files than AVI

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Read other files than AVI

Postby thomas_r_a » Thu Mar 05, 2009 11:48 am

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
thomas_r_a
 
Posts: 5
Joined: Thu Mar 05, 2009 11:40 am

Re: Read other files than AVI

Postby andrew.kirillov » Thu Mar 05, 2009 12:33 pm

Hello,

Try FileVideoSource class instead of AVIFileVideoSource (or AVIReader).
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Read other files than AVI

Postby thomas_r_a » Mon Mar 16, 2009 12:41 pm

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
thomas_r_a
 
Posts: 5
Joined: Thu Mar 05, 2009 11:40 am

Re: Read other files than AVI

Postby andrew.kirillov » Mon Mar 16, 2009 2:57 pm

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.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework