From 083c6d2dea54fbb73a2de8c8a9a01759922281c1 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Sat, 26 Sep 2020 14:47:40 +0400 Subject: [PATCH] Added crf binding to result video. Signed-off-by: Pavel Kirilin <win10@list.ru> --- assets/scripts/playerctl_loader.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/scripts/playerctl_loader.sh b/assets/scripts/playerctl_loader.sh index 13b955f..416e910 100644 --- a/assets/scripts/playerctl_loader.sh +++ b/assets/scripts/playerctl_loader.sh @@ -23,7 +23,8 @@ function cleanup_and_exit() { if [[ "$job_started" = "1" ]];then rm -fv "current.mp3" "bg.png" "cover.jpg" "cover.png" find . -name '*.mp4' -exec basename {} \; | sort --numeric-sort | xargs -I {} echo "file '{}'" > concat - ffmpeg -f concat -i concat -c copy "compiled-$((compiled_index + 1)).mp4" + ffmpeg -f concat -i concat -c copy conc.mp4 + ffmpeg -i conc.mp4 -crf 23 "compiled-$((compiled_index + 1)).mp4" rm -fv "concat" popd || exit find "$workdir" -maxdepth 1 -name "compiled*" -print0 | xargs -I '{}' mv -v '{}' "$res_dir" -- GitLab