Browse Source

increase perc. for burning; updated scp no longer needs as many escapes

master
rbeck4 2 years ago
parent
commit
265531cb31
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      transcode.sh

+ 4
- 3
transcode.sh View File

@ -183,12 +183,12 @@ do
currFrames=$( ffprobe -loglevel error -select_streams s:$SUBTITLEINDEX \ currFrames=$( ffprobe -loglevel error -select_streams s:$SUBTITLEINDEX \
-show_entries stream_tags=NUMBER_OF_FRAMES-eng -of csv=p=0 \ -show_entries stream_tags=NUMBER_OF_FRAMES-eng -of csv=p=0 \
"$tmpDIR/$fileNAME") "$tmpDIR/$fileNAME")
if [ $( echo "($currFrames / $maxFrames) < 0.15"|bc -l ) -gt 0 ]
if [ $( echo "($currFrames / $maxFrames) < 0.25"|bc -l ) -gt 0 ]
then then
echo "BURNING STREAM $SUBTITLEINDEX (STREAM $minINDEX) from $fileNAME" echo "BURNING STREAM $SUBTITLEINDEX (STREAM $minINDEX) from $fileNAME"
burnSubs "$tmpDIR/$fileNAME" "$tmpDIR/TMP$fileNAME" "$workDIR/$fileNAME" $SUBTITLEINDEX burnSubs "$tmpDIR/$fileNAME" "$tmpDIR/TMP$fileNAME" "$workDIR/$fileNAME" $SUBTITLEINDEX
else 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" encode "$tmpDIR/$fileNAME" "$workDIR/$fileNAME"
fi fi
@ -226,7 +226,8 @@ do
#UPLOAD AND REMOVE THE TRANSCODED FILE #UPLOAD AND REMOVE THE TRANSCODED FILE
if [ $( echo "$HostName"|tr [a-z] [A-Z] ) != "LOCALHOST" ] if [ $( echo "$HostName"|tr [a-z] [A-Z] ) != "LOCALHOST" ]
then 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 else
rsync -a --progress "$workDIR/$fileNAME" "$filePATH" rsync -a --progress "$workDIR/$fileNAME" "$filePATH"
fi fi

Loading…
Cancel
Save