From 82ff72cb45cf928892e00033b5b6d4dc3eaaf8e1 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 15 Aug 2023 21:12:21 +0200 Subject: [PATCH] cutvid: add preset --- .config/zsh/functions/cutvid | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/zsh/functions/cutvid b/.config/zsh/functions/cutvid index 63f1741..e83e559 100755 --- a/.config/zsh/functions/cutvid +++ b/.config/zsh/functions/cutvid @@ -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}