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
671 B
Common Lisp
20 lines
671 B
Common Lisp
;; Film grain effect - analog film noise
|
|
;; Usage: python3 plan.py effects/film_grain.sexp -p intensity=0.25 | python3 execute.py - -d . -o output.mp4
|
|
;;
|
|
;; Parameters:
|
|
;; intensity: grain amount (0.05 to 0.5, default: 0.25)
|
|
|
|
(recipe "film_grain"
|
|
:version "1.0"
|
|
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
|
|
|
(effect film_grain :path "sexp_effects/effects/film_grain.sexp")
|
|
|
|
;; Default parameter (overridden by -p intensity=N)
|
|
(def intensity 0.25)
|
|
|
|
(def video (source :path "monday.webm"))
|
|
(def clip (-> video (segment :start 0 :duration 10)))
|
|
(def result (-> clip (effect film_grain :intensity intensity)))
|
|
result)
|