Change title text
This commit is contained in:
parent
1986d7ff94
commit
f5f32b9208
26
src/ks-av1s
26
src/ks-av1s
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
###################################################################
|
||||
# ks-av1s (ks-tools) - Convert video to AV1 Codec format (Series) #
|
||||
# Date: 10-03-2023 #
|
||||
# Author: q3aql #
|
||||
# Contact: q3aql@duck.com #
|
||||
###################################################################
|
||||
############################################################
|
||||
# ks-av1s (ks-tools) - Convert video to AV1 codec (Series) #
|
||||
# Date: 12-03-2023 #
|
||||
# Author: q3aql #
|
||||
# Contact: q3aql@duck.com #
|
||||
############################################################
|
||||
VERSION="8.5-dev"
|
||||
M_DATE="100323"
|
||||
M_DATE="120323"
|
||||
|
||||
# Detect version ffmpeg for old releases
|
||||
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 "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})"
|
||||
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 "+ Config: ${configFile}"
|
||||
echo ""
|
||||
|
@ -266,7 +266,7 @@ if [ -z "${2}" ] ; then
|
|||
echo ""
|
||||
echo "* ks-av1s (ks-tools) v${VERSION} (${M_DATE})"
|
||||
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 "+ Config:"
|
||||
echo ""
|
||||
|
@ -456,7 +456,7 @@ else
|
|||
echo " ${p_ffmpeg} \"${1}\" -map ${subtitle_track} \"${2}.srt\""
|
||||
echo ""
|
||||
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
|
||||
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}\""
|
||||
|
@ -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}\""
|
||||
fi
|
||||
else
|
||||
echo " # Convert the file '${1}' to AV1 Codec"
|
||||
echo " # Convert the file '${1}' to AV1 codec"
|
||||
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}"
|
||||
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
|
||||
else
|
||||
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}\""
|
||||
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}\""
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
##################################################################################
|
||||
# ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) #
|
||||
# Date: 10-03-2023 #
|
||||
# Date: 12-03-2023 #
|
||||
# Author: q3aql #
|
||||
# Contact: q3aql@duck.com #
|
||||
##################################################################################
|
||||
VERSION="8.5-dev"
|
||||
M_DATE="100323"
|
||||
M_DATE="120323"
|
||||
|
||||
# Variables
|
||||
tempFile="/tmp/ks-av1s-folder.txt"
|
||||
|
@ -58,7 +58,7 @@ if [ -z "${1}" ] ; then
|
|||
echo ""
|
||||
echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})"
|
||||
echo ""
|
||||
echo "- Convert videos from folder to MP4 format (Series)"
|
||||
echo "- Convert videos from folder to AV1 codec (Series)"
|
||||
echo ""
|
||||
echo "+ Syntax: "
|
||||
echo ""
|
||||
|
@ -93,7 +93,7 @@ clear
|
|||
echo ""
|
||||
echo "* ks-av1s-folder (ks-tools) v${VERSION} (${M_DATE})"
|
||||
echo ""
|
||||
echo "- Convert videos from folder to MP4 format (Series)"
|
||||
echo "- Convert videos from folder to AV1 codec (Series)"
|
||||
echo ""
|
||||
echo -n "* Scanning ${1} "
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user