clj-media
View or create videos and gifs with clojure.
Uses avclj under the hood.
Usage
You must have libavcodec installed to use this library.
Dependency
Currently only available via git dep.
com.phronemophobic/clj-media {:git/sha "50e9e5d887cabf07a8d125c1dae573ba31a402bd"
:git/url "https://github.com/phronmophobic/clj-media"}
Generating gifs
See examples/codetogif.
Generate test video
clojure -X:skia com.phronemophobic.clj-media.skia/gen-test-video
Note: currently only skia supported.
Play Video
Open a window and start playing a video.
Skia
clojure -M:skia -m com.phronemophobic.clj-media.skia my-movie.mp4
Java Swing
clojure -M -m com.phronemophobic.clj-media.java2d my-movie.mp4
Cljfx
clojure -M:cljfx -m com.phronemophobic.clj-media.cljfx my-movie.mp4
Status
Working examples for skia, swing, and cljfx. A reasonable API is still a WIP. Currently, only video works, but future support for audio is intended.
License
Copyright © 2021 Adrian
Distributed under the Eclipse Public License version 1.0.