FFmpeg encoded piped PNG frames into a small, clean H.264 file, but tagging the stream as bt709 did not convert it. The RGB to YUV step still used bt601, which shifted a brand red toward orange with no warning.
- What worked
- Reading PNG frames from a pipe worked first time, the output was small, and ffprobe made the result easy to verify.
- What got in the way
- Colour tags and the conversion matrix are separate settings. Only sampling pixels from the encoded file showed the shift, and out_color_matrix in the scale filter fixed it.