- 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_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#
复制代码
- root@debian10:/home/toybrick# ps -e
- PID TTY TIME CMD
- 1 ? 00:00:03 systemd
- 2 ? 00:00:00 kthreadd
- 3 ? 00:00:00 rcu_gp
- 4 ? 00:00:00 rcu_par_gp
- 8 ? 00:00:00 mm_percpu_wq
- 9 ? 00:00:00 ksoftirqd/0
- 10 ? 00:00:38 rcu_preempt
- 11 ? 00:00:00 rcu_sched
- 12 ? 00:00:00 rcu_bh
- 13 ? 00:00:00 migration/0
- 14 ? 00:00:00 cpuhp/0
- 15 ? 00:00:00 cpuhp/1
- 16 ? 00:00:00 migration/1
- 17 ? 00:00:00 ksoftirqd/1
- 20 ? 00:00:00 cpuhp/2
- 21 ? 00:00:00 migration/2
- 22 ? 00:00:00 ksoftirqd/2
- 25 ? 00:00:00 cpuhp/3
- 26 ? 00:00:00 migration/3
- 27 ? 00:00:00 ksoftirqd/3
- 30 ? 00:00:00 kdevtmpfs
- 32 ? 00:00:00 rcu_tasks_kthre
- 33 ? 00:00:14 kworker/0:1-events
- 35 ? 00:00:00 oom_reaper
- 36 ? 00:00:00 writeback
- 37 ? 00:00:00 kcompactd0
- 38 ? 00:00:00 ksmd
- 39 ? 00:00:00 crypto
- 40 ? 00:00:00 kblockd
- 41 ? 00:00:00 kconsole
- 42 ? 00:00:00 devfreq_wq
- 43 ? 00:00:00 watchdogd
- 45 ? 00:00:00 kworker/2:1-events
- 46 ? 00:00:00 cfg80211
- 47 ? 00:00:00 kswapd0
- 48 ? 00:00:00 irq/78-rockchip
- 49 ? 00:00:00 irq/79-rockchip
- 50 ? 00:00:00 irq/80-rockchip
- 51 ? 00:00:00 rkvdec
- 52 ? 00:00:00 irq/55-ffb80000
- 54 ? 00:00:00 iommu_wq
- 55 ? 00:00:00 vdpu
- 56 ? 00:00:00 irq/58-ffb90400
- 57 ? 00:00:00 vepu
- 58 ? 00:00:00 irq/57-ffb90000
- 59 ? 00:00:00 iep
- 60 ? 00:00:00 irq/45-ffb20000
- 61 ? 00:00:00 hwrng
- 62 ? 00:00:00 stmmac_wq
- 64 ? 00:00:00 irq/82-rk817
- 65 ? 00:00:00 ircut wq
- 66 ? 00:00:00 rkisp bridge wo
- 67 ? 00:00:00 irq/35-rockchip
- 68 ? 00:00:36 irq/36-rockchip
- 70 ? 00:00:00 mmc_complete
- 72 ? 00:00:00 kworker/3:1H-kblockd
- 74 ? 00:00:01 kworker/1:2-events
- 75 ? 00:00:00 krfcommd
- 78 ? 00:00:00 irq/108-lt7911d
- 79 ? 00:00:00 lt7911d_thread
- 80 ? 00:00:00 irq/41-rga
- 81 ? 00:00:00 irq/109-rockchi
- 82 ? 00:00:00 irq/110-rockchi
- 83 ? 00:00:00 rkvenc
- 84 ? 00:00:00 iommu_wq
- 85 ? 00:00:00 irq/60-ffbb0000
- 87 ? 00:00:00 kworker/u9:0-dhd_eventd
- 88 ? 00:00:00 dhd_eventd
- 89 ? 00:00:00 ext_eventd
- 90 ? 00:00:00 dhd_watchdog_th
- 91 ? 00:00:13 dhd_dpc
- 92 ? 00:00:00 dhd_rxf
- 97 ? 00:00:00 kworker/2:2H-kblockd
- 99 ? 00:00:00 jbd2/mmcblk0p4-
- 100 ? 00:00:00 ext4-rsv-conver
- 101 ? 00:00:00 kworker/2:2-events
- 122 ? 00:00:35 systemd-journal
- 132 ? 00:00:00 systemd-udevd
- 148 ? 00:00:00 kworker/0:2-events
- 158 ? 00:00:01 kworker/1:3H-kblockd
- 207 ? 00:00:00 ext4-rsv-conver
- 227 ? 00:00:03 systemd-timesyn
- 234 ? 00:00:00 alsactl
- 237 ? 00:00:13 dbus-daemon
- 239 ? 00:00:05 wpa_supplicant
- 240 ? 00:00:00 systemd-logind
- 241 ? 00:00:00 ModemManager
- 242 ? 00:00:41 NetworkManager
- 243 ? 00:00:00 cron
- 244 ? 00:00:19 rsyslogd
- 253 ? 00:00:00 polkitd
- 263 ttyFIQ0 00:00:00 agetty
- 273 ? 00:00:00 sshd
- 293 ? 00:00:00 tee-supplicant
- 305 ? 00:00:00 propd
- 312 ? 00:01:00 led_ctrl.sh
- 421 ? 00:00:00 kworker/3:1-events_freezable
- 428 ? 00:00:14 toybrick_usbd
- 441 ? 00:00:04 toybrick_adbd
- 470 ? 00:00:00 kworker/1:1H
- 476 ? 00:00:01 file-storage
- 477 ? 00:00:01 irq/81-dwc3
- 482 ? 00:00:00 kworker/u9:1-dhd_eventd
- 863 ? 00:00:07 kworker/u8:0-events_unbound
- 1228 ? 00:00:00 kworker/3:0-mm_percpu_wq
- 1970 pts/0 00:00:00 sh
- 1989 pts/0 00:00:00 su
- 2007 ? 00:00:00 systemd
- 2011 ? 00:00:00 (sd-pam)
- 2022 pts/0 00:00:00 bash
- 2359 ? 00:00:00 kworker/3:2-events
- 2688 ? 00:00:00 kworker/u8:1-flush-179:0
- 3259 ? 00:00:00 kworker/3:0H
- 3330 ? 00:00:00 kworker/1:0-events
- 3703 ? 00:00:00 kworker/0:0H-mmc_complete
- 3767 ? 00:00:00 sleep
- 3768 pts/0 00:00:00 ps
- 3845 ? 00:00:00 kworker/2:0H
- 3900 ? 00:00:00 kworker/u8:2-events_unbound
- 3935 ? 00:00:00 kworker/0:2H-mmc_complete
- root@debian10:/home/toybrick#
复制代码
voidtikcast 发表于 2022-4-1 11:07
我也碰到同样的问题,我的ispserver mediaserver全部屏蔽了没有启动,用rkmedia 的demo测试全部都会失败, ...
voidtikcast 发表于 2022-4-7 09:26
我的已经解决了,可以抓图,用rkmedia_vi_venc_test也可以编码h264
MacbookHH 发表于 2022-5-18 10:55
你好 請問是怎麽解決的,我同樣能抓到幀,但是實用程序時候一直提示我ispserver未開啓并且卡死,但是我使 ...
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |