I'm also curious on how to tune the h264 decoder, I run the WyzeCam app on a RPI 3b+ and it seems that unless 360p video is selected, the stream starts losing frames. There are a number of performance attributes which can be tried but I'm not sure where to apply them.
12-02 05:15:16.171 4500 4819 D h264decoder: Reinit context to 640x368, pix_fmt: yuv420p
If you try to go any higher than 360p you start seeing frame loss:
12-02 05:04:31.314 4500 4684 D h264decoder: Reinit context to 1920x1088, pix_fmt: yuv420p
12-02 05:05:15.115 4500 4684 D h264decoder: Frame num gap 3 1
12-02 05:05:15.146 4500 4684 D h264decoder: Increasing reorder buffer to 1
12-02 05:05:15.146 4500 4684 D h264decoder: no picture
12-02 05:05:17.118 4500 4684 D h264decoder: Frame num gap 3 1
12-02 05:05:17.250 4500 4684 D h264decoder: Frame num gap 6 4
12-02 05:05:19.352 4500 4684 D h264decoder: Frame num gap 7 5
12-02 05:05:21.042 4500 4684 D h264decoder: Frame num gap 2 0
12-02 05:05:23.126 4500 4684 D h264decoder: Frame num gap 3 1
12-02 05:05:23.325 4500 4684 D h264decoder: Frame num gap 7 5