Ok I did a bit more debugging, turns out there's another warning with the right periodicity:
[134300:137112:0322/122902.927:WARNING:frame_buffer2.cc(421)] Frame 6 inserted after frame 127 was handed off for decoding, dropping frame.
[134300:137112:0322/122902.961:WARNING:frame_buffer2.cc(421)] Frame 7 inserted after frame 127 was handed off for decoding, dropping frame.
[134300:137112:0322/122902.995:WARNING:frame_buffer2.cc(416)] A jump in frame id was detected, clearing buffer.
If I set picture-id-mode=7-bit on gstreamer, I can reproduce the issue. Is webrtc not handling picture id's correctly? In particular, it seems that:
and when a smaller picture id is placed in that field, it will drop the buffer size of frames?
Although this is my first exposure to the webrtc codebase so apologies if it is not that simple :)