Video Glitches When Encoding Custom appsrc in GStreamer

There are some suggestions for further debugging:

  1. Run VIC at maximum clock:
    Nvvideoconvert issue, nvvideoconvert in DS4 is better than Ds5? - #3 by DaneLLL
  2. Run sudo jetson_clocks to enable CPU cores at maximum clock
  3. Run sudo tegrastats to check system status. Probably it hits throttling or over current in the condition
  4. Try with fakesink sync=0. To check if it occurs without writing to a file
    ... ! matroskamux ! fakesink sync=0