I have a program that is converting video well. My program converting any video format to mp4 format well. But when I tried to convert mp4 to other format(avi or flv), exception occurred as given below.
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006ee76520, pid=5744, tid=2404
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [xuggle161455890081250537.dll+0x736520]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\intellij-wspace\myswipr\hs_err_pid5744.log
Program
String inputFile = "C:/Testing Video/forward_unto_dawn.mp4";
String outputFile = "e:/temp112.avi";
int WIDTH = 100;
int HEIGHT = 100;
IContainer container = IContainer.make();
int result = container.open(inputFile, IContainer.Type.READ, null);
if (result < 0)
throw new YSException("VID001");//Custom Exception class
long duration = container.getDuration();
long fileSize = container.getFileSize();
long bitRate = container.getBitRate();
System.out.println("Number of streams: " + numStreams);
System.out.println("Duration (ms): " + duration);
System.out.println("File Size (bytes): " + fileSize);
System.out.println("Bit Rate: " + bitRate);
//Converting Program are custom listener. Being huge couldn't post
//JVM crashed when container.open(.............)/