I’ve tried to recorded the video with the following pipeline:
gst-launch-1.0 videotestsrc pattern=18 num-buffers=120 ! video/x-raw,format=RGBA,width=1280,height=720,framerate=25/1 ! capssetter caps=video/x-raw,format=RGBA,width=1280,height=720,framerate=20/1 ! queue ! nvvideoconvert ! queue ! nvv4l2h264enc name=encoder ! h264parse ! m.video_0 qtmux name=m ! filesink location=test.mp4
If there is any PTS error in the video, you will see the ball moving forward and backward, but I don’t see any thing wrong.