1
0

Misc output tweaks

Signed-off-by: James Ketrenos <jketreno@media.ketrenos.com>
This commit is contained in:
James Ketrenos 2022-05-16 13:29:32 -07:00
parent a5e79dc95b
commit 9815116d77

View File

@ -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
}