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>
21 lines
666 B
Common Lisp
21 lines
666 B
Common Lisp
;; Rotate effect - rotate image around center
|
|
;; Usage: python3 plan.py effects/rotate.sexp -p angle=15 | python3 execute.py - -d . -o output.mp4
|
|
;;
|
|
;; Parameters:
|
|
;; angle: rotation in degrees (-180 to 180, default: 15)
|
|
;; positive = clockwise
|
|
|
|
(recipe "rotate"
|
|
:version "1.0"
|
|
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
|
|
|
(effect rotate :path "sexp_effects/effects/rotate.sexp")
|
|
|
|
;; Default parameter (overridden by -p angle=N)
|
|
(def angle 15)
|
|
|
|
(def video (source :path "monday.webm"))
|
|
(def clip (-> video (segment :start 0 :duration 10)))
|
|
(def result (-> clip (effect rotate :angle angle)))
|
|
result)
|