11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像)
11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像)2021/2/25 9:37将Hi3518EV300在鸿蒙系统下配置为UVC模式,原厂(华为海思/江苏润和)还没有做好,不方便借电脑进行实时调焦!【HarmonyOS HiSpark_IPC_DIY开发套件】https://xueqiu.com/7970718062/159110439官井想开挖掘机来自iPho
11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像)
2021/2/25 9:37
将Hi3518EV300在鸿蒙系统下配置为UVC模式,原厂(华为海思/江苏润和)还没有做好,不方便借电脑进行实时调焦!
【HarmonyOS HiSpark_IPC_DIY开发套件】
https://xueqiu.com/7970718062/159110439
官井想开挖掘机
来自iPhone发布于2020-09-13 15:18
$润和软件(SZ300339)$
HiSpark DIY IPC套件
l 支持鸿蒙OS、LiteOS、Linux系统,方便进行产品的原型验证和快速开发
l 板载海思Hi3518EV300芯片,内置ARM Cortex A7核心,最高运行频率900MHz,内置64MB SDRAM,内置图像处理单元(ISP),内置H265/H264硬件编解码器,内置智能视频引擎(IVE),内置硬件安全引擎
l 搭载128Mbit SPI NOR Flash,同时带有一个T-F卡槽,最大支持128GB T-F卡
l 板载Hi3881 WiFi芯片,支持IEEE 802.11 b/g/n,支持STA模式、AP模式
l 板载JX-F23A图像传感器,最大有效像素2M,视频最高支持1920x1080@25fps
1、修改配置
Z:\code3518\applications\sample\camera\media\BUILD.gn
# ./applications/sample/camera/media 目录下的 BUILD.gn中的
两行 output_dir = "$root_out_dir/dev_tools" 可以去掉,使用默认路径就好。
executable("camera_sample") {
sources = [
"camera_sample.cpp"
]
cflags = ["-Wall"]
cflags_cc = cflags
include_dirs = []
ldflags = ["-lstdc++"]
ldflags += ["-lpthread"]
ldflags += ["-Wl,-rpath-link=$ohos_root_path/$root_out_dir"]
deps = [
"//foundation/multimedia/frameworks/camera_lite:camera",
"//foundation/multimedia/frameworks/recorder_lite:recorder",
]
#output_dir = "$root_out_dir/dev_tools"
}
executable("player_sample") {
sources = [
"player_sample.cpp"
]
cflags = ["-Wall"]
cflags_cc = cflags
include_dirs = []
ldflags = ["-lstdc++"]
ldflags += ["-lpthread"]
ldflags += ["-Wl,-rpath-link=$ohos_root_path/$root_out_dir"]
deps = [
"//third_party/bounds_checking_function:libsec_shared",
"//foundation/multimedia/frameworks/player_lite:player",
]
#output_dir = "$root_out_dir/dev_tools"
}
Z:\code3518\build\lite\product\ipcamera_hi3518ev300.json
# 修改./build/lite/product/ipcamera_hi3518ev300.json
将./applications/sample/camera/media/BUILD.gn 中的media_sample 加入到ipcamera_hi3518ev300.json中进行编译
{
"name": "applications",
"component": [
{ "name": "camera", "dir": "//applications/sample/camera/app:camera_app", "features":[] },
{ "name": "media_sample", "dir": "//applications/sample/camera/media:media_sample", "features":[] },
{ "name": "communication", "dir": "//applications/sample/camera/communication:sample", "features":[] }
]
},
2、开始编译、刷机等
编译时需要加debug选项,这样启动后可以进入shell
python build.py ipcamera_hi3518ev300 -b debug
生成镜像
镜像名称 起始地址 长度
u-boot-hi3518ev300.bin 0 1M
OHOS_Image.bin 1M 6M
rootfs.img 7M 8M
useRFs.img 15M 1M
镜像名称 所在路径
u-boot-hi3518ev300.bin ./vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot/u-boot-hi3518ev300.bin
OHOS_Image.bin ./out/ipcamera_hi3518ev300/OHOS_Image.bin
rootfs.img ./out/ipcamera_hi3518ev300/rootfs.img
userfs.img ./out/ipcamera_hi3518ev300/userfs.img
烧录(hitool工具)
#首先需要串口转USB驱动和USB驱动
#每次烧录时都需要先擦除uboot,保持HiTool工具使用的串口不被其它串口工具占用。
擦除时需要重新上电,拔插一下USB线就好,然后等待擦除完成
#擦除完成后,选中所有镜像,然后使用USB方式烧录镜像,等待烧录完成。
修改U-boot参数
上电后需要修改U-boot的bootcmd及bootargs内容
setenv bootcmd "sf probe 0;sf read 0x40000000 0x100000 0x600000;go 0x40000000"
setenv bootargs "console=ttyAMA0,115200n8 root=flash fstype=jffs2 rw rootaddr=7M rootsize=8M"
saveenv
reset
执行命令 命令解释
setenv bootcmd "sf probe 0;sf read 0x40000000 0x100000 0x600000;go 0x40000000"; 设置bootcmd内容,选择FLASH器件0,读取FLASH起始地址为0x100000,大小为0x600000的内容到0x40000000的内存地址。
setenv bootargs "console=ttyAMA0,115200n8 root=flash fstype=jffs2 rw rootaddr=7M rootsize=8M"; 表示设置bootargS参数为串口输出,波特率为115200,数据位8,rootfs挂载于FLASH上,文件系统类型为jffs2 rw,以支持可读写JFFS2文件系统。“rootaddr=7M rootsize=8M”处对应填入实际rootfs.img的烧写起始位置与长度,此处应与HiTool新增文件时所填大小相同。
saveenv 表示保存当前配置。
reset 表示复位单板。
pri 表示查看显示参数。
须知,“go 0x40000000”为可选指令,默认配置已将该指令固化在启动参数中,单板复位后可自动启动。若想切换为手动启动,可在U-boot启动倒数阶段使用"回车"打断自动启动。
3、启动摄像头拍照+录像
(切记:必须在系统启动之前插入TF卡。系统上电完成启动之后再插入TF卡,就会识别异常!)
系统启动后,显示“OHOS”字样
进入bin目录下,执行./camera_sample
运行后的控制命令如串口打印所示,按s键停止当前操作(包括录像和预览),按q键退出示例程序。
按1进行拍照,拍照的文件格式为jpg,存储在/sdcard,文件名Capture*
输入拍照指令后串口打印日志
若想查看保存文件,可在退出程序后进入文件系统查看,退出后重新进入请回到步骤
按2进行录像,录像的文件格式为mp4,存储在/sdcard,文件名Record*,按s键停止
输入录像指令后串口打印日志
按q键退出
输出退出指令后串口打印日志
上电之前插入的TF卡挂载:
main core booting up...
[ERR][HDF:E/hcs_blob_if]CheckHcsBlobLength: the blobLength: 8660, byteAlign: 1, totalSize: -8640
cpu 0 entering scheduler
random dev init ...
proc fs init ...
Mount procfs finished.
MMC dev init ...[ERR]No console dev used.
[ERR]No console dev used.
disk_init : register /dev/mmcblk0 ok!
DiskAddPart : register /dev/mmcblk0p0 ok!
mem dev init ...
spi nor flash init ...
Spi Nor ID:0x20 0x70 0x18 0x20 0x70 0x18 0x20 0x70
Spi Nor Flash Info:
Name:"XM25QH128A" Size:16MB Block:64KB
spinor_init ...
net init ...
tcpip_init start
系统上电完成启动之后再插入TF卡,就会识别异常!
[ERR][HDF:E/HDF_LOG_TAG]HdfWifiDriverInit:init chip 0 successirtual_serial_init end ...
system_console_init end ...
CatLogShell start ...
CatLogShell start ...
OsUserInitProcess start ...
OsUserInitProcess end ...
[Init] ****/****/****/****/OpenHarmony/****/****/3/OpenHarmony 1.0/debug
[ERR]Failed to find block driver /dev/mmcblk0
[Init] DoMount, failed for vfat /dev/mmcblk0 /sdcard rw,umask=000, err -1.
[ERR]Failed to find block driver /dev/mmcblk1
[Init] DoMount, failed for vfat /dev/mmcblk1 /sdcard rw,umask=000, err -1.
[Init] start service shell succeed, pid 3.
OHOS # [Init] start service apphilogcat succeed, pid 4.
[ERR]vfs_jffs_ioctl NOT SUPPORT
[ERR]vfs_jffs_ioctl NOT SUPPORT
[Init] start service foundation succeed, pid 5.
样片:
【HarmonyOS HiSpark
获取图片的LOG信息:
OHOS #
OHOS #
OHOS #
OHOS # ls
Directory /:
drwxr-xr-x 0 u:0 g:0 dev
dr-xr-xr-x 0 u:0 g:0 proc
drwxrwxrwx 0 u:0 g:0 sdcard
drwxr-xr-x 0 u:0 g:0 storage
dr-xr-xr-x 0 u:0 g:0 etc
dr-xr-xr-x 0 u:0 g:0 bin
dr-xr-xr-x 0 u:0 g:0 lib
dr-xr-xr-x 0 u:0 g:0 usr
dr-xr-xr-x 0 u:0 g:0 vendor
dr-xr-xr-x 0 u:0 g:0 system
OHOS #
OHOS #
OHOS # pwd
/
OHOS #
OHOS #
OHOS # cd /bin
OHOS #
OHOS #
OHOS # pwd
/bin
OHOS #
OHOS #
OHOS # ls
Directory /bin:
-r-x------ 25828 u:0 g:0 init
-r-x------ 25824 u:0 g:0 shell
-r-xr-xr-x 50484 u:0 g:0 bundle_daemon
-r-xr-xr-x 13540 u:0 g:0 query.bin
-r-xr-xr-x 13440 u:0 g:0 foundation
-r-xr-xr-x 42264 u:0 g:0 camera_sample
-r-xr-xr-x 13540 u:0 g:0 media_server
-r-xr-xr-x 21724 u:0 g:0 appspawn
-r-xr-xr-x 25924 u:0 g:0 wms_server
-r-xr-xr-x 25880 u:0 g:0 player_sample
-r-xr-xr-x 13540 u:0 g:0 abilityMain
-r-xr-xr-x 13488 u:0 g:0 camera_app
-r-xr-xr-x 13792 u:0 g:0 hilogcat
-r-xr-xr-x 13488 u:0 g:0 apphilogcat
OHOS #
OHOS #
OHOS # ./camera_
camera_sample camera_app
OHOS # ./camera_sample
OHOS # Camera sample begin.
*******************************************
Select the behavior of avrecorder.
1: Capture
2: Record(Press s to stop)
3: Preview(Press s to stop)
q: quit the sample.
*******************************************
[Func]:cmos_set_wdr_mode [Line]:731 [Info]:linear mode
[JXF23] Date: Aug 26 2020
[JXF23] Time: 15:54:36
>> soi_sensor_init()
>> soi_sensor_linear_1080p30_init()
01-01 00:00:43.688 9 41 D 02B00/MultiMedia: {Initialize()-camera_service.cpp:45} Camera service initializing.
<< soi_sensor_linear_1080p30_init()
<< soi_sensor_init()
AvAdecInit:378
RegisterDummyDecoder:276
AddAdecDecoder 2 g_adecDecRegList.cnt:1
[ViIspThread]-1517: ISP Dev 0 running !
[Avplay] audio decoder load ok: /usr/lib/libhiaacdec.so
AddAdecDecoder 2 g_adecDecRegList.cnt:2
AvAdecRegisterDecoder:294 decoderFile:/usr/lib/libhimp3dec.so
AvAdecRegisterDecoder:294 decoderFile:/lib/libhimp3dec.so
reg libhimp3dec.so failed ffffffff
[AvAencInit][211] HI_MPI_AENC_AacInit :0x0
camera name:main
Sample recv OnCreate camera.
01-01 00:00:43.976 9 41 D 02B00/MultiMedia: {Initialize()-camera_device.cpp:516} Codec module init succeed.
01-01 00:00:43.978 9 41 D 02B00/MultiMedia: {OnCameraServiceInitialized()-camera_manager.cpp:44} Camera manager initializing.
01-01 00:00:43.978 9 41 D 02B00/MultiMedia: {GetCameraIds()-camera_manager.cpp:113} main
1
[DISPLAY I/] GrallocInitialize: gralloc initialize success
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:00:51.736 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:00:51.736 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:00:51.759 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 98251 bytes
Saving picture end
1
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:00:59.463 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:00:59.463 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:00:59.485 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 96327 bytes
Saving picture end
1
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:01:06.468 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:01:06.468 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:01:06.490 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 96849 bytes
Saving picture end
1
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:01:12.212 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:01:12.212 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:01:12.233 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 98602 bytes
Saving picture end
[ERR]vfs_jffs_ioctl NOT SUPPORT
write file switch /storage/data/log/hilog2.txt
1
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:01:28.359 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:01:28.359 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:01:28.383 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 101938 bytes
Saving picture end
1
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :26
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
[DISPLAY I/] AllocShm: Alloc shared memory succeed
01-01 00:01:34.263 9 41 D 02B00/MultiMedia: {TriggerSingleCapture()-camera_impl.cpp:126} Capture frame.(device=0x224ed740)
01-01 00:01:34.263 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:01:34.287 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:436} surface = 0x22a2fee0
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
Capture frame received.
Start saving picture
write 104126 bytes
Saving picture end
2
[FormatInit][198] SUCCESS
[Audio:V]AudioManagerLoadAdapter: adapter name internal_AIP
[Audio:I]AudioManagerLoadAdapter: supported this adapter internal_AIP
[Audio:I][AudioManagerLoadAdapter:112] adapterDescriptor ports:0x22a2f038 portNum:1
[Audio:I][AudioAdapterInitInputPortCapability][22]
Open /sdcard/Record0-1-45.mp4
output fd :71
[FormatMuxerCreate][276] formatMuxer *handle:0x22673050
[FormatMuxerSetMaxFileDuration][639] durationUs:36000
[FormatMuxerAddTrack][421]
[AddVideoTrack][323] muxerContext:0x22673050 trackSource:0x3ae41b88
[AddVideoTrack][330] streamCnt:0
[AddVideoTrack][332] trackCnt:0
codecType is CODEC_H265
[Audio:I][AudioCaptureDevicePrepare][160] HI_MPI_AI_SetPubAttr SUCCESS
[Audio:I]AudioAdapterCreateCapture: aiDeviceId: 0x0 aiChn:0x0 currentChannelId:0x150000
[CodecCreate:754] #########type:3
[CreateHandler:661] #########type3
[FillAencAttribute][509]
aenc not need param:4
param kParamIndexMimeType tmpLower :0x25
param PARAM_INDEX_BITRATE:48000
ConvertBitRate bitRate: 48000
param PARAM_INDEX_BITRATE: attrDst->enBitRate 48000
[AencCreateChn][199] HI_MPI_AENC_CreateChn SUCCESS
CodecCreate success
[FormatMuxerAddTrack][421]
[AddAudioTrack][382]
[AddAudioTrack][408] Recorder only support 2 Track
[PrepareFormatMuxerInternal][718] u32SplitTimeLenSec:36000
Rec_AllocBuf 9 buffersize 3110784
HI_REC_Create hRecHandle:0x226210a0
HI_MPI_SYS_BindenModId 21 aCapDev 0 aiChn 0 aEncChn 0
CodecSetParameter success
CodecStart success
[CodecCreate:754] #########type:1
[CreateHandler:661] #########type1
[FillVencAttribute][588]
venc not need param:4
param kParamIndexMimeType tmpLower :265
CodecCreate success
HI_MPI_SYS_BindenModId 7 vpssCapDev 0 vpssChn 0 vEncChn 0
CodecSetParameter success
CodecStart success
camera start recording succeed.
[VideoSourceStart][162]
====recorder start====
[00:01:46:095][REC] Rec_PrepareSplit 649 enManualType 2
[00:01:46:099][REC] Rec_Split_SetSplitBound u64Base pts 0
[00:01:46:104][REC] Rec_CreateFiles fileFd: 71
[00:01:46:108][REC] Rec_OpenFile 71
async process isOutputThreadRunning:1
[DISPLAY I/] AllocShm: Alloc shared memory succeed
EventCallback file fd :71 begin
[00:01:46:226][REC] set start read mode
[00:01:46:227][REC] set base pts 106069783
01-01 00:01:46.061 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:01:46.061 9 41 D 02B00/MultiMedia: {CameraCreateVideoEnc()-camera_device.cpp:90} picSize=5
01-01 00:01:46.061 9 41 D 02B00/MultiMedia: {CameraCreateVideoEnc()-camera_device.cpp:97} frameRate=30
01-01 00:01:46.086 9 41 D 02B00/MultiMedia: {Start()-camera_device.cpp:310} Start camera recording succeed.
01-01 00:01:46.119 9 46 E 02B00/MultiMedia: {VideoSourceProcess()-recorder_impl.cpp:763} videoSourceManager:0x8f2fc98
01-01 00:01:46.119 9 46 E 02B00/MultiMedia: {VideoSourceProcess()-recorder_impl.cpp:777} VideoSourceProcess sched_priority:20
01-01 00:01:46.121 9 48 E 02B00/MultiMedia: {AudioSourceProcess()-recorder_impl.cpp:681} audioSourceManager:0x8f2fc98
01-01 00:01:46.121 9 48 E 02B00/MultiMedia: {AudioSourceProcess()-recorder_impl.cpp:695} AudioSourceProcess sched_priority:19
3
connet lcd
[HalCreateCameraVideoOutput]-424: failed with 0xa00f8047!
camera start preview failed. ret=-3
01-01 00:02:02.085 9 41 D 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:532} Camera device start looping capture.
01-01 00:02:02.094 9 41 I 02B00/MultiMedia: {SetFrameConfig()-camera_device.cpp:373} Create preview video output failed.
01-01 00:02:02.094 9 41 I 02B00/MultiMedia: {TriggerLoopingCapture()-camera_device.cpp:560} Check and set frame config failed.(ret=-3)
01-01 00:02:02.094 9 41 I 02B00/MultiMedia: {TriggerLoopingCapture()-camera_impl.cpp:91} Camera device start looping capture failed.(ret=-3)
[ERR]vfs_jffs_ioctl NOT SUPPORT
write file switch /storage/data/log/hilog1.txt
q
AsyncOutputProcess:1497 out thread out
[AvVencStop][759]
[AvVencStop][762] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind srcDev 0 srcChn 0 dstChn 0
[AvVencStop][777] AvAencStop out
Receive frame complete inform.
01-01 00:02:07.896 9 46 E 02B00/MultiMedia: {VideoSourceProcess()-recorder_impl.cpp:800} videoSourceManager:0x8f2fc98 over
01-01 00:02:07.896 9 41 D 02B00/MultiMedia: {StopVideoSource()-recorder_impl.cpp:833} videoProcessThread.join[AvAencStop][339] AvAencStop
[AvAencStop][342] HI_MPI_SYS_UnBind in
HI_MPI_SYS_UnBind aCapDev 0 aiChn 0 aEncChn 0
[AvAencStop][352] AvAencStop out
[Audio:I]HI_MPI_AI_DisableChn in
01-01 00:02:07.896 9 41 D 02B00/MultiMedia: {StopVideoSource()-recorder_impl.cpp:835} videoProcessThread.join over[Audio:I]HI_MPI_AI_DisableChn out
[Audio:I]Audio HAL AdapterDestroyCapture out
FormatMuxerStop block :1
FormatMuxerStop timedwait REC_EVENT_STOP
01-01 00:02:07.896 9 41 D 02B00/MultiMedia: {Stop()-audio_encoder.cpp:267} AudioEncoder::Stop
01-01 00:02:07.923 9 48 E 02B00/MultiMedia: {AudioSourceProcess()-recorder_impl.cpp:718} audioSourceManager:0x8f2fc98 over
01-01 00:02:07.932 9 41 E 02B00/MultiMedia: {Stop()-audio_capturer_impl.cpp:182} audioSource Stop
01-01 00:02:07.932 9 41 E 02B00/MultiMedia: {Stop()-audio_source.cpp:189} AudioSource::Stop
01-01 00:02:07.952 9 41 E 02B00/MultiMedia: {Stop()-audio_capturer_impl.cpp:188} Stop Audio Capturer SUCCESS
01-01 00:02:07.952 9 41 D 02B00/MultiMedia: {StopAudioSource()-recorder_impl.cpp:747} audioSource->Stop out
01-01 00:02:07.952 9 41 D 02B00/MultiMedia: {StopAudioSource()-recorder_impl.cpp:752} audioProcessThread.join
01-01 00:02:07.952 9 41 D 02B00/MultiMedia: {StopAudioSource()-recorder_impl.cpp:754} audioProcessThread.join out
01-01 00:02:07.952 9 41 E 02B00/MultiMedia: {StopAudioSource()-recorder_impl.cpp:757} Stop Audio Source SUCCESS
FormatMuxerStop timedwait REC_EVENT_STOP
OHOS # [00:02:09:239][REC] Do BufMng_SetReadStopMode
[00:02:09:240][REC] Rec_CloseFile bAssociate 0
wait thm timeout
HI_MP4_DestroyAllTracks success
[00:02:09:459][FILEIO] close fd:71
[00:02:09:522][REC] enSpliteState 0
[VideoSourceStop][172]
[AudioSourceStop][191]
~~~~recorder end~~~~cost :1569 ms
recorder handle not created
01-01 00:02:09.527 9 41 E 02B00/MultiMedia: {Stop()-recorder_impl.cpp:1019} Stop Recorder SUCCESS
01-01 00:02:09.530 9 41 E 02B00/MultiMedia: {Release()-recorder_impl.cpp:1076} Recorder Released
01-01 00:02:09.530 9 41 E 02B00/MultiMedia: {Release()-audio_capturer_impl.cpp:204} Release Audio Capturer SUCCESS[Audio:I]AudioManagerUnloadAdapter: found this adapter 0x22a2f07c
[Audio:I]HI_MPI_AI_Disable in
[Audio:I]HI_MPI_AI_Disable out
Camera sample end.
01-01 00:02:09.562 9 41 E 02B00/MultiMedia: {~AudioEncoder()-audio_encoder.cpp:47} AudioEncoder dtor
01-01 00:02:09.562 9 41 D 02B00/MultiMedia: {~AudioSource()-audio_source.cpp:65} audioAdapter_ :0x22a2f07c
01-01 00:02:09.562 9 41 E 02B00/MultiMedia: {~AudioSource()-audio_source.cpp:67} audioAdapter_ UnloadModule: 0x22a2f07c
delete sensor lib
OHOS #
OHOS #
OHOS #
OHOS #
OHOS #
OHOS #
OHOS #
OHOS #
OHOS #
OHOS # pwd
/bin
OHOS #
OHOS #
OHOS # cd ..
OHOS #
OHOS #
OHOS # pwd
/
OHOS #
OHOS #
OHOS # ls
Directory /:
drwxr-xr-x 0 u:0 g:0 dev
dr-xr-xr-x 0 u:0 g:0 proc
drwxrwxrwx 0 u:0 g:0 sdcard
drwxr-xr-x 0 u:0 g:0 storage
dr-xr-xr-x 0 u:0 g:0 etc
dr-xr-xr-x 0 u:0 g:0 bin
dr-xr-xr-x 0 u:0 g:0 lib
dr-xr-xr-x 0 u:0 g:0 usr
dr-xr-xr-x 0 u:0 g:0 vendor
dr-xr-xr-x 0 u:0 g:0 system
OHOS #
OHOS #
OHOS # cd /sdcard
OHOS #
OHOS #
OHOS # ls
Directory /sdcard:
drwxrwxrwx 0 u:0 g:0 System Volume Information
-rwxrwxrwx 98251 u:0 g:0 Capture0-0-51.jpg
-rwxrwxrwx 96327 u:0 g:0 Capture0-0-59.jpg
-rwxrwxrwx 96849 u:0 g:0 Capture0-1-6.jpg
-rwxrwxrwx 98602 u:0 g:0 Capture0-1-12.jpg
-rwxrwxrwx 101938 u:0 g:0 Capture0-1-28.jpg
-rwxrwxrwx 104126 u:0 g:0 Capture0-1-34.jpg
-rwxrwxrwx 14406099 u:0 g:0 Record0-1-45.mp4
OHOS #
OHOS #
OHOS #
OHOS # cd ..
OHOS #
OHOS #
OHOS # pwd
/
OHOS #
OHOS #
OHOS #
OHOS # ls
Directory /:
drwxr-xr-x 0 u:0 g:0 dev
dr-xr-xr-x 0 u:0 g:0 proc
drwxrwxrwx 0 u:0 g:0 sdcard
drwxr-xr-x 0 u:0 g:0 storage
dr-xr-xr-x 0 u:0 g:0 etc
dr-xr-xr-x 0 u:0 g:0 bin
dr-xr-xr-x 0 u:0 g:0 lib
dr-xr-xr-x 0 u:0 g:0 usr
dr-xr-xr-x 0 u:0 g:0 vendor
dr-xr-xr-x 0 u:0 g:0 system
OHOS #
OHOS #
OHOS #
[END] 2021/2/24 18:14:04
照片+视频参数:
更多推荐
所有评论(0)