|
@ -21,9 +21,11 @@ function encode { |
|
|
local outFL=$2 |
|
|
local outFL=$2 |
|
|
$FFBIN/ffmpeg -hide_banner -loglevel error -stats -re -i "$tmpFL" -map 0 \ |
|
|
$FFBIN/ffmpeg -hide_banner -loglevel error -stats -re -i "$tmpFL" -map 0 \ |
|
|
-map_metadata 0 -c copy \ |
|
|
-map_metadata 0 -c copy \ |
|
|
-c:v libx265 -preset slow -x265-params crf=23 \ |
|
|
|
|
|
|
|
|
-c:v libsvtav1 -crf 28 -g 240 -preset 6 -svtav1-params \ |
|
|
|
|
|
"enable-overlays=1:\ |
|
|
|
|
|
tune=0" \ |
|
|
-use_wallclock_as_timestamps 1 \ |
|
|
-use_wallclock_as_timestamps 1 \ |
|
|
-map_chapters 0 -max_muxing_queue_size 9999 "$outFL" |
|
|
|
|
|
|
|
|
-map_chapters 0 -max_muxing_queue_size 9999 -y "$outFL" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function burnSubs { |
|
|
function burnSubs { |
|
@ -38,9 +40,10 @@ function burnSubs { |
|
|
|
|
|
|
|
|
$FFBIN/ffmpeg -hide_banner -loglevel error -stats -i "$inFL" \ |
|
|
$FFBIN/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]" \ |
|
|
|
|
|
-filter_complex_threads 1 \ |
|
|
-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 \ |
|
|
|
|
|
-t $DURATION "$tmpFL" |
|
|
|
|
|
|
|
|
-map_metadata 0 -map_chapters 0 -max_muxing_queue_size 4096 \ |
|
|
|
|
|
-t $DURATION -threads 1 -y "$tmpFL" |
|
|
|
|
|
|
|
|
rm "$inFL" #SAVE SPACE |
|
|
rm "$inFL" #SAVE SPACE |
|
|
|
|
|
|
|
|