Im using FFMPEG to encode in H264 a real-time capturing video at 60 fps. I'd like to encode it at zero latency, but also at a constant bit rate. I've tried to follow recommendations I've seen about the configuration to use to achieve a constant bitrate and, while some of them manage to make the encoder output the average bitrate I wanted, there are constant spikes above and below that go way too far from the bitrate I'd like.
Solutions I've read about getting a more strict bitrate mention using lookahead or buffering, but this would add an undesired latency.
What configuration should I follow to achieve a real strict constant bit rate at zero latency? Should I use other encoders such as x264 directly or nvenc? I'm not sure if this would be possible at zero latency.