Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaCV with FFmpeg, OpenCV, etc only modules #1071

Open
guy-keller opened this issue Oct 23, 2018 · 7 comments
Open

JavaCV with FFmpeg, OpenCV, etc only modules #1071

guy-keller opened this issue Oct 23, 2018 · 7 comments

Comments

@guy-keller
Copy link

Hi @saudet

How do I go about creating a "javacv-ffmpeg-dist.jar"?

I understand that the javacv-platform includes several other image and video processing tools but in my particular case (there may be others out there wanting the same too) I am only interested on ffmpeg.

Thank you very much in advance for your help.

Gui

@saudet
Copy link
Member

saudet commented Oct 23, 2018 via email

@saudet
Copy link
Member

saudet commented Oct 24, 2018 via email

@saudet
Copy link
Member

saudet commented Oct 24, 2018

And we could use a build profile for that so let's mark this as an RFE:
https://maven.apache.org/guides/introduction/introduction-to-profiles.html

@guy-keller
Copy link
Author

guy-keller commented Oct 24, 2018

Hi @saudet,

Thanks for the prompt reply! It turns out that I can produce a fat-jar and remove "unwanted packages" using the maven shade plugin.

Here is a StackOverflow link with examples:
https://stackoverflow.com/questions/30023509/i-wish-to-exclude-some-class-files-from-my-jar-i-am-using-maven-assembly-plugin

Nevertheless, I still think that specialist jars such as JavaCV-ffmpeg, JavaCV-OpenCV, etc.. could be made available as well as the "JavaCV-all-platforms". [ suggestion ]

For the time being, I am making platform specific releases of my app (not ideal but oh well).
To reduce its size I use the maven shade plugin to remove the *.so and *.dylib from a windows package for example.

Cheers, Gui 👍

@saudet
Copy link
Member

saudet commented Oct 24, 2018

Let's keep it open! Thanks

@saudet saudet reopened this Oct 24, 2018
@saudet saudet changed the title JavaCV with ffmpeg only JavaCV with FFmpeg, OpenCV, etc only modules Aug 2, 2019
@saudet
Copy link
Member

saudet commented Aug 6, 2019

If/when we decide to split JavaCV into modules, I think I would like to go with the following, in addition to javacv-platform:

javacv-core
javacv-android
javacv-java2d
javacv-javafx
javacv-opencv
javacv-ffmpeg
javacv-tesseract
javacv-dc1394
javacv-flycapture
javacv-openkinect
javacv-ps3eye
javacv-realsense
javacv-videoinput
javacv-algorithms

Along with the corresponding JPMS modules and Java packages org.bytedeco.javacv.core, org.bytedeco.javacv.ffmpeg, etc, which would break backward compatibility. What do you guys think?

/cc @denismakogon

@denismakogon
Copy link

Personally, I'm on both sides of this problem. I hate seeing something that breaks from release to release, however, I'm the one who brought this topic to a wider audience. So, I feel like I'm not the one who should vote here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants