FFMPEG crash with a GoPro video

asked 2012-11-13 04:41:40 -0500

Marco gravatar image

I'm using the binaries of OpenCV 2.4.3 x64 for Windows(VS2010) and it crashes when opening a MPEG4 video from a GoPro camera. In particular, in a not debuggable position inside opencv_ffmpeg243_64.dll in the read_InputMediaStream_FFMPEG() function. I've tried to play it with the vanilla FFMPEG 1.0 version (ffplay.exe, see picture below) and it works perfectly. Is this a bug of the OpenCV wrapper? Or OpenCV uses an old version of FFMPEG?

image description

Thanks in advance for any help! Marco

edit retag flag offensive close merge delete


I narrowed it down to streams with AAC audio. I used one captured with iPhone4S. When I stripped the audio, the program didn't crash. I have the same configuration (OpenCV 2.4.3 x64 for Windows VS2010, also verified that the problem persists in 2.4.4 beta). The problem doesn't exist with 32-bit libraries. I used lkdemo example to reproduce the problem. When running the x64 program from command line, it runs fine. When launching it from VS (either as Debug or Run), access violation exception is raised in cvCreateFileCapture_FFMPEG @ opencv_ffmpeg243_64.dll: Unhandled exception at 0x66de1f30 in cpp-example-lkdemo.exe: 0xC0000005: Access violation reading location 0xffffffffffffffff.

yurysch gravatar imageyurysch ( 2013-02-17 05:22:08 -0500 )edit

I am also having this issue; 64bit and try to open movie with AAC audio stream causes crash in opencv_ffmpeg243_64.dll.

daktor gravatar imagedaktor ( 2013-05-06 20:23:45 -0500 )edit

Ok, so I'm hitting what appears to be exactly this problem (with the same only with AAC) characteristics. Did any of you find a resolution to this problem? Thanks!

joedull gravatar imagejoedull ( 2014-07-03 10:00:26 -0500 )edit

Until now, it seems to be actual issue. I faced this as well while working with GoPro files. Deleting audio with ffmpeg helped, but this is not the real solution.

cvMike gravatar imagecvMike ( 2018-03-02 02:31:31 -0500 )edit