add path to ffmpeg
This commit is contained in:
parent
4cf4a65bc4
commit
3d620b0257
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ if [ -n "${ntfy_server}" ]; then
|
||||||
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
|
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
|
||||||
if [ -n "${file}" ]; then
|
if [ -n "${file}" ]; then
|
||||||
temp_file="$(mktemp /tmp/tmp.XXXXX.mkv)"
|
temp_file="$(mktemp /tmp/tmp.XXXXX.mkv)"
|
||||||
result=$(ffmpeg -filter_complex '[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse' -i "${file}" "${temp_file}")
|
result=$(/usr/bin/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=$?
|
return_code=$?
|
||||||
if [ ${return_code} != 0 ]; then
|
if [ ${return_code} != 0 ]; then
|
||||||
message "Error ${return_code} processing video file '${file}'. ${result}"
|
message "Error ${return_code} processing video file '${file}'. ${result}"
|
||||||
|
|
Loading…
Reference in a new issue