Prevent ffmpeg pipe probe deadlock

This commit is contained in:
Victor Kuznetsov
2026-07-31 12:05:42 -07:00
parent f9a4e2ba10
commit 1fd859b58d
4 changed files with 49 additions and 4 deletions
+5
View File
@@ -149,6 +149,11 @@ regeneration. It centralizes container codecs, optional audio stream copying,
metadata/chapter policy, encode-failure reporting, and atomic same-directory
publication. Each mapped stream is allowed to reach its own end, so a copied
audio tail is not shortened to the frame-input duration.
Both the raw-BGR and timestamped-NUT stdin inputs disable ffmpeg probing before
`pipe:0`: their format is already explicit, and ffmpeg 6 on Linux can otherwise
wait for its normal analysis window while the producer blocks on a full pipe
before the source-audio input opens. Command-order regressions cover both stdin
modes; the real Linux full-clip CI job guards process completion.
`probe_video_encode_profile` reads the first source video stream with ffprobe
and preserves the supported properties that survive the 8-bit BGR boundary:
`yuv420p`/`yuv422p`/`yuv444p` chroma sampling, recognized color tags, encoder