fix: pipeline hw — supprime video-bitrate/extra-controls invalides sur v4l2h264enc

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 18:18:40 +02:00
parent ad8a8e81a7
commit 920e0a9871
2 changed files with 5 additions and 6 deletions

View File

@ -117,13 +117,11 @@ def _build_pipeline(cfg: dict, encoder: str) -> str:
sink = f"rtph264pay config-interval=1 pt=96 ! queue ! udpsink host={host} port={port}"
if encoder == "hw":
bitrate_bps = cfg["bitrate_kbps"] * 1000
return (
f"libcamerasrc ! "
f"video/x-raw,width={w},height={h},format=NV12,framerate={fps}/1 ! "
f"v4l2convert ! "
f"v4l2h264enc video-bitrate={bitrate_bps} "
f'extra-controls="controls,repeat_sequence_header=1" ! '
f"v4l2h264enc ! "
f"video/x-h264,level=(string){level} ! "
f"h264parse ! "
f"{sink}"