From c0348e65eb2bed84079d89d4bdd85ff10054ad8f Mon Sep 17 00:00:00 2001 From: Micha Albert Date: Tue, 25 Feb 2025 17:48:39 -0500 Subject: [PATCH] Update user_run.sh --- live-stream/user_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-stream/user_run.sh b/live-stream/user_run.sh index dfa4594..2e85edd 100755 --- a/live-stream/user_run.sh +++ b/live-stream/user_run.sh @@ -24,7 +24,7 @@ bash -c "DISPLAY=:99 xvfb-run \ sleep 3 -until bash -c "DISPLAY=:99 ffmpeg -xerror -f x11grab -r 30 -s 1920x1080 -draw_mouse 0 -i :99.0 -f pulse -ac 2 -i default -vcodec libx264 -preset faster -b:v 6000k -bufsize 12000k -framerate 30 -g 60 -pix_fmt yuv420p -acodec aac -f fifo -fifo_format flv -map 0:v -map 1:a -flvflags no_duration_filesize -drop_pkts_on_overflow 1 -attempt_recovery 1 -recovery_wait_time 1 rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)"; do +until bash -c "DISPLAY=:99 ffmpeg -xerror -f x11grab -r 30 -s 1920x1080 -draw_mouse 0 -i :99.0 -f pulse -ac 2 -i default -vcodec libx264 -preset veryfast -tune zerolatency -b:v 6000k -bufsize 12000k -framerate 30 -g 60 -pix_fmt yuv420p -acodec aac -f fifo -fifo_format flv -map 0:v -map 1:a -flvflags no_duration_filesize -drop_pkts_on_overflow 1 -attempt_recovery 1 -recovery_wait_time 1 rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)"; do echo "Restarting FFmpeg..." sleep 1 done