From d89cf7610b86f251a5cf1254af1e186c9de559ca Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 18 Apr 2023 11:45:55 +0200 Subject: [PATCH] Specify codec and bitrate Signed-off-by: Knut Ahlers --- bin/x11grab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/x11grab b/bin/x11grab index 55e198a..d5fb5ed 100755 --- a/bin/x11grab +++ b/bin/x11grab @@ -14,4 +14,4 @@ G=$(echo "${slopout}" | cut -d ' ' -f 5) outfile="/tmp/$(date +%Y-%m-%d_%H-%M-%S).mp4" step "Initiating capture of ${G} to ${outfile}, Ctrl+C to stop..." -exec ffmpeg -video_size ${W}x${H} -framerate 30 -f x11grab -i :0.0+${X},${Y} "${outfile}" +exec ffmpeg -video_size ${W}x${H} -framerate 30 -f x11grab -i :0.0+${X},${Y} -c:v h264_nvenc -b:v 5000k "${outfile}"