perf: ALSA ffmpeg low-delay flags

nobuffer, low_delay, and a small thread_queue_size on the camera
mic capture process.
This commit is contained in:
root
2026-08-28 06:19:44 +00:00
parent b02138669a
commit 36c4bbc956
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -179,6 +179,8 @@ def main() -> int:
aproc = subprocess.Popen(
["ffmpeg", "-hide_banner", "-loglevel", "error",
"-fflags", "nobuffer", "-flags", "low_delay",
"-thread_queue_size", "64",
"-f", "alsa", "-i", f"hw:{audio_card},0",
"-ar", str(args.audio_rate), "-ac", "2",
"-f", "s16le", "pipe:1"],