Skip to content

clone206/javacpp-ffmpeg-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A java implementation of ffmpeg's example utilities

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.

Building

Jars with dependencies for the currently running OS:

mvn package

Jars with dependencies for all supported OS's:

mvn package -Dall_platforms

Running

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 -

About

A java implementation of ffmpeg's example utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages