Balti2016 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

AccessViolationException in VideoFileWriter.cpp #265

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Intermittent bug
2.
3.

What is the expected output? What do you see instead?
Should create a video file - crashes application instead.

What version of the product are you using?
2.2.2

Please provide any additional information below.
Seems to happen randomly. Crashes here:

out_size = libffmpeg::avcodec_encode_video( codecContext, 
data->VideoOutputBuffer,data->VideoOutputBufferSize, data->VideoFrame );

.. with a System.AccessViolationException

The process terminated due to an unhandled exception. Exception information:

<Module>.avcodec_encode_video(libffmpeg.AVCodecContext*, Byte*, Int32,  
libffmpeg.AVFrame*) bei  
<Module>.AForge.Video.FFMPEG.?A0x50e85089.write_video_frame(AForge.Video.FFMPEG.
WriterPrivateData)  bei 
AForge.Video.FFMPEG.VideoFileWriter.WriteVideoFrame(System.Drawing.Bitmap,  
System.TimeSpan) at 
AForge.Video.FFMPEG.VideoFileWriter.WriteVideoFrame(System.Drawing.Bitmap)

...looking online someone else has had this problem:

http://svn.codingteam.net/kinovea/branches/FileTypes/PlayerServer/PlayerServer/V
ideoFileWriter.cpp

and commented it with:
"AccessViolationException? => Memalign problem. Libavc recompile with the 
correct gcc."

Original issue reported on code.google.com by ad...@activeunlimited.com on 21 Nov 2011 at 11:37

GoogleCodeExporter commented 9 years ago
1) I used FFMPEG build obtained a while ago from here:
http://ffmpeg.zeranoe.com/
So did not do any magic about custom build, whatever.

2) >> recompile with the correct gcc
What is meant by CORRECT gcc?

Original comment by andrew.k...@gmail.com on 22 Nov 2011 at 5:53

GoogleCodeExporter commented 9 years ago
A new version of the framework was released last month. You may try if it is 
any better.

Original comment by andrew.k...@gmail.com on 3 Jan 2012 at 11:54