Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Need help with Java CPP and FFMPEG

226 views
Skip to first unread message

Ashish Garg

unread,
Nov 24, 2021, 1:12:59 AM11/24/21
to javacpp
Hi All,

I need some guidence with Java CPP libarries and FFMPEG, 

I am willing to use pure java code for the Silence detection and Audio encoding conversion,
The only ask is to i do not want to have the installations of the ffmpeg package (with org.bytedeco.ffmpeg required few libaries to be installed before run) which is discouraged in our deployemnt environment.

Is there any way to eliminate the Installation part of the libaries and use purely java based approach using the presets.

any leads will be helpful
Thanks

Samuel Audet

unread,
Nov 24, 2021, 2:24:08 AM11/24/21
to javacpp...@googlegroups.com, Ashish Garg
Hello,

It's actually possible to execute the ffmpeg program itself from Java,
without having to install anything on the system:
http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html
Does that fulfill your requirements?

Samuel

Ashish Garg

unread,
Nov 25, 2021, 12:32:46 AM11/25/21
to javacpp
Hi All,

We are currently using the same method at our dev environment(Windows), but on the integration and other environments it is asking for installation of few libraries, (libxcb-shape0 libxcb-xfixes0 libxcb-shm0-dev libasound2). we are using centOS in deployement environment. That is stopping me use the approach.

Thank you,

Samuel Audet

unread,
Nov 25, 2021, 12:35:58 AM11/25/21
to javacpp...@googlegroups.com, Ashish Garg
It sounds like you need headless builds?
That's something other have requested as well:
https://github.com/bytedeco/javacpp-presets/issues/593

Contributions are welcome!

Ashish Garg

unread,
Nov 25, 2021, 1:41:19 AM11/25/21
to javacpp
Hi Samuel,

Thank you for your reply,
I am using the Latest version of the repo, Still facing the issue, I am not 100% sure about headless build, while building my solution i was facing the issue of the libraries with latest verison as well, similar to the issue faced in the link shared by you but different set of libraries.

Please let me know if i am making myself clear..

Thanks 

Samuel Audet

unread,
Nov 25, 2021, 3:10:22 AM11/25/21
to javacpp...@googlegroups.com, Ashish Garg
You can create custom binaries yourself, if that's your question:
https://github.com/bytedeco/javacpp-presets#build-instructions
Reply all
Reply to author
Forward
0 new messages