Hi,
Please add prob callback in source pad of nvstreamdemux and check PTS value such as
If you don’t see expect 100ms interval, please overwrite it to get expected framerate. We have issues about timetamps and it may take some time to have a solution. A quick fix is to configure PTS before entering encoder. Please give it a try.