From ce0808bb9b6c8ee322871445ccff1e8f81524751 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Tue, 19 May 2020 20:52:13 +0400
Subject: [PATCH] Output format changed to webm VP9-opus.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 assets/scripts/playerctl_loader.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/assets/scripts/playerctl_loader.sh b/assets/scripts/playerctl_loader.sh
index 3a9b340..f041d7a 100644
--- a/assets/scripts/playerctl_loader.sh
+++ b/assets/scripts/playerctl_loader.sh
@@ -49,14 +49,14 @@ while [[ "$(playerctl status)" = "Playing" ]];do
 
   ffmpeg -r 1 -loop 1 -i "bg.png" -i "current.mp3" \
     -map 0:v -map 1:a \
-    -c:v libx264 -crf 23 -g 60 \
-    -c:a aac \
+    -c:v vp9 -crf 23 -g 60 \
+    -c:a opus \
     -vf "scale=-1:720,pad=ceil(iw/2)*2:ceil(ih/2)*2" \
     -maxrate 2M -bufsize 2M \
     -preset ultrafast -pix_fmt yuv420p \
-    -framerate 30 -probesize 42M \
-    -movflags faststart \
-    -shortest -y -strict -2 "${index}.mp4"
+    -framerate 30 \
+    -movflags +faststart \
+    -shortest -y -strict -2 "${index}.webm"
 
   index=$((index + 1))
   if ! (playerctl next);then
-- 
GitLab