Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.bytedeco.ffmpeg.avformat.AVFormatContext.duration()" because "this.oc" is null
at org.bytedeco.javacv.FFmpegFrameGrabber.getLengthInTime(FFmpegFrameGrabber.java:876)
at org.bytedeco.javacv.FFmpegFrameGrabber.getLengthInVideoFrames(FFmpegFrameGrabber.java:882)
at org.bytedeco.javacv.FFmpegFrameGrabber.getLengthInFrames(FFmpegFrameGrabber.java:872)
at dev.polv.mediaextractor.Extractor.<init>(Extractor.java:38)
at dev.polv.mediaextractor.AudioExtractor.<init>(AudioExtractor.java:17)
at Main.main(Main.java:6)
I'm having this issue:
My gradle is:
I can't also seem to access av related classes.