Includes java versions of the following ffmpeg sample programs:
-
avio_reading (API example program to show how to read from a custom buffer accessed through AVIOContext)
-
transcode_aac (Convert an input audio file to AAC in an MP4 container)
-
transcoding (API example for demuxing, decoding, filtering, encoding and muxing. Java code for the transcoding sample program originally by hullarb)
-
filtering_audio (API example for audio decoding and filtering)
Makes use of javacpp-presets/ffmpeg JNI bindings for ffmpeg.
Depends on maven for building.
mvn package
mvn package -Dall_platforms
java -jar target/avio_reading.jar <media_file>
java -jar target/transcode_aac.jar <input_audio_file> <output_mp4>
java -jar target/transcoding.jar <input_movie> <output_movie_mp4>
java -jar target/filtering_audio.jar <audio_file> | ffplay -f s16le -ar 8000 -ac 1 -