remove which

This commit is contained in:
Antonio J. Delgado 2023-03-20 23:30:42 +02:00
parent 5579ab06d7
commit 4cf4a65bc4

View file

@ -234,7 +234,7 @@ if [ -n "${ntfy_server}" ]; then
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
if [ -n "${file}" ]; then
temp_file="$(mktemp /tmp/tmp.XXXXX.mkv)"
result=$($(which ffmpeg) -filter_complex '[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse' -i "${file}" "${temp_file}")
result=$(ffmpeg -filter_complex '[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse' -i "${file}" "${temp_file}")
return_code=$?
if [ ${return_code} != 0 ]; then
message "Error ${return_code} processing video file '${file}'. ${result}"