FFmpeg Java (Panama) bindings
- Download/install jextract 22 from https://jdk.java.net/jextract
# Assumes you've installed 22-jextract+5-33 at /usr/local/jextract
export JEXTRACT="/usr/local/jextract/bin/jextract"
export FFMPEG_VERSION=6.1.2
wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz
tar xzvf ffmpeg-${FFMPEG_VERSION}.tar.gz
${JEXTRACT} \
--include-dir ./ffmpeg-${FFMPEG_VERSION} \
--library avcodec --library avformat --library avutil --library swscale \
--output ffmpeg6/src/main/java --target-package io.github.chrisribble.ffmpeg6 --header-class-name FFmpeg \
ffmpeg6/ffmpeg.h
export FFMPEG_VERSION=7.0.2
wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz
tar xzvf ffmpeg-${FFMPEG_VERSION}.tar.gz
${JEXTRACT} \
--include-dir ./ffmpeg-${FFMPEG_VERSION} \
--library avcodec --library avformat --library avutil --library swscale \
--output ffmpeg7/src/main/java --target-package io.github.chrisribble.ffmpeg7 --header-class-name FFmpeg \
ffmpeg7/ffmpeg.h