Merge pull request #1 from josesanch/master

Add needed gen-class
This commit is contained in:
Andros Fenollosa 2020-07-14 11:28:07 +02:00 committed by GitHub
commit 86bd63f37c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
(ns video-optimize.core
(:gen-class)
(:require
[clojure.java.io :as io]
[clojure.string :as str]
@ -24,7 +25,5 @@
(prn (str "Optimizing: " path_raw))
;; Optimizing with ffmpeg
(shell/sh "ffmpeg" "-y" "-i" path_raw "-vf" (str "scale=" width_thumbnail ":-2") "-c:v" "libx264" "-crf" "23" "-profile:v" "high" "-pix_fmt" "yuv420p" "-color_primaries" "1" "-color_trc" "1" "-colorspace" "1" "-movflags" "+faststart" "-an" "-acodec" "aac" "-ab" "128kb" path_thumbnail)
(prn (str "Finish: " path_thumbnail))))
)
)}])
(prn (str "Finish: " path_thumbnail))))))}])
(println "Running: Feed me!"))