;; Datamosh effect - glitch art block corruption ;; Usage: python3 plan.py effects/datamosh.sexp -p corruption=0.5 -p block_size=24 | python3 execute.py - -d . -o output.mp4 ;; ;; Parameters: ;; corruption: corruption intensity (0.1 to 1.0, default: 0.5) ;; block_size: size of corrupted blocks (8 to 64, default: 24) (recipe "datamosh" :version "1.0" :encoding (:codec "libx264" :crf 20 :preset "medium" :audio-codec "aac" :fps 30) (effect datamosh :path "sexp_effects/effects/datamosh.sexp") ;; Default parameters (overridden by -p corruption=N -p block_size=N) (def corruption 0.5) (def block_size 24) (def video (source :path "monday.webm")) (def clip (-> video (segment :start 0 :duration 10))) (def result (-> clip (effect datamosh :corruption corruption :block_size block_size))) result)