From f23a215a1098ff0d2acf247465aa673bac35c440 Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 20 Feb 2023 18:38:07 +0100 Subject: [PATCH] Fix subtitle error of last commit --- src/ks-avi | 2 +- src/ks-mp4 | 2 +- src/ks-mp4k | 2 +- src/ks-mp4s | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ks-avi b/src/ks-avi index 4a651e9..34c2f3e 100755 --- a/src/ks-avi +++ b/src/ks-avi @@ -479,7 +479,7 @@ else exit else if [ "${subtitles_y_n}" == "y" ] ; then - echo ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" + ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" if [ "${patch_thread}" == "y" ] ; then if [ ! -z "${hevc_hdr}" ] ; then ${p_ffmpeg} "${1}" ${f_conversion} -map ${video_track} -map ${audio_track} -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" -pix_fmt yuv420p -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec} -b:a ${b_acodec} ${stereo_params} -metadata title="${name_title} (${year_file})" -metadata date="${year_file}" -metadata genre="${genre_file}" -metadata:s:v:0 title="${name_title} (${year_file})" -metadata:s:a:0 title="${acodec} Stereo Audio (${b_acodec})" ${p_ffmpeg_patched} "${2}.${v_ext}" diff --git a/src/ks-mp4 b/src/ks-mp4 index cc1d6ad..eb93dec 100755 --- a/src/ks-mp4 +++ b/src/ks-mp4 @@ -483,7 +483,7 @@ else exit else if [ "${subtitles_y_n}" == "y" ] ; then - echo ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" + ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" if [ "${patch_thread}" == "y" ] ; then if [ ! -z "${hevc_hdr}" ] ; then ${p_ffmpeg} "${1}" ${f_conversion} -map ${video_track} -map ${audio_track} -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:v high -pix_fmt yuv420p -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec} -b:a ${b_acodec} ${stereo_params} -metadata title="${name_title} (${year_file})" -metadata date="${year_file}" -metadata genre="${genre_file}" -metadata:s:v:0 title="${name_title} (${year_file})" -metadata:s:a:0 title="${acodec} Stereo Audio (${b_acodec})" ${p_ffmpeg_patched} "${2}.${v_ext}" diff --git a/src/ks-mp4k b/src/ks-mp4k index d4fa62f..9af5aa7 100755 --- a/src/ks-mp4k +++ b/src/ks-mp4k @@ -483,7 +483,7 @@ else exit else if [ "${subtitles_y_n}" == "y" ] ; then - echo ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" + ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" if [ "${patch_thread}" == "y" ] ; then if [ ! -z "${hevc_hdr}" ] ; then ${p_ffmpeg} "${1}" ${f_conversion} -map ${video_track} -map ${audio_track} -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:v high -pix_fmt yuv420p -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec} -b:a ${b_acodec} ${stereo_params} -metadata title="${name_title} (${year_file})" -metadata date="${year_file}" -metadata genre="${genre_file}" -metadata:s:v:0 title="${name_title} (${year_file})" -metadata:s:a:0 title="${acodec} Stereo Audio (${b_acodec})" ${p_ffmpeg_patched} "${2}.${v_ext}" diff --git a/src/ks-mp4s b/src/ks-mp4s index 4275d1c..048e279 100755 --- a/src/ks-mp4s +++ b/src/ks-mp4s @@ -483,7 +483,7 @@ else exit else if [ "${subtitles_y_n}" == "y" ] ; then - echo ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" + ${p_ffmpeg} "${1}" -map ${subtitle_track} "${2}.srt" if [ "${patch_thread}" == "y" ] ; then if [ ! -z "${hevc_hdr}" ] ; then ${p_ffmpeg} "${1}" ${f_conversion} -map ${video_track} -map ${audio_track} -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:v high -pix_fmt yuv420p -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec} -b:a ${b_acodec} ${stereo_params} -metadata title="${name_title} (${year_file})" -metadata date="${year_file}" -metadata genre="${genre_file}" -metadata:s:v:0 title="${name_title} (${year_file})" -metadata:s:a:0 title="${acodec} Stereo Audio (${b_acodec})" ${p_ffmpeg_patched} "${2}.${v_ext}"