From 9815116d77ee3e012661759bf9c1d131203691e3 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Mon, 16 May 2022 13:29:32 -0700 Subject: [PATCH] Misc output tweaks Signed-off-by: James Ketrenos --- normalize-video | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/normalize-video b/normalize-video index 834521d..7bdbb57 100755 --- a/normalize-video +++ b/normalize-video @@ -167,7 +167,7 @@ ffmpeg_hw_or_sw() { -c:v h264_qsv " else - if [[ "${codec}" =~ .*264.* ]]; then + if [[ "${codec}" =~ .*264.* ]] || [[ "${codec}" =~ avc* ]]; then echo "${PREFIX} Content will be transcoded from ${codec} to Matroska(yuv420p:h264:${width}x${height}) with hw decode:hw encode." >&2 input_flags=" -hwaccel qsv @@ -179,7 +179,7 @@ ffmpeg_hw_or_sw() { -global_quality 20 -c:v h264_qsv " - elif [[ "${codec}" = .*265.* ]]; then + elif [[ "${codec}" = .*265.* ]] || [[ "${codec}" =~ hev* ]]; then echo "${PREFIX} Content will be transcoded from ${codec} to Matroska(yuv420p:h264:${width}x${height}) with hw decode:hw encode." >&2 input_flags=" -hwaccel qsv @@ -238,7 +238,8 @@ function move_to_backup { mkdir -p "${base}" || fail "Unable to mkdir '${base}'" fi if [ -d "${base}" ]; then - mv "${IN}" "${base}"/ || fail "Unable to move '$IN'" + echo -e "\nTransferring ${IN} to ${base}" + rsync -avprlP --remove-source-files "${IN}" "${base}/" || fail "Unable to move '$IN'" fi }