When I execute PlayerExample.class file I took these errors.
Exception in thread "main" java.lang.NullPointerException
at com.sun.jna.Structure.useMemory(Structure.java:154)
at com.sun.jna.Structure.useMemory(Structure.java:145)
at net.sf.ffmpeg_java.AVFormatLibrary$AVStream.<init>(AVFormatLibrary.java:436)
at PlayerExample.main(PlayerExample.java:98)
PlayerExample source code at line:98 and 99 is:
final Pointer pCodecCtx = new AVStream(formatCtx.getStreams()[0]).codec;
final AVCodecContext codecCtx = new AVCodecContext(pCodecCtx);
This is most probably caused by different ffmpeg version ...
ffmpeg-java and ffmpeg versions do not match: avcodec_version=??? LIBAVCODEC_VERSION_INT=3355137