|
@ -9,7 +9,7 @@ |
|
|
#to pray to St. Isidore... good luck if you encounter issues. |
|
|
#to pray to St. Isidore... good luck if you encounter issues. |
|
|
|
|
|
|
|
|
#Default operations, change if necessary |
|
|
#Default operations, change if necessary |
|
|
HostName="Clementine" #if localhost then will do locally (removes ssh/scp cmds) |
|
|
|
|
|
|
|
|
HostName="localhost" #if localhost then will do locally (removes ssh/scp cmds) |
|
|
hostFile="/tmp/transcode/list.txt" |
|
|
hostFile="/tmp/transcode/list.txt" |
|
|
tmpDIR="$PWD/tmpTranscode" |
|
|
tmpDIR="$PWD/tmpTranscode" |
|
|
workDIR="$PWD/transcode" |
|
|
workDIR="$PWD/transcode" |
|
@ -30,20 +30,20 @@ function burnSubs { |
|
|
local tmpFL=$2 |
|
|
local tmpFL=$2 |
|
|
local outFL=$3 |
|
|
local outFL=$3 |
|
|
local track=$4 |
|
|
local track=$4 |
|
|
|
|
|
|
|
|
encode "$inFL" "$tmpFL" |
|
|
|
|
|
|
|
|
|
|
|
rm "$inFL" #SAVE SPACE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#EVIDTNELY NECESSARY SO THAT FILES AREN'T 198+ HRS IN LEN. AT THE END |
|
|
#EVIDTNELY NECESSARY SO THAT FILES AREN'T 198+ HRS IN LEN. AT THE END |
|
|
local DURATION=$( ffprobe -loglevel error -show_entries format=duration \ |
|
|
local DURATION=$( ffprobe -loglevel error -show_entries format=duration \ |
|
|
-of default=noprint_wrappers=1:nokey=1 "$tmpFL" ) |
|
|
|
|
|
|
|
|
-of default=noprint_wrappers=1:nokey=1 "$inFL" ) |
|
|
|
|
|
|
|
|
ffmpeg -hide_banner -loglevel error -stats -i "$tmpFL" \ |
|
|
|
|
|
|
|
|
ffmpeg -hide_banner -loglevel error -stats -i "$inFL" \ |
|
|
-filter_complex "[0:v][0:s:$track]overlay[v]" -map "[v]" \ |
|
|
-filter_complex "[0:v][0:s:$track]overlay[v]" -map "[v]" \ |
|
|
-map 0:a -c:a copy -map 0:s -map -0:s:$track -c:s copy \ |
|
|
-map 0:a -c:a copy -map 0:s -map -0:s:$track -c:s copy \ |
|
|
-map_metadata 0 -map_chapters 0 -max_muxing_queue_size 9999 \ |
|
|
-map_metadata 0 -map_chapters 0 -max_muxing_queue_size 9999 \ |
|
|
-t $DURATION "$outFL" |
|
|
|
|
|
|
|
|
-t $DURATION "$tmpFL" |
|
|
|
|
|
|
|
|
|
|
|
rm "$inFL" #SAVE SPACE |
|
|
|
|
|
|
|
|
|
|
|
encode "$tmpFL" "$outFL" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#MAIN FUNCTION BEGINS |
|
|
#MAIN FUNCTION BEGINS |
|
|