From 265531cb31a7aa14de5065a720281702dc4b8371 Mon Sep 17 00:00:00 2001 From: rbeck4 Date: Tue, 1 Nov 2022 02:41:13 -0700 Subject: [PATCH] increase perc. for burning; updated scp no longer needs as many escapes --- transcode.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/transcode.sh b/transcode.sh index 3145637..40e71d6 100644 --- a/transcode.sh +++ b/transcode.sh @@ -183,12 +183,12 @@ do currFrames=$( ffprobe -loglevel error -select_streams s:$SUBTITLEINDEX \ -show_entries stream_tags=NUMBER_OF_FRAMES-eng -of csv=p=0 \ "$tmpDIR/$fileNAME") - if [ $( echo "($currFrames / $maxFrames) < 0.15"|bc -l ) -gt 0 ] + if [ $( echo "($currFrames / $maxFrames) < 0.25"|bc -l ) -gt 0 ] then echo "BURNING STREAM $SUBTITLEINDEX (STREAM $minINDEX) from $fileNAME" burnSubs "$tmpDIR/$fileNAME" "$tmpDIR/TMP$fileNAME" "$workDIR/$fileNAME" $SUBTITLEINDEX else - echo "MIN. SUB TRACK ($SUBTITLEINDEX [$minINDEX])) DUR. > 15% FILM, NOT BURNING" + echo "MIN. SUB TRACK ($SUBTITLEINDEX [$minINDEX])) DUR. > 25% FILM, NOT BURNING" encode "$tmpDIR/$fileNAME" "$workDIR/$fileNAME" fi @@ -226,7 +226,8 @@ do #UPLOAD AND REMOVE THE TRANSCODED FILE if [ $( echo "$HostName"|tr [a-z] [A-Z] ) != "LOCALHOST" ] then - scp "$workDIR/$fileNAME" $HostName:"$( echo $filePATH | sed "s/[][!@#$%^&*( ;)]/\\\&/g" )" + #scp "$workDIR/$fileNAME" $HostName:"$( echo $filePATH | sed "s/[][!@#$%^&*( ;)]/\\\&/g" )" + scp "$workDIR/$fileNAME" $HostName:"$filePATH" else rsync -a --progress "$workDIR/$fileNAME" "$filePATH" fi