Re: SoundJLayer
Posted by
basti on
Oct 18, 2023; 10:44pm
URL: https://forum.jogamp.org/SoundJLayer-tp4043032p4043076.html
@gouessej
Oh yes i forgot about the other child classes (e.g.: PointSound), and thanks for mentioning AudioSystem.getAudioFileTypes()
i wasn't aware.
@jfpauly
nice to see your problem resolved.
@Sven Gothel
Hello, i'm trying to get FFMPEGMediaPlayer to work, but no luck so far.
I downloaded
ffmpeg-n5.1.3-16-g566aa38d98-win64-gpl-shared-5.1.zipThen i extracted: avcodec-59.dll, avformat-59.dll and avutil-57.dll to my working-directory and renamed them to avcodec, avformat and avutil.
Which should work if i'm interpreting the source right
FFMPEGDynamicLibraryBundleInfoIf i run:
System.out.println("FFMPEGMediaPlayer available: " + FFMPEGMediaPlayer.isAvailable());
GLMediaPlayer gLMediaPlayer = new FFMPEGMediaPlayer();i get this error:
FFMPEGMediaPlayer available: false
FFMPEG Tool library incomplete: [ avutil true, avformat false, avcodec false]
LIB_AV Not Available: lavu, lavc, lavu
Exception in thread "main" java.lang.RuntimeException: FFMPEGMediaPlayer not available
at jogamp.opengl.util.av.impl.FFMPEGMediaPlayer.<init>(FFMPEGMediaPlayer.java:320)
at soundtest.GLMediaPlayerTest.main(GLMediaPlayerTest.java:25)So apparently the avutil.dll was found but the other two were not.
I'm running Java3D 1.7.1 on Windows 10.
Maybe you can help me, thanks.
EDIT:
I realized that i'm still using jogAmp 2.4 so i switched to 2.5
jogamp-currentNow i'm getting:
FFMPEG Tool library incomplete: [ avcodec false, avformat false, avutil true, swres false ]
FFmpeg Not Available, missing libs: avcodec, avformat, swresample
Debug output via -Djogl.debug says:
Checking for Java2D/OpenGL support
Java2D support: default GraphicsConfiguration = sun.awt.Win32GraphicsConfig
JOGL/Java2D OGL Pipeline active false, resourceCompatible false
Is there a way to set the GraphicsConfiguration to 64bit, or would a 32bit version of ffmpeg help ?