I want to record a h264 videos from my 4K ( 3840x2160@30fps) camera on Jetson nano. But the fps is low(17fps). I think, the nvjpegdec is slower than nvv4l2h264enc. How can I up the fps?
My gstreamer’s pipeline is
gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=2 ! ‘image/jpeg,width=3840,height=2160,framerate=30/1’ ! nvjpegdec ! ‘video/x-raw’ ! nvvidconv ! nvv4l2h264enc ! h264parse ! queue2 ! qtmux ! filesink location=4K_h264HW_nvjpeg.mp4 -e
But, full HD ( 1920x1080@30fps) was fine(29.394fps).
gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=2 ! ‘image/jpeg,width=1920,height=1080,framerate=30/1’ ! nvjpegdec ! ‘video/x-raw’ ! nvvidconv ! nvv4l2h264enc ! h264parse ! queue2 ! qtmux ! filesink location=FHD_h264HW_nvjpeg.mp4 -e
My environment is
- R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t210ref, EABI: aarch64, DATE: Fri Jun 26 04:38:25 UTC 2020
- IMX317 USB camera. 3840x2160@30fps. ‘MJPG’ (compressed).
Thank you for your help.