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:
21
effects/color-adjust.sexp
Normal file
21
effects/color-adjust.sexp
Normal file
@@ -0,0 +1,21 @@
|
||||
;; Color adjust effect - combined brightness and contrast
|
||||
;; Usage: python3 plan.py effects/color-adjust.sexp -p brightness=20 -p contrast=1.2 | python3 execute.py - -d . -o output.mp4
|
||||
;;
|
||||
;; Parameters:
|
||||
;; brightness: brightness adjustment (-255 to 255, default: 20)
|
||||
;; contrast: contrast multiplier (0.0 to 3.0, default: 1.2)
|
||||
|
||||
(recipe "color-adjust"
|
||||
:version "1.0"
|
||||
:encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30)
|
||||
|
||||
(effect color-adjust :path "sexp_effects/effects/color-adjust.sexp")
|
||||
|
||||
;; Default parameters (overridden by -p brightness=N -p contrast=N)
|
||||
(def brightness 20)
|
||||
(def contrast 1.2)
|
||||
|
||||
(def video (source :path "monday.webm"))
|
||||
(def clip (-> video (segment :start 0 :duration 10)))
|
||||
(def result (-> clip (effect color-adjust :brightness brightness :contrast contrast)))
|
||||
result)
|
||||
Reference in New Issue
Block a user