redirect stderr

This commit is contained in:
Antonio J. Delgado 2023-03-20 23:40:23 +02:00
parent ef54c952ce
commit 3ae497d27b

View file

@ -235,7 +235,7 @@ if [ -n "${ntfy_server}" ]; then
if [ -n "${file}" ]; then
sleep 3
temp_file="$(mktemp /tmp/tmp.XXXXX.mkv)"
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}")
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}" 2>&1)
return_code=$?
if [ ${return_code} != 0 ]; then
message "Error ${return_code} processing video file '${file}'. ${result}"