doneish
This commit is contained in:
parent
39e99025c4
commit
d68630a6c7
17
convert.sh
17
convert.sh
@ -3,5 +3,20 @@
|
|||||||
|
|
||||||
mydir1="${0%/*}"
|
mydir1="${0%/*}"
|
||||||
source "${mydir1}/info.inc"
|
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
1
h265ize.csv
Normal file
@ -0,0 +1 @@
|
|||||||
|
Encoded Date,Filename,Original Size,New Size,Percentage,Duration of Encode
|
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user