From 7d5755180a9098c30f4de95463c26c995a258d89 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Mon, 10 Aug 2026 01:43:28 -0400 Subject: [PATCH] fix(videos): set explicit 4Mbps bitrate for hw encode Default h264_v4l2m2m bitrate was ~200kbps producing unusable quality. 4M video + 128k audio = ~100MB per 3-min clip, proper dashcam quality. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- modules/app_video.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/app_video.py b/modules/app_video.py index 7b6a3e0..e78d570 100644 --- a/modules/app_video.py +++ b/modules/app_video.py @@ -62,7 +62,9 @@ def _convert_bg(relative_path): "ffmpeg", "-nostdin", "-loglevel", "error", "-y", "-i", source_path, "-c:v", "h264_v4l2m2m", + "-b:v", "4M", # 4 Mbps — good quality, ~100MB per 3-min clip "-c:a", "aac", + "-b:a", "128k", "-movflags", "faststart", "-f", "mp4", tmp_path,