My understanding is that the AGX Xavier Dev Kit should be able to encode at (2x) 4Kp60. Following the Accelerated GStreamer User Guide, I tried encoding a 1080p@30fps video to a file using this command:
gst-launch-1.0 nvarguscamerasrc ! \
'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, \
format=(string)NV12, framerate=(fraction)30/1' ! nvv4l2h264enc \
maxperf-enable=1 bitrate=8000000 ! h264parse ! qtmux ! filesink \
location=filename_h264.mp4 -e
However, I find that while 720p encodes without issue, encoding at 1080p causes the video to drop to ~1fps when played back. What am I missing here? I’m using a 4k CSI camera, and I’ve already tried enabling MAXN and jetson_clocks before encoding. I found that the same issue also occurs when using nvgstcapture-1.0 to do the recording/encoding.
nvgstcapture-1.0 -m 2 --video-res=4
1
0