其他分享
首页 > 其他分享> > 20210428瑞芯微RK3399在Android10下配置摄像头OV13850

20210428瑞芯微RK3399在Android10下配置摄像头OV13850

作者:互联网

20210428瑞芯微RK3399在Android10下配置摄像头OV13850
2021/4/28 17:16

开发板:天启(t-firefly)AIO-3399J

https://www.t-firefly.com/doc/download/31.html
SDK:版本号Android10.0

配件:
MIPI摄像头OV13850
USB摄像头:罗技(Logitech)C930c高清网络摄像头 1080P视频通话


往上拉:
图片

Camera
图片

Remember photo locations?

Tag your photos and videos withe the locations where they're taken.

NEXT
图片

预览效果图:
图片

往右拉:
图片

拍照/录像的分辨率:
Resolution & quality
图片

Settings

Camera
Back camera photo
(4:3) 12.8 megapixels

Front camera photo
(4:3) 0.3 megapixels

Video
Back camera video
SD 480p

Front camera video
SD 480p
图片

打开前后摄像头切换:
图片

后摄像头→前摄像头:
图片

前摄像头效果:
图片

前摄像头→后摄像头:
图片

后摄像头→前摄像头:
图片

Back camera video
SD 480p
QVGA
QCIF
图片

Front camera video
SD 480p
QVGA
QCIF
图片

如果上电开机的时候没有插入USB摄像头,你会只发现到后置摄像头:
Video
Back camera video
SD 480p
图片


根据全志R18平台的修改经验,只修改这个文件就可以做到1080p录像!^_
Z:\proj\rk3399_Android10.0\device\rockchip\rk3399\media_profiles_default.xml
Settings

Camera
Back camera photo
(4:3) 12.8 megapixels

Video
Back camera video
HD 1080p

图片

Back camera video
HD 1080p
HD 720P
SD 480p
图片

后置摄像头OV13850的分辨率列表!
Back camera photo
(4:3) 12.8 megapixels
(4:3) 3.3 megapixels
(4:3) 1.2 megapixels
(16:9) 2.1 megapixels
(16:9) 0.9 megapixels
图片

G:\05固件\04-Android10.0 系统\Public\AIO-3399J_Android10_HDMI_210331\AIO-3399J_Android10_HDMI_210331.7z
预编译的是480p

后置摄像头视频
SD 480p
QVGA
QCIF
取消
图片

很容易知道,插入USB摄像头就多了两个video设备节点:
/dev/video10
/dev/video11

Microsoft Windows [版本 10.0.18363.1500]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\DELL>adb shell
rk3399_firefly_aio_lvds:/ $ cd /dev
rk3399_firefly_aio_lvds:/dev $
rk3399_firefly_aio_lvds:/dev $ ls -l v*
crw-rw---- 1 media     camera 81,  12 2013-01-18 08:50 v4l-subdev0
crw-rw---- 1 media     camera 81,  13 2013-01-18 08:50 v4l-subdev1
crw-rw---- 1 media     camera 81,  14 2013-01-18 08:50 v4l-subdev2
crw-rw---- 1 media     camera 81,  15 2013-01-18 08:50 v4l-subdev3
crw-rw---- 1 media     camera 81,  16 2013-01-18 08:50 v4l-subdev4
crw-rw---- 1 media     camera 81,  17 2013-01-18 08:50 v4l-subdev5
crw-rw-r-- 1 bluetooth net_bt 10,  50 2013-01-18 08:50 vendor_storage
crw-rw---- 1 media     camera 81,   0 2013-01-18 08:50 video0
crw-rw---- 1 media     camera 81,   1 2013-01-18 08:50 video1
crw-rw---- 1 media     camera 81,  10 2013-01-18 08:50 video10
crw-rw---- 1 media     camera 81,  11 2013-01-18 08:50 video11
crw-rw---- 1 media     camera 81,   2 2013-01-18 08:50 video2
crw-rw---- 1 media     camera 81,   3 2013-01-18 08:50 video3
crw-rw---- 1 media     camera 81,   4 2013-01-18 08:50 video4
crw-rw---- 1 media     camera 81,   5 2013-01-18 08:50 video5
crw-rw---- 1 media     camera 81,   6 2013-01-18 08:50 video6
crw-rw---- 1 media     camera 81,   7 2013-01-18 08:50 video7
crw-rw---- 1 media     camera 81,   8 2013-01-18 08:50 video8
crw-rw---- 1 media     camera 81,   9 2013-01-18 08:50 video9
crw-rw-rw- 1 root      root   10,  47 2013-01-18 08:50 vmdrm0
crw-rw-rw- 1 root      root   10,  56 2013-01-18 08:50 vndbinder
rk3399_firefly_aio_lvds:/dev $
rk3399_firefly_aio_lvds:/dev $
图片

图片


启动完成之后再插入摄像头会报错:

console:/ $
console:/ $
console:/ $
console:/ $
console:/ $
console:/ $ [   45.437502] usb 5-1: new high-speed USB device number 2 using xhci-hcd
[   45.644693] usb 5-1: New USB device found, idVendor=046d, idProduct=0891, bcdDevice= 0.19
[   45.644779] usb 5-1: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[   45.644802] usb 5-1: Product: 罗技高清网络摄像机 C930c
[   45.644824] usb 5-1: SerialNumber: 237EBCCE
[   45.675017] uvcvideo: Found UVC 1.00 device 罗技高清网络摄像机 C930c (046d:0891)
[   45.684324] uvcvideo 5-1:1.0: Entity type for entity Processing 3 was not initialized!
[   45.684403] uvcvideo 5-1:1.0: Entity type for entity Extension 6 was not initialized!
[   45.684431] uvcvideo 5-1:1.0: Entity type for entity Extension 8 was not initialized!
[   45.684457] uvcvideo 5-1:1.0: Entity type for entity Extension 9 was not initialized!
[   45.684483] uvcvideo 5-1:1.0: Entity type for entity Extension 10 was not initialized!
[   45.684508] uvcvideo 5-1:1.0: Entity type for entity Extension 11 was not initialized!
[   45.684538] uvcvideo 5-1:1.0: Entity type for entity Extension 12 was not initialized!
[   45.684601] uvcvideo 5-1:1.0: Entity type for entity Extension 13 was not initialized!
[   45.684660] uvcvideo 5-1:1.0: Entity type for entity Camera 1 was not initialized!
[   45.686892] input: 罗技高清网络摄像机 C93 as /devices/platform/usb@fe900000/fe900000.dwc3/xhci-hcd.0.auto/usb5/5-1/5-1:1.0/input/input4
[   45.697465] type=1400 audit(1619588870.988:105): avc: denied { getattr } for comm="memtrack@1.0-se" path="/sys/kernel/debug/mali0/ctx/812_2/mem_profile" dev="debugfs" ino=24051 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=1
[   45.697596] type=1400 audit(1619588878.301:106): avc: denied { read } for comm="ExtCamHotPlug" name="u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.697909] type=1400 audit(1619588878.301:106): avc: denied { read } for comm="ExtCamHotPlug" name="u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.697979] type=1400 audit(1619588878.301:107): avc: denied { open } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.698568] type=1400 audit(1619588878.301:107): avc: denied { open } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.698667] type=1400 audit(1619588878.301:108): avc: denied { getattr } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.698938] type=1400 audit(1619588878.301:108): avc: denied { getattr } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.699037] type=1400 audit(1619588878.301:109): avc: denied { map } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.966691] audit: audit_lost=11 audit_rate_limit=5 audit_backlog_limit=64
[   45.966725] audit: rate limit exceeded
[   45.966744] type=1400 audit(1619588878.301:109): avc: denied { map } for comm="ExtCamHotPlug" path="/dev/__properties__/u:object_r:system_prop:s0" dev="tmpfs" ino=20474 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=1
[   45.966788] type=1400 audit(1619588878.571:110): avc: denied { read } for comm="HwBinder:260_2" name="u:object_r:default_prop:s0" dev="tmpfs" ino=20398 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1

console:/ $
console:/ $

 

 

 

 

 

 

 

 

 

 

 

 

 

标签:s0,crw,camera,Android10,50,dev,瑞芯微,RK3399,rw
来源: https://blog.csdn.net/wb4916/article/details/116238634