|
发表于 2021-7-15 10:16:27
只看该作者
8#
本帖最后由 板蓝根 于 2021-7-15 10:18 编辑
1. 你所说的 vlc 可以预览,rtsp 推流的前一步骤取流和编码都是由 rkmedia 完成的,而你所用的系统自带的 rkmedia_vi_get_frame_test 是用同一个库编译出来的,所以 vlc 预览没有问题这个 demo 就不可能有问题。
2.你有根据 5 楼所说的验证过吗?
cd /oem/;./Rklaunch-stop.sh; 如果不关掉会把摄像头占用的
cd /oem/;./Rklaunch-stop.sh; 如果不关掉会把摄像头占用的
cd /oem/;./Rklaunch-stop.sh; 如果不关掉会把摄像头占用的
cd /oem/;./Rklaunch-stop.sh; 如果不关掉会把摄像头占用的
3. AIO-RV1126_RV1109-JD4_2021_0709_1611 这个固件我已经反复验证过无数次了,根据你的反馈我又去再验证了一次没有问题。
- [root@RV1126_RV1109:/oem]# cat /proc/version
- Linux version 4.19.111 (daijh@tchip14) (rv1126_rv1109_linux_20210621.xml) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP PREEMPT Thu Jul 8 17:38:26 CST 2021
- [root@RV1126_RV1109:/oem]# rkmedia_vi_get_frame_test -a /oem/etc/iqfiles/ -w 1920 -h 1080 -d rkispp_scale0 -o /tmp/1080p.nv12 -c 10
- media get entity by name: rkcif-lvds-subdev is null
- media get entity by name: rkcif-lite-lvds-subdev is null
- media get entity by name: rkisp-mpfbc-subdev is null
- media get entity by name: rkisp_dmapath is null
- media get entity by name: rockchip-mipi-dphy-rx is null
- Rga built version:1.04 a83a665+2021-07-08 18:03:28
- #####Device: rkispp_scale0
- #####Resolution: 1920x1080
- #####Frame Count to save: 10
- #####Output Path: /tmp/1080p.nv12
- #CameraIdx: 0
- #####Aiq xml dirpath: /oem/etc/iqfiles/
- #bMultictx: 0
- ID: 0, sensor_name is m01_f_os04a10 1-0036, iqfiles is /oem/etc/iqfiles/
- rk_aiq_uapi_sysctl_init/prepare succeed
- rk_aiq_uapi_sysctl_start succeed
- SAMPLE_COMM_ISP_SetFrameRate start 30
- SAMPLE_COMM_ISP_SetFrameRate 30
- ##RKMEDIA Log level: 2
- [RKMEDIA][SYS][Info]:text is all=2
- [RKMEDIA][SYS][Info]:module is all, log_level is 2
- [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 Start...
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
- media get entity by name: rkcif-lvds-subdev is null
- media get entity by name: rkcif-lite-lvds-subdev is null
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
- media get entity by name: rkisp-mpfbc-subdev is null
- media get entity by name: rkisp_dmapath is null
- media get entity by name: rockchip-mipi-dphy-rx is null
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev5
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
- [RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale0
- [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0
- [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0, idx: 0
- [RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video19
- Using mplane plugin for capture
- [RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 92
- [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 End...
- main initial finish
- Get Frame:ptr:0x97225000, fd:93, size:3110400, mode:9, channel:0, timestamp:456717214, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-0 to /tmp/1080p.nv12
- Get Frame:ptr:0x96f28000, fd:94, size:3110400, mode:9, channel:0, timestamp:456750243, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-1 to /tmp/1080p.nv12
- Get Frame:ptr:0x96c2b000, fd:95, size:3110400, mode:9, channel:0, timestamp:456783336, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-2 to /tmp/1080p.nv12
- Get Frame:ptr:0x97225000, fd:93, size:3110400, mode:9, channel:0, timestamp:456816301, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-3 to /tmp/1080p.nv12
- Get Frame:ptr:0x96f28000, fd:94, size:3110400, mode:9, channel:0, timestamp:456849648, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-4 to /tmp/1080p.nv12
- Get Frame:ptr:0x96c2b000, fd:95, size:3110400, mode:9, channel:0, timestamp:456882994, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-5 to /tmp/1080p.nv12
- Get Frame:ptr:0x97225000, fd:93, size:3110400, mode:9, channel:0, timestamp:456916337, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-6 to /tmp/1080p.nv12
- Get Frame:ptr:0x96f28000, fd:94, size:3110400, mode:9, channel:0, timestamp:456949865, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-7 to /tmp/1080p.nv12
- Get Frame:ptr:0x96c2b000, fd:95, size:3110400, mode:9, channel:0, timestamp:456983022, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-8 to /tmp/1080p.nv12
- Get Frame:ptr:0x97225000, fd:93, size:3110400, mode:9, channel:0, timestamp:457016437, ImgInfo:<wxh 1920x1080, fmt 0x4>
- #Save frame-9 to /tmp/1080p.nv12
- [RKMEDIA][SYS][Warn]:Mode[VI]:Chn[0] drop buffer, Please get buffer in time!
- [RKMEDIA][SYS][Info]:RK_MPI_VI_DisableChn: Disable VI[0:0]:rkispp_scale0, 1920x1080 Start...
- [RKMEDIA][VI][Info]:#SourceStreamFlow[SourceFlow:v4l2_capture_stream]: stream off....
- libv4l2: error dequeuing buf: Invalid argument
- [RKMEDIA][SYS][Info]:rkispp_scale0, ioctl(VIDIOC_DQBUF): Invalid argument
- [RKMEDIA][VI][Info]:#SourceStreamFlow[SourceFlow:v4l2_capture_stream]: read thread exit sucessfully!
- [RKMEDIA][SYS][Info]:#V4L2Ctx: close , fd 92
- [RKMEDIA][SYS][Info]:#V4L2Stream: v4l2 ctx reset to nullptr!
- [RKMEDIA][VI][Info]:#SourceStreamFlow[SourceFlow:v4l2_capture_stream]: stream reset sucessfully!
- [RKMEDIA][SYS][Info]:SourceFlow:v4l2_capture_stream quit
- [RKMEDIA][SYS][Info]:RK_MPI_VI_DisableChn: Disable VI[0:0]:rkispp_scale0, 1920x1080 End...
- rk_aiq_uapi_sysctl_stop enter
- rk_aiq_uapi_sysctl_deinit enter
- rk_aiq_uapi_sysctl_deinit exit
- main exit!
- [root@RV1126_RV1109:/oem]#
复制代码
|
|