Misc output tweaks
Signed-off-by: James Ketrenos <jketreno@media.ketrenos.com>
This commit is contained in:
parent
a5e79dc95b
commit
9815116d77
@ -167,7 +167,7 @@ ffmpeg_hw_or_sw() {
|
|||||||
-c:v h264_qsv
|
-c:v h264_qsv
|
||||||
"
|
"
|
||||||
else
|
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
|
echo "${PREFIX} Content will be transcoded from ${codec} to Matroska(yuv420p:h264:${width}x${height}) with hw decode:hw encode." >&2
|
||||||
input_flags="
|
input_flags="
|
||||||
-hwaccel qsv
|
-hwaccel qsv
|
||||||
@ -179,7 +179,7 @@ ffmpeg_hw_or_sw() {
|
|||||||
-global_quality 20
|
-global_quality 20
|
||||||
-c:v h264_qsv
|
-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
|
echo "${PREFIX} Content will be transcoded from ${codec} to Matroska(yuv420p:h264:${width}x${height}) with hw decode:hw encode." >&2
|
||||||
input_flags="
|
input_flags="
|
||||||
-hwaccel qsv
|
-hwaccel qsv
|
||||||
@ -238,7 +238,8 @@ function move_to_backup {
|
|||||||
mkdir -p "${base}" || fail "Unable to mkdir '${base}'"
|
mkdir -p "${base}" || fail "Unable to mkdir '${base}'"
|
||||||
fi
|
fi
|
||||||
if [ -d "${base}" ]; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user