I am building a JavaFX app that uses modules in a Maven project via IntelliJ IDE.
I am trying to use jcodec to convert a series of screenshots into a movie.
I use the example “Making a video with a set of images from memory” in:
https://github.com/jcodec/jcodec
As I am using buffered images, I have included the following dependencies.
<dependency>
<groupId>org.jcodec</groupId>
<artifactId>jcodec</artifactId>
<version>0.2.5</version>
</dependency>
<dependency>
<groupId>org.jcodec</groupId>
<artifactId>jcodec-javase</artifactId>
<version>0.2.5</version>
</dependency>
My module-info
file contains the following:
requires jcodec.javase;
requires jcodec;
With this inclusion, I get the following error.
module com.ozank.mymodule reads package org.jcodec.scale from both jcodec and jcodec.javase
What am I missing?
I looked at various posts here to solve the dependency issues but needed help finding an exact match for this problem, especially for jcodec.
There are some pointers to excluding dependencies, but before spending hours, asking for a more direct solution might be a good idea.