Change title text

This commit is contained in:
q3aql 2023-03-12 18:10:42 +01:00
parent 1986d7ff94
commit f5f32b9208
2 changed files with 17 additions and 17 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash #!/bin/bash
################################################################### ############################################################
# ks-av1s (ks-tools) - Convert video to AV1 Codec format (Series) # # ks-av1s (ks-tools) - Convert video to AV1 codec (Series) #
# Date: 10-03-2023 # # Date: 12-03-2023 #
# Author: q3aql # # Author: q3aql #
# Contact: q3aql@duck.com # # Contact: q3aql@duck.com #
################################################################### ############################################################
VERSION="8.5-dev" VERSION="8.5-dev"
M_DATE="100323" M_DATE="120323"
# Detect version ffmpeg for old releases # Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1) ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -190,7 +190,7 @@ if [ -z "${1}" ] ; then
echo "" echo ""
echo "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})" echo "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})"
echo "" echo ""
echo "- Convert video file(s) to compact and efficient AV1 Codec (Series)" echo "- Convert video file(s) to compact and efficient AV1 codec (Series)"
echo "" echo ""
echo "+ Config: ${configFile}" echo "+ Config: ${configFile}"
echo "" echo ""
@ -266,7 +266,7 @@ if [ -z "${2}" ] ; then
echo "" echo ""
echo "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})" echo "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})"
echo "" echo ""
echo "- Convert video file(s) to compact and efficient AV1 Codec (Series)" echo "- Convert video file(s) to compact and efficient AV1 codec (Series)"
echo "" echo ""
echo "+ Config:" echo "+ Config:"
echo "" echo ""
@ -456,7 +456,7 @@ else
echo " ${p_ffmpeg} \"${1}\" -map ${subtitle_track} \"${2}.srt\"" echo " ${p_ffmpeg} \"${1}\" -map ${subtitle_track} \"${2}.srt\""
echo "" echo ""
if [ "${patch_thread}" == "y" ] ; then if [ "${patch_thread}" == "y" ] ; then
echo " # Convert the file '${1}' to AV1 Codec" echo " # Convert the file '${1}' to AV1 codec"
if [ ! -z "${hevc_hdr}" ] ; then if [ ! -z "${hevc_hdr}" ] ; then
p_conversion="-s ${rel_size} -c:v ${vcodec} -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,subtitles=\"${2}.srt\"${profile_codec}-pix_fmt yuv420p -b:v ${b_vcodec} -c:a ${acodec} -b:a ${b_acodec}" p_conversion="-s ${rel_size} -c:v ${vcodec} -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,subtitles=\"${2}.srt\"${profile_codec}-pix_fmt yuv420p -b:v ${b_vcodec} -c:a ${acodec} -b:a ${b_acodec}"
echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\"" echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\""
@ -464,7 +464,7 @@ else
echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} -vf subtitles=\"${2}.srt\" ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\"" echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} -vf subtitles=\"${2}.srt\" ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\""
fi fi
else else
echo " # Convert the file '${1}' to AV1 Codec" echo " # Convert the file '${1}' to AV1 codec"
if [ ! -z "${hevc_hdr}" ] ; then if [ ! -z "${hevc_hdr}" ] ; then
p_conversion="-s ${rel_size} -c:v ${vcodec} -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,subtitles=\"${2}.srt\"${profile_codec}-pix_fmt yuv420p -b:v ${b_vcodec} -c:a ${acodec} -b:a ${b_acodec}" p_conversion="-s ${rel_size} -c:v ${vcodec} -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,subtitles=\"${2}.srt\"${profile_codec}-pix_fmt yuv420p -b:v ${b_vcodec} -c:a ${acodec} -b:a ${b_acodec}"
echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" \"${2}.${v_ext}\"" echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" \"${2}.${v_ext}\""
@ -474,10 +474,10 @@ else
fi fi
else else
if [ "${patch_thread}" == "y" ] ; then if [ "${patch_thread}" == "y" ] ; then
echo " # Convert the file '${1}' to AV1 Codec" echo " # Convert the file '${1}' to AV1 codec"
echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\"" echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" ${p_ffmpeg_patched} \"${2}.${v_ext}\""
else else
echo " # Convert the file '${1}' to AV1 Codec" echo " # Convert the file '${1}' to AV1 codec"
echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" \"${2}.${v_ext}\"" echo " ${p_ffmpeg} \"${1}\" ${f_conversion} -map ${video_track} -map ${audio_track} ${p_conversion} ${stereo_params} -metadata title=\"${name_title}\" -metadata date=\"${year_file}\" -metadata genre=\"${genre_file}\" -metadata:s:v:0 title=\"${name_title}\" -metadata:s:a:0 title=\"${acodec} Stereo Audio (${b_acodec})\" \"${2}.${v_ext}\""
fi fi
fi fi

View File

@ -2,12 +2,12 @@
################################################################################## ##################################################################################
# ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) # # ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) #
# Date: 10-03-2023 # # Date: 12-03-2023 #
# Author: q3aql # # Author: q3aql #
# Contact: q3aql@duck.com # # Contact: q3aql@duck.com #
################################################################################## ##################################################################################
VERSION="8.5-dev" VERSION="8.5-dev"
M_DATE="100323" M_DATE="120323"
# Variables # Variables
tempFile="/tmp/ks-av1s-folder.txt" tempFile="/tmp/ks-av1s-folder.txt"
@ -58,7 +58,7 @@ if [ -z "${1}" ] ; then
echo "" echo ""
echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})" echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})"
echo "" echo ""
echo "- Convert videos from folder to MP4 format (Series)" echo "- Convert videos from folder to AV1 codec (Series)"
echo "" echo ""
echo "+ Syntax: " echo "+ Syntax: "
echo "" echo ""
@ -93,7 +93,7 @@ clear
echo "" echo ""
echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})" echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})"
echo "" echo ""
echo "- Convert videos from folder to MP4 format (Series)" echo "- Convert videos from folder to AV1 codec (Series)"
echo "" echo ""
echo -n "* Scanning ${1} " echo -n "* Scanning ${1} "
echo "" echo ""