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

Issue with Video.FFMPEG's VideoFileWriter::close()

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

Issue with Video.FFMPEG's VideoFileWriter::close()

Postby Kedar » Mon Feb 08, 2016 8:39 am

Hi Dear all,

I am using (Aforge, Aforge.Video and AForge.Video.FFMPEG) libraries to create video from sequence of image in c# but most of the time i get exception when i use AForge.Video.FFMPEG.VideoFileWriter.Close() but not always. I have found fix for this here "" but even after getting latest code with this fix. problem is still there.

A brief exception details are mentioned below:

Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at <Module>.avcodec_close(libffmpeg.AVCodecContext*)
at AForge.Video.FFMPEG.VideoFileWriter.Close()

Please let me know if any update on this or how can i catch this exception so that my windows service (C#) should not get crashed, i am having try catch block around "Forge.Video.FFMPEG.VideoFileWriter.Close()" but even though my service is getting crashed.

I am using two catch block
catch (System.Runtime.InteropServices.SEHException ex) {}
catch (Exception ex) {}

Please help me out.

Posts: 1
Joined: Mon Feb 08, 2016 8:10 am

Return to AForge.NET Framework