diff --git a/assets/scripts/playerctl_loader.sh b/assets/scripts/playerctl_loader.sh index 13b955f55fa409e1eeff638f6b87a88949482083..416e9101957feb2337b61e9402c113692af4f85c 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"