1
0
Fork 0

cutvid: add preset

This commit is contained in:
tastytea 2023-08-15 21:12:21 +02:00
parent 5235f1d7fc
commit 82ff72cb45
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ local subnumber=0
local subtitle_options=(-codec:s copy)
local compat_options=(-pix_fmt yuv420p) # Android doesn't like yuv420p10le
# extract subtitles
if [[ ${#o_hardcode_subs} -ne 0 ]]; then
local tmpass=$(mktemp --suffix='.cutvid.ass')
ffmpeg -i ${input} -map 0:s:${subnumber} -y ${tmpass}
@ -52,6 +53,7 @@ fi
ffmpeg -i ${input} \
-ss ${from} -to ${to} \
-codec:v ${vencoder} -codec:a ${aencoder} ${subtitle_options} \
-preset slower \
${compat_options} ${ffmpeg_options} ${output}
[[ ${#o_hardcode_subs} -ne 0 ]] && rm --verbose ${tmpass}