Page 1 of 1

JVLC

Posted: 26 Aug 2008 16:28
by darkanita
Hi,

I have a problem with JVLC, first I have an error with native libraries but this was soved copying jvlc.dll and libvlc.dll in system32 folder. But in this moment i have other error :

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7009768a, pid=2616, tid=256
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C [libvlc.dll+0x9768a]
#
# An error report file with more information is saved as hs_err_pid2616.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

if somebody can help me, i have been thankful.
Ana Maria Lopez
darkanita@gmail.com

Re: JVLC

Posted: 26 Aug 2008 17:34
by darkanita
ok now my error change:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.org.videolan.jvlc.JVLC.createInstance([Ljava/lang/String;)J
at org.org.videolan.jvlc.JVLC.createInstance(Native Method)
at org.org.videolan.jvlc.JVLC.<init>(JVLC.java:64)
at VLCExample.main(VLCExample.java:13)

my code:

Code: Select all

public class VLCExample { public static void main( String[] args ) { boolean videoInput = false; JVLC jvlc = new JVLC(); jvlc.playlist.add("rtsp://192.168.0.56/live/mpeg4","Prueba"); // jvlc.playlist.add("file://J:\\jumps.mov", "a.avi"); // jvlc.playlist.add("file://" + System.getProperty( "user.dir" ) + "/a.mp3", "a.mp3"); jvlc.playlist.play( -1 , null ); while (! jvlc.isInputPlaying()) ; // testing vout functionalities try { Thread.sleep(500); if (jvlc.hasVout()) videoInput = true; } catch (InterruptedException e) { e.printStackTrace(); } if (videoInput) { System.out.print(jvlc.getVideoWidth()); System.out.print("x"); System.out.println(jvlc.getVideoHeight()); } try { if (videoInput) { System.out.print("Fullscreen... "); jvlc.setFullscreen(true); Thread.sleep(3000); System.out.println("real size."); jvlc.setFullscreen(false); System.out.print("Taking snapshot... "); jvlc.getSnapshot( System.getProperty( "user.dir" ) + "/snap.png"); System.out.println("taken. (see " + System.getProperty( "user.dir" ) + "/snap.png )"); } System.out.print("Muting..."); jvlc.setMute(true); Thread.sleep(3000); System.out.println("unmuting."); jvlc.setMute(false); Thread.sleep(3000); System.out.println("Volume is: " + jvlc.getVolume()); System.out.print("Setting volume to 150... "); jvlc.setVolume(150); System.out.println("done"); Thread.sleep(3000); System.out.println("INPUT INFORMATION"); System.out.println("-----------------"); System.out.println("Total length (ms) :\t" + jvlc.getInputLength()); System.out.println("Input time (ms) :\t" + jvlc.getInputTime()); System.out.println("Input position [0-1]:\t" + jvlc.getInputPosition()); if (videoInput) System.out.println("Input FPS :\t" + jvlc.getInputFPS()); } catch (Exception e) { System.out.println("Something was wrong. I die :(."); jvlc.destroy(); } System.out.println("Everything fine ;)"); System.out.println("Playing next item"); jvlc.playlist.next(); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } jvlc.destroy(); return; } }
Please somebody helpme