Add S-expression based video effects pipeline with modular effect definitions, constructs, and recipe files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
697 B
Common Lisp
20 lines
697 B
Common Lisp
;; Mirror effect - reflect image
|
|
;; Usage: python3 plan.py effects/mirror.sexp -p direction=horizontal | python3 execute.py - -d . -o output.mp4
|
|
;;
|
|
;; Parameters:
|
|
;; direction: mirror axis ("horizontal" or "vertical", default: "horizontal")
|
|
|
|
(recipe "mirror"
|
|
:version "1.0"
|
|
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
|
|
|
(effect mirror :path "sexp_effects/effects/mirror.sexp")
|
|
|
|
;; Default parameter (overridden by -p direction=horizontal|vertical)
|
|
(def direction "horizontal")
|
|
|
|
(def video (source :path "monday.webm"))
|
|
(def clip (-> video (segment :start 0 :duration 10)))
|
|
(def result (-> clip (effect mirror :direction direction)))
|
|
result)
|