Input-Selector videorate interaction brief freeze
Describe your issue
Seeing a video freeze on the output of input-selector if a videorate element is present downstream to input-selector. Setup:
Live H264 -> h264decode ->
Input-Selector -> videorate -> h264encode
Live H264 -> h264decode ->
In this setup, the output of Input-Selector freezes for roughly 800ms and sometimes longer before all the frames catch up. On a closer look, the gst_pad_push from input-selector takes this long. And it only happens when a videorate element is present in the downstream pipeline. Removing the videorate element, this problem goes away but the output of the input-selector doesn't have desired frame rate. The other option is to use libgstvideorate.so from an older release.
Expected Behavior
Input-Selector should not freeze on switching sink pads.
Observed Behavior
Input-Selector is freezing for roughly a second before it outputs a buffer after a switch.
Setup
- Ubuntu 22.04
- Computer
- GST Version: 1.22.5 (also happens in 1.22.x)
Steps to reproduce the bug
As described above
How reproducible is the bug?
Always
Screenshots if relevant
Solutions you have tried
Using libgstvideorate.so
from 1.19.3 version instead of the one that comes with 1.22.5
fixes this issue.