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:
19
effects/rgb_split.sexp
Normal file
19
effects/rgb_split.sexp
Normal file
@@ -0,0 +1,19 @@
|
||||
;; RGB split effect - chromatic aberration
|
||||
;; Usage: python3 plan.py effects/rgb_split.sexp -p offset_x=20 | python3 execute.py - -d . -o output.mp4
|
||||
;;
|
||||
;; Parameters:
|
||||
;; offset_x: horizontal color channel offset in pixels (2 to 50, default: 20)
|
||||
|
||||
(recipe "rgb_split"
|
||||
:version "1.0"
|
||||
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
||||
|
||||
(effect rgb_split :path "sexp_effects/effects/rgb_split.sexp")
|
||||
|
||||
;; Default parameter (overridden by -p offset_x=N)
|
||||
(def offset_x 20)
|
||||
|
||||
(def video (source :path "monday.webm"))
|
||||
(def clip (-> video (segment :start 0 :duration 10)))
|
||||
(def result (-> clip (effect rgb_split :offset_x offset_x)))
|
||||
result)
|
||||
Reference in New Issue
Block a user