Jetson 4k Encoding -> Decoding Pipeline and latency

Hi,
We can run 4K UDP streaming on two Jetson Nanos. One Nano runs two cases:

  1. videotestsrc
gst-launch-1.0 videotestsrc is-live=1 ! 'video/x-raw,format=NV12,width=640,height=480,framerate=30/1' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12,width=3840,height=2160' ! nvv4l2h264enc maxperf-enable=1 insert-sps-pps=1 ! h264parse ! rtph264pay ! udpsink host=10.19.107.69 port=5000 sync=false
  1. v4l2src(E-Con CU135)
$ gst-launch-1.0 v4l2src device=/dev/video2 ! 'video/x-raw,format=UYVY,width=3840,height=2160,framerate=15/1' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvv4l2h264enc maxperf-enable=1 insert-sps-pps=1 ! h264parse ! rtph264pay ! udpsink host=10.19.107.69 port=5000 sync=false

And on the other Nano(IP 10.19.107.69), we can see video playback in running

$ gst-launch-1.0 udpsrc port=5000 ! 'application/x-rtp,encoding-name=H264,payload=96' ! rtph264depay ! h264parse ! nvv4l2decoder enable-max-performance=1 ! nvvidconv ! 'video/x-raw(memory:NVMM),width=1920,height=1080' ! fpsdisplaysink text-overlay=0 video-sink=nvoverlaysink sync=false -v

The TV in the setup does not support 4K resolution, so we downscale it to 1080p. If your TV supports 4K, you may remove the nvvidconv plugin.

And can see expected framerate.

The capability of the camera is

nvidia@nvidia-desktop:~$ v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'UYVY'
        Name        : UYVY 4:2:2
                Size: Discrete 1280x720
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 3840x2160
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.133s (7.500 fps)
                 (...skip...)

So we only can verify 4Kp15 with the USBcamera. But with videotestsrc, it can achieves 4Kp30.