Initial commit: video effects processing system
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>
This commit is contained in:
20
effects/color_cycle.sexp
Normal file
20
effects/color_cycle.sexp
Normal file
@@ -0,0 +1,20 @@
|
||||
;; Color cycle effect - animated hue rotation over time
|
||||
;; Usage: python3 plan.py effects/color_cycle.sexp -p speed=2 | python3 execute.py - -d . -o output.mp4
|
||||
;;
|
||||
;; Parameters:
|
||||
;; speed: rotation speed multiplier (0.1 to 10, default: 2)
|
||||
;; higher = faster color cycling
|
||||
|
||||
(recipe "color_cycle"
|
||||
:version "1.0"
|
||||
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
||||
|
||||
(effect color_cycle :path "sexp_effects/effects/color_cycle.sexp")
|
||||
|
||||
;; Default parameter (overridden by -p speed=N)
|
||||
(def speed 2)
|
||||
|
||||
(def video (source :path "monday.webm"))
|
||||
(def clip (-> video (segment :start 0 :duration 10)))
|
||||
(def result (-> clip (effect color_cycle :speed speed)))
|
||||
result)
|
||||
Reference in New Issue
Block a user