- I tried your suggestion, but still has errors by running a h264_nvmpi decoder. here is my log
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input url with argument 'testsrc=size=1280x720:rate=30'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '5'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_nvmpi'.
Reading option 'encoder_test.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url testsrc=size=1280x720:rate=30.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: testsrc=size=1280x720:rate=30.
detected 8 logical cores
[Parsed_testsrc_0 @ 0x2b223c30] Setting 'size' to value '1280x720'
[Parsed_testsrc_0 @ 0x2b223c30] Setting 'rate' to value '30'
[Parsed_testsrc_0 @ 0x2b223c30] size:1280x720 rate:30/1 duration:-1.000000 sar:1/1
[AVFilterGraph @ 0x2b293f50] query_formats: 2 queried, 1 merged, 0 already done, 0 delayed
[lavfi @ 0x2b2937d0] All info found
Input #0, lavfi, from 'testsrc=size=1280x720:rate=30':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0, 1, 1/30: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 1280x720 [SAR 1:1 DAR 16:9], 0/1, 30 tbr, 30 tbn, 30 tbc
Successfully opened the file.
Parsing a group of options: output url encoder_test.mp4.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 5.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option c:v (codec name) with argument h264_nvmpi.
Successfully parsed a group of options.
Opening an output file: encoder_test.mp4.
[file @ 0x2b21c000] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvmpi))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[rawvideo @ 0x2b297a60] PACKET SIZE: 2764800, STRIDE: 3840
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'video_size' to value '1280x720'
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'pix_fmt' to value '2'
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'time_base' to value '1/30'
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x2b221a20] Setting 'frame_rate' to value '30/1'
[graph 0 input from stream 0:0 @ 0x2b221a20] w:1280 h:720 pixfmt:rgb24 tb:1/30 fr:30/1 sar:1/1 sws_param:flags=2
[format @ 0x2b29b280] Setting 'pix_fmts' to value 'yuv420p'
[auto_scaler_0 @ 0x2b29cc00] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x2b29cc00] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x2b29b280] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x2b293dd0] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
[auto_scaler_0 @ 0x2b29cc00] w:1280 h:720 fmt:rgb24 sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x4
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
~/test_nvmpi $ ls -la
/dev/video*/bin/ls: No match.
~/test_nvmpi $ ls -la /dev/nvhost-*
crw-rw----. 1 root video 501, 0 Dec 31 1969 /dev/nvhost-as-gpu
crw-rw----. 1 root video 501, 2 Dec 31 1969 /dev/nvhost-ctrl-gpu
crw-rw----. 1 root video 507, 0 Mar 17 2024 /dev/nvhost-ctrl-nvdla0
crw-rw----. 1 root video 505, 0 Mar 17 2024 /dev/nvhost-ctrl-nvdla1
crw-rw----. 1 root video 504, 0 Mar 17 2024 /dev/nvhost-ctrl-pva0
crw-rw----. 1 root root 501, 3 Dec 31 1969 /dev/nvhost-ctxsw-gpu
crw-rw----. 1 root root 501, 4 Dec 31 1969 /dev/nvhost-dbg-gpu
crw-rw----. 1 root video 501, 1 Dec 31 1969 /dev/nvhost-gpu
crw-rw----. 1 root video 501, 10 Dec 31 1969 /dev/nvhost-nvsched_ctrl_fifo-gpu
crw-rw----. 1 root video 501, 9 Dec 31 1969 /dev/nvhost-nvsched-gpu
crw-rw----. 1 root video 502, 0 Dec 31 1969 /dev/nvhost-power-gpu
crw-rw----. 1 root root 501, 6 Dec 31 1969 /dev/nvhost-prof-ctx-gpu
crw-rw----. 1 root root 501, 7 Dec 31 1969 /dev/nvhost-prof-dev-gpu
crw-rw----. 1 root root 501, 5 Dec 31 1969 /dev/nvhost-prof-gpu
crw-rw----. 1 root root 501, 8 Dec 31 1969 /dev/nvhost-sched-gpu
crw-rw----. 1 root video 501, 11 Dec 31 1969 /dev/nvhost-tsg-gpu
~/test_nvmpi $ rpm -qa | grep nvidia-jetpack
nvidia-jetpack-core-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-cuda-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-init-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-multimedia-utils-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-nvsci-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-multimedia-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-camera-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-x11-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-wayland-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-3d-core-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-gbm-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-gstreamer-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-pva-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-vulkan-sc-sdk-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-nvfancontrol-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-nvpmodel-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-cuda-utils-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-dla-compiler-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-firmware-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-nvml-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-tools-36.4.0~20240912212859-1.el8.aarch64
nvidia-jetpack-kmod-modprobe-36.4.0_5.14.0_427.42.1~20240912212859-1.el8.aarch64
nvidia-jetpack-kmod-36.4.0_5.14.0_427.42.1~20240912212859-1.el8.aarch64
nvidia-jetpack-all-36.4.0~20240912212859-1.el8.aarch64
~/test_nvmpi $ rpm -qa | grep multimedia
qt5-qtmultimedia-5.15.9-1.el9.aarch64
nvidia-jetpack-multimedia-utils-36.4.0~20240912212859-2.el8.aarch64
nvidia-jetpack-multimedia-36.4.0~20240912212859-2.el8.aarch64
~/test_nvmpi $ lsmod | grep nvidia
nvidia_drm 102400 1
nvidia_vrs_pseq 16384 0
drm_kms_helper 192512 4 drm_display_helper,tegra_drm,nvidia_drm
nvidia_modeset 1302528 3 nvidia_drm
nvidia 1589248 5 nvidia_modeset
tsecriscv 40960 1 nvidia
host1x_nvhost 40960 4 nvidia,nvhost_nvdla,nvhost_pva,nvidia_modeset
host1x 217088 8 host1x_nvhost,host1x_fence,nvgpu,tegra_drm,nvhost_nvdla,nvidia_drm,nvhost_pva,nvidia_modeset
video 65536 1 nvidia_modeset
drm 598016 12 drm_kms_helper,drm_display_helper,nvidia,tegra_drm,nvidia_drm
mc_utils 16384 3 nvidia,nvgpu,tegra_camera_platform
tegra_dce 110592 2 nvidia