Change name for output folder

This commit is contained in:
q3aql 2023-03-10 20:58:36 +01:00
parent ddf3080d68
commit 8e1b7e01e3

View File

@ -133,7 +133,7 @@ else
convert_files=$(expr ${convert_files} + 1) convert_files=$(expr ${convert_files} + 1)
done done
echo "" echo ""
echo "* The output folder will be '${1}/to-mp4'" echo "* The output folder will be '${1}/to-av1'"
# Execute commands for conversion # Execute commands for conversion
echo "" echo ""
echo -n "* (Default: y) Do you want run the conversion? (y/n): " ; read run_commands_ffmpeg echo -n "* (Default: y) Do you want run the conversion? (y/n): " ; read run_commands_ffmpeg
@ -141,15 +141,15 @@ else
exit exit
else else
convert_files=1 convert_files=1
cd "${1}" && mkdir -p to-mp4 && rm -rf to-mp4/* cd "${1}" && mkdir -p to-av1 && rm -rf to-av1/*
while [ ${convert_files} -le ${num_files} ] ; do while [ ${convert_files} -le ${num_files} ] ; do
show_file=$(cat ${tempFile} | head -${convert_files} | tail -1) show_file=$(cat ${tempFile} | head -${convert_files} | tail -1)
if [ ${subtitles_enabled} -eq 1 ] ; then if [ ${subtitles_enabled} -eq 1 ] ; then
fname=$(echo "${show_file}" | cut -d "." -f 1) fname=$(echo "${show_file}" | cut -d "." -f 1)
ks-av1s-wrapper --conv-with-sub "${show_file}" "to-mp4/${fname}" ks-av1s-wrapper --conv-with-sub "${show_file}" "to-av1/${fname}"
else else
fname=$(echo "${show_file}" | cut -d "." -f 1) fname=$(echo "${show_file}" | cut -d "." -f 1)
ks-av1s-wrapper --conv "${show_file}" "to-mp4/${fname}" ks-av1s-wrapper --conv "${show_file}" "to-av1/${fname}"
fi fi
convert_files=$(expr ${convert_files} + 1) convert_files=$(expr ${convert_files} + 1)
done done