This commit is contained in:
Nick Leffler 2020-03-03 10:07:18 -05:00
parent 39e99025c4
commit d68630a6c7
3 changed files with 22 additions and 2 deletions

View File

@ -3,5 +3,20 @@
mydir1="${0%/*}"
source "${mydir1}/info.inc"
in1="${1%/}" # takes input and strips last slash /
show=$(basename "${in1}")
date22=$(date +'%Y%m%d_%H%M%S')
logdir="${loglocation}/${date22}/"
tempshow="${temp}/${show}"
IFS=$'\n' # make newlines the only separator
h265ize -n en -v --stats -d "/data2/temp/TV/h265/" "/rclone/gdrive/nicks.tv/TV Shows II/N/NCIS/Season 01"
mkdir -p "${logdir}"
cd "${logdir}" || exit
mkdir -p "${tempshow}"
for f in "${in1}/Season "*/; do
season=$(basename "${f}")
# printf " log $logdir \n in2 $in2 \n f $f \n temp $temp \n"
h265ize -n en -v --stats -d "${tempshow}" "${f}" || exit
rclone move -v "${tempshow}/${season}/" "${rclonedest}/${show}/${season}/"
done

1
h265ize.csv Normal file
View File

@ -0,0 +1 @@
Encoded Date,Filename,Original Size,New Size,Percentage,Duration of Encode
1 Encoded Date Filename Original Size New Size Percentage Duration of Encode

View File

@ -1 +1,5 @@
dest="/h265/TV Shows/"
Just copy this to info.inc and make the required changes
temp="/data2/temp/h265"
rclonedest="name:/location"
loglocation="/var/log/h265ize"