AForge.NET

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

Invalid image dimension occured at AVIWrite.AddFrame()

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

Invalid image dimension occured at AVIWrite.AddFrame()

Postby u1500 » Sat Mar 04, 2017 4:34 am

Hello everyone, I am new in this forum.

I was trying to implement a webcam recorder application. Even though the program runs fine when I set 320x240 and 640x480 resolutions, it returns Invalid image dimension error at AVIWrite.AddFrame() when to set 800x600 and 1024x786 resolutions.
here's the full source of the project.
http://stackoverflow.com/questions/4257 ... e-function

I would appreciate if you give me any suggestion
u1500
 
Posts: 1
Joined: Sat Mar 04, 2017 4:24 am

Re: Invalid image dimension occured at AVIWrite.AddFrame()

Postby andrew.kirillov » Sun Mar 05, 2017 5:06 pm

Hello,

I would check version of the framework you use. As you can see from the code, AVIWrite.AddFrame() does not throw System.ApplicationException. Also you can try VideoFileWriter, which uses FFmpeg to write video files.
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

cron