ivan16luis / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Java VM Crashed when I create FFmpegFrameRecorder obj... #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.download ffmpeg libraries from here: 
http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-0.7.1-win32-shared.7z
2.try to create a new recorder instance by : FFmpegFrameRecorder recorder = new 
FFmpegFrameRecorder ("c:\\output.avi", 320,240); 
3.An unexpected error has been detected by Java Runtime Environment...

What is the expected output? What do you see instead?
no error should be expected...
but I saw EXCEPTION_ACCESS_VIOLATION error.

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x649f403a, pid=7260, tid=6236
#
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
# Problematic frame:
# C  [avformat-52.dll+0xb403a]
#

What version of the product are you using? On what operating system?
newest version of opencv,javacv... Try the demo "HoughLines" and it works fine.

Please provide any additional information below.
Maybe I should compile a ffmpeg library myself? what version should I use? 
Could  Samuel please give some more examples about your ffmpeg-java-wrapping 
lib?

Original issue reported on code.google.com by bbsc...@9.cn on 20 Dec 2011 at 6:16

GoogleCodeExporter commented 9 years ago
full code is simple...

public class TestRecording {
    public static void main(String[] s) throws Exception{
        OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0);
        FFmpegFrameRecorder recorder = new FFmpegFrameRecorder 
                ("c:\\output.avi", 320,240); 
                grabber.start();
                recorder.start();
    }
}

After I delete the "FFmpegFrameRecorder" line, program run just fine...

Original comment by bbsc...@9.cn on 20 Dec 2011 at 6:19

GoogleCodeExporter commented 9 years ago
Please try to use the FFmpeg binaries that are known to work according to the 
README.txt file, thank you

Original comment by samuel.a...@gmail.com on 27 Dec 2011 at 9:32

GoogleCodeExporter commented 9 years ago
I compiled the latest release using those binaries for FFmpeg 0.7.1, so it 
should work now! Thanks for reporting

Original comment by samuel.a...@gmail.com on 8 Jan 2012 at 3:33

GoogleCodeExporter commented 9 years ago
u must use this version of ffmpeg:

http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-20121029-git-11d695d-win64-
shared.7z

i had ur problem but i searched the JavaCV readme file and i found that JavaCV 
has been compiled with this version of ffmpeg

good luck

Original comment by jpourdei...@gmail.com on 22 Feb 2013 at 8:24