[FFmpeg-user] question about calling ffmpeg from java in AIX

Wang, Liqin, M.S. Wang.Liqin at mayo.edu
Thu Aug 20 00:20:20 CEST 2015

Hi, All,

I have successfully built ffmpeg in AIX 7.1 and am able to generate thumbnail with the following command directly in AIX:

ffmpeg  -ss 8  -i vdata1.dcm  -vcodec bmp -vframes 1 -an -f rawvideo -s 128x128  -y vdata1.bmp

the thumbnail generated just fine.

However, when I call this ffmpeg from Java program using  java runtime:

Runtime rt = Runtime.getRuntime();
       Process proc=null;

  proc = rt.exec(cmd.toString());


I got errors of:

frames 1 -an -f rawvideo -s 128x128  -y /qreadscis/mcr/QReadsTest/NonRad/20140731/8_NA_1.2.840.10008.172886328136013394707660428320635002119_1.2.840.10008.148516
16:32:13,470 DEBUG (edu.mayo.qreads.imaging.util.StreamGobbler.run(StreamGobbler.java:43)) - ERROR>exec(): 0509-036 Cannot load program /cigaapp/ciguser/bin/FFMP
EG_lib/ffmpeg because of the following errors:
16:32:13,470 DEBUG (edu.mayo.qreads.imaging.util.StreamGobbler.run(StreamGobbler.java:43)) - ERROR>     0509-150   Dependent module pwd
so.2) could not be loaded.
16:32:13,471 DEBUG (edu.mayo.qreads.imaging.util.StreamGobbler.run(StreamGobbler.java:43)) - ERROR>     0509-152   Member libiconv.so.2 is not found in archive
16:32:13,471 ERROR (edu.mayo.qreads.imaging.util.QReadsCreateThumbnailBMPStrip.createVideoThumbnail(QReadsCreateThumbnailBMPStrip.java:2087)) - Thumbnail generat
ion failed  with the value !  255
log4j:ERROR Failed to excute sql

Could anyone please let me know why it behaves in such a way?

Calling from Java is working fine in window.



More information about the ffmpeg-user mailing list