From 7fed50544c27a6ef57dcf1d6fb30da39f5037021 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Tue, 22 Sep 2020 13:56:18 +0400
Subject: [PATCH] Updated Makefile. Description: - Optimized constant rate
 factor. This will optimie resulting video   size.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f787392..934ec51 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,8 @@ load_youtube_video:
 
 concat:
 	@echo "Concatenating videos"
-	@sh ${ASSETS_DIR}/scripts/concatenator.sh $(shell fd target out) ${OUT_DIR}ending.mp4 ${OUT_DIR}final.mp4
+	@sh ${ASSETS_DIR}/scripts/concatenator.sh $(shell fd target out) ${OUT_DIR}ending.mp4 ${OUT_DIR}prefinal.mp4
+	@ffmpeg -i ${OUT_DIR}prefinal.mp4 -crf 23 ${OUT_DIR}final.mp4
 	@echo "Video compiled. See ${OUT_DIR}/final.mp4"
 
 preview:
-- 
GitLab