All Projects → phronmophobic → clj-media

phronmophobic / clj-media

Licence: EPL-1.0 license
No description, website, or topics provided.

Programming Languages

clojure
4091 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].