|
本帖最后由 ianfan 于 2021-10-13 18:05 编辑
透過v4l2-ctl可從Macbook Air的type-c port抓取出YUV資料,資料驗證後沒有問題
- v4l2-ctl -d /dev/video0 --set-fmt-video=width=3840,height=3840,pixelformat=NV12 --stream-mmap=3 --stream-to=/tmp/NV12.out --stream-count=1
rkmedia也有方式可以抓取出YUV資料
- rkmedia_vi_get_frame_test -c 1 -o yuv.out
但執行後的結果如下
- 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: stream_cif is null
- media get entity by name: rkcif-dvp-sof is null
- [07:03:40.904846][CAMHW]:XCAM ERROR CamHwIsp20.cpp:181: 181:parse sensor entity name lt7911d 4-002b error at 0, please check sensor driver !
- [07:03:40.905270][CAMHW]:XCAM ERROR CamHwIsp20.cpp:118: @get_sensor_caps /dev/v4l-subdev3: Get sensor module info failed
- media get entity by name: rkisp-mpfbc-subdev is null
- media get entity by name: rkisp_dmapath is null
- media get entity by name: rkcif_dvp is null
- media get entity by name: rkcif_mipi_lvds is null
- media get entity by name: rkcif_dvp is null
- media get entity by name: rkcif_lite_mipi_lvds is null
- media get entity by name: rkcif_mipi_lvds is null
- [07:03:40.907466][CAMHW]:XCAM ERROR CamHwIsp20.cpp:940: get isp or ispp info fail, something gos wrong!
- Rga built version:1.04 356036d+2021-10-08 14:50:37
- #####Device: stream_cif_mipi_id0
- #####Resolution: 1920x1080
- #####Frame Count to save: 100
- #####Output Path: a.out
- #CameraIdx: 0
- ##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]:stream_cif_mipi_id0, 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
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev4
- [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:stream_cif_mipi_id0
- [RKMEDIA][SYS][Info]:libv4l2 is not configured.
- [RKMEDIA][VI][Info]:Create stream v4l2_capture_stream failed
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream off....
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: read thread exit sucessfully!
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream reset sucessfully!
- [RKMEDIA][SYS][Warn]:VI[0]:"stream_cif_mipi_id0" buffer may be occupied by other modules or apps, try again...
- [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
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev4
- [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:stream_cif_mipi_id0
- [RKMEDIA][SYS][Info]:libv4l2 is not configured.
- [RKMEDIA][VI][Info]:Create stream v4l2_capture_stream failed
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream off....
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: read thread exit sucessfully!
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream reset sucessfully!
- [RKMEDIA][SYS][Warn]:VI[0]:"stream_cif_mipi_id0" buffer may be occupied by other modules or apps, try again...
- [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
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev4
- [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:stream_cif_mipi_id0
- [RKMEDIA][SYS][Info]:libv4l2 is not configured.
- [RKMEDIA][VI][Info]:Create stream v4l2_capture_stream failed
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream off....
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: read thread exit sucessfully!
- [RKMEDIA][VI][Info]:#SourceStreamFlow[]: stream reset sucessfully!
- <font color="#ff0000">[RKMEDIA][SYS][Warn]:VI[0]:"stream_cif_mipi_id0" buffer may be occupied by other modules or apps, try again...
- Create VI[0] failed! ret=-11</font>
- root@debian10:/home/toybrick#
是什麼程序佔用了stream_cif_mipi_id0? 該如何排除? 謝謝。
|
|