


The problem is that I observe significant delays, that seem to depend on the frame rate I use.įor example, running it locally, I get around 160ms delay when running at 30fps, and around 30ms when encoding at 90fps. More precisely, I have a thread that encodes an opengl framebuffer at a fixed frame rate, the resulting AVPacket's data (I encode using ffmpeg's C api) is then forwarded via WebRTC to the client (using aiortc) I am trying to send a video stream encoded with h264 (hardware accelerated with nvidia encoder) via WebRTC for low latency display on a browser.
