From 028b3c8387a625a5fd0673b8c18d716f166eb9ff Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 11 Oct 2023 14:50:58 +0300 Subject: [PATCH] enable cache-on-disk, because large media can make cache overflow in RAM and can't load more than 30-60 mins --- peertube-cli.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peertube-cli.sh b/peertube-cli.sh index 8f3b9af..ae61e46 100755 --- a/peertube-cli.sh +++ b/peertube-cli.sh @@ -7,7 +7,8 @@ torrent_enabled=$(jj -i $workdir/config.json torrent_enabled) rpcport=9095 instance_hist="$workdir/instance.hist" ordering='title' -default_player_command='mpv --hwdec --network-timeout=30 --profile=low-latency' +tempvideostor=$(mktemp -d) +default_player_command="mpv --hwdec --network-timeout=30 --profile=low-latency --cache=yes --cache-on-disk=yes --cache-dir=$tempvideostor --cache-unlink-files=immediate" mkdir -p $workdir if [ ! -f "$workdir/config.json" ]; then