FFCLJ

FFCLJ is a simple ffmpeg clojure wrapper. It aims to provide a simple wrapper around ffmpeg.

Features

  • ffmpeg and ffprobe support
  • ffmpeg progress using core.async channels
  • babashka support

Usage

(with-open [task (ffmpeg! 
    [:y 
    :i "http://ftp.nluug.nl/pub/graphics/blender/demo/movies/ToS/ToS-4k-1920.mov"
    :ss "00:00:00.000"
    :t "5"
    [:s "1280x720" :acodec "aac" :vcodec "h264" "720p.mp4"]])]

    (.wait-for task)
    (println "Transcoding completed. Exit code: " (.exit-code task)))
    

    Luis Santos

    luis@luissantos.pt

    I’m a passionate technical leader focused on building great products and leading great teams. I’ve architected and built horizontally scalable systems on Amazon Web Services and Microsoft Azure.

    comments powered by Disqus

    Details

    Source
    https://github.com/luissantos/ffclj/
    License
    MIT License

    Follow Me