I have the above pipeline simplified - the goal is to use nvdewarper (in between the codecs). I am currently seeing the PTS getting changed ie. not in order while the DTS is still in order.
Below you can see for the PTS: 49.676009 is the odd one while its DTS -3.407741 is in order with the previous and following packet. When i playback the exported file, the player plays this frame sooner than it should.
I also realize that if i set the filesink: sync=True, it greatly reduces this occurence but it still exists
Thanks for the reply, how do i address this problem? I am having to manually change the PTS of the buffer at the Encoder based on the frame rate.
Could you elaborate on why the P-frames could possibly have a different PTS and also what could be causing it to be out of order. Here is a log from ffprobe of 3 packets. the 2nd one with pkt_pts_time=4.690023 is the one that is getting ‘presented’ during playback earlier than it should:
A B‑frame (‘Bi-predictive picture’) saves even more space by using differences between the current frame and both the preceding and following frames to specify its content.
Could you try to set the num-B-Frames=0 for encoder and check if there are same problem?
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks