RK3588 HDMI编码问题

目前使用 v4l2-ctl -d /dev/video8 --set-fmt-video=width=3840,height=2160,pixelformat=‘RGB3’ --stream-mmap=4 --stream-skip=10 --stream-to=/userdata/4kp60_nv12.yuv --stream-count=120 --stream-poll –

获取YUV文件
使用mpi_enc_test -w 3840 -h 2160 -t 7 -i /userdata/4kp60_nv12.yuv -f 65543 -o /userdata/out.h264 -n 120
编码H264
但是H264丢帧严重

另输入源是给的1080P 识别的是2160P
使用1080P的分辨率采集的话 视频只有原来的一部分 使用2160P能采集到完整视频 显示正常
[root@RK3588:/]# v4l2-ctl -d /dev/video8 -V
Format Video Capture Multiplanar:
Width/Height : 3840/2160
Pixel Format : ‘RGB3’ (24-bit RGB 8-8-8)
Field : None
Number of planes : 1
Flags : premultiplied-alpha, 000000fe
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Unknown (000000ff)
Quantization : Default
Plane 0 :
Bytes per Line : 11520
Size Image : 24883200



sdk是最新的吗?cat /proc/version 看一下版本

SDK 还不是最近的 在下载最新的 试试打完补丁后

本帖最后由 曹经 于 2022-7-4 16:20 编辑

更新到最近的SDK了
root@firefly:/userdata# cat /proc/version
Linux version 5.10.66 (root@ubuntu) (kernel commit id: 94cc6ef) (sdk version: rk3588_linux_release_20220422_v0.1.0a) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP Fri Jul 1 00:25:06 PDT 2022

现在分辨率识别正确
root@firefly:/userdata# v4l2-ctl -d /dev/video8 -V
Format Video Capture Multiplanar:
Width/Height : 1920/1080
Pixel Format : ‘RGB3’ (24-bit RGB 8-8-8)
Field : None
Number of planes : 1
Flags : premultiplied-alpha, 0x000000fe
Colorspace : SMPTE 170M
Transfer Function : Default

目前已能够编码正确分辨率 且帧率基本维持在25