Bug 850 - FFMPEGMediaPlayer is not able to load native avformat DLL
Summary: FFMPEGMediaPlayer is not able to load native avformat DLL
Status: RESOLVED WORKSFORME
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2
Hardware: pc_x86_64 windows
: --- normal
Assignee: Sven Gothel
URL: http://forum.jogamp.org/Win7-x64-Trou...
Depends on:
Blocks:
 
Reported: 2013-10-07 15:21 CEST by Maxime Caignart
Modified: 2013-10-21 13:16 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments
lib dir list (3.54 KB, text/plain)
2013-10-07 15:22 CEST, Maxime Caignart
Details
debug log (61.45 KB, application/octet-stream)
2013-10-07 15:25 CEST, Maxime Caignart
Details
ffplay log (1.71 KB, text/plain)
2013-10-08 13:22 CEST, Maxime Caignart
Details
debug log 64 (159.71 KB, application/x-zip-compressed)
2013-10-10 14:21 CEST, Maxime Caignart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Caignart 2013-10-07 15:21:32 CEST
I'm trying to run MovieSimple.java from inside my own project.
Most of the native files seems to be loaded but not avformat-55.dll

Line 26040 of the provided log states that dll loading failed.
Error is : java.lang.RuntimeException: FFMPEG Tool library incomplete: [ avutil true, avformat false, avcodec true]

I'm using latest build : gluegen_726-joal_484-jogl_1104-jocl_856

Line 26040 of the provided log states that the load failed.

All libs are under the folder "W:\workspace\Catequesis Binaries\lib\"
The VM launch with the argument : -Djava.library.path="W:\workspace\Catequesis Binaries\lib\"

Running ffplay.exe from this location for the same video file is working.
Comment 1 Maxime Caignart 2013-10-07 15:22:17 CEST
Created attachment 509 [details]
lib dir list

attaching directory listing
Comment 2 Maxime Caignart 2013-10-07 15:25:05 CEST
Created attachment 510 [details]
debug log

attaching debug log - in 7zip format
Comment 3 Maxime Caignart 2013-10-08 13:22:01 CEST
Created attachment 511 [details]
ffplay log

added ffpla command line log, stating all the used versions.
Comment 4 Maxime Caignart 2013-10-08 13:24:53 CEST
Please note that the ffmpeg used was straight from http://ffmpeg.zeranoe.com/builds/
The version I used is the 32 bit shared.

Also the same code is running with no issue on Linux.
Comment 5 Sven Gothel 2013-10-10 13:49:04 CEST
I tested on Windows-7 64bit w/ Java7 64bit and:

- set FFMPEG_LIB=C:\ffmpeg_libav\lavc53_lavf53_lavu51-ffmpeg\x64
- set FFMPEG_LIB=C:\ffmpeg_libav\lavc55_lavf55_lavu52-ffmpeg\x64
- set FFMPEG_LIB=C:\ffmpeg_libav\lavc54_lavf54_lavu52_lavr01-libav\x64

working well.

+++

This is a FFmpeg Win64 shared build by Kyle Schwarz.

Zeranoe's FFmpeg Builds Home Page: <http://ffmpeg.zeranoe.com/builds/>

.. have to validate against 32bit builds.
Comment 6 Maxime Caignart 2013-10-10 14:21:33 CEST
Created attachment 516 [details]
debug log 64

Added 64bits logs : Same issue.
-win 7 64
-jdk 7_40 64
-same ffmpeg version as before but in 64bit
-same jogamp version but in 64bit
Comment 8 Sven Gothel 2013-10-18 07:14:06 CEST
LIB_AV Codec   : 55.35.100 [cc 55]^M
LIB_AV Format  : 55.19.100 [cc 55]^M
LIB_AV Util    : 52.46.101 [cc 52]^M
LIB_AV Resample: 0.0.0 [cc 1, loaded false]^M
LIB_SW Resample: 0.17.103 [cc 0, loaded true]^M
LIB_AV Device  : [loaded true]^M
LIB_AV Class   : FFMPEGv10Natives^M

set FFMPEG_LIB=C:\ffmpeg_libav\lavc55_lavf55_lavu52-ffmpeg-2013-10-09\x64 

http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-20131009-git-83fc6c8-win64-shared.7z

FFmpeg version: 2013-10-09 git-83fc6c8
  libavutil      52. 46.101 / 52. 46.101
  libavcodec     55. 35.100 / 55. 35.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100

all working ..
Comment 9 Sven Gothel 2013-10-18 22:21:29 CEST
I close this bug .. for now.

Please reopen if you can provide details that is bug is on us,
as we discussed this morning.

Thank you.
Comment 10 Maxime Caignart 2013-10-21 13:16:05 CEST
Using PATH instead of -Djava.library.path solved the issue.