cutvid: add preset
This commit is contained in:
parent
5235f1d7fc
commit
82ff72cb45
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user