6818 编译 提供的 摄像代码 运行出错
用提供的 qmake 和 交叉编译工具 编译 app-cmd 下的 camera 代码 在开发板上运行时 拍照 是正常的但 摄像时 会出错(直接运行 开发板自带的camera程序拍照和摄像都是正常的)//错误 如下:
# ./camera
start camera ov5640
start camera ov5645
quit
Enter your selection: 2
2
[ 78.902000] ov5645: ov5645_link_setup
[ 78.905000] hdc mipi_vin_setup_io
[ 78.905000] mipi_phy_enable
[ 78.907000] ov5645: ov5645_s_power: on 1
[ 78.913000] hdc mipi_vin_setup_io
[ 78.914000] mipi_phy_enable
[ 78.917000] ov5645: ov5645_s_power: on 1
[ 78.921000] ov5645: ov5645_s_fmt: 1600x1200
[ 78.925000] ov5645: ov5645_s_mbus_fmt
[ 78.928000] ov5645: ov5645_set_params
[ 78.932000] ov5645: ov5645_select_win
[ 78.936000] nxp_mlc_set_crop: pad(1), crop(0,0,1280,640)
[ 78.941000] nxp_mlc_set_crop: pad(1), crop(0,0,1280,640)
[ 78.949000] back_camera_power_enable: is_back_camera_enabled 0, on 1
[ 78.965000] ov5645: ov5645_s_stream: enable 1, initialized 0
[ 78.966000] ov5645: OV5645 Chip ID 0x5645 detected
[ 78.969000] ov5645: enter ov5645_init
take photo
record a video
quit
Enter your selection:
take photo
record a video
quit
Enter your selection:
[ 79.442000] ov5645: ov5645_s_stream reg_write_array init regs
[ 79.469000] ov5645: ov5645_s_stream: reg_write_array win regs
[ 79.469000] ov5645: ov5645_set_mbusformat
[ 79.821000] nxp_mlc_s_stream: enable 1, client VIDEO MLC VID0, is_video 1
[ 79.822000] _hw_configure_video 0: fw(1280), fh(640), crop(0:0:1280:640), priority(0), format(0x3053564d)
[ 79.846000] _hw_video_enable: module 0, enable 1
[ 83.184000] ov5645: reg_wait_stat status 70
2
NX_VidEncInit() success
Encoder Header Size = 21
take photo
record a video
quit
Enter your selection:
take photo
record a video
quit
Enter your selection:
[ 0]FrameType = 1, size = 125172, bitRate = inf kbps, Qp = 22, PSNR = 40.967880, time= 6
[ 89.909000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
[ 89.917000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bd))
[ 89.937000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
[ 1]FrameType = 1, size = 125172, bitRate = 60082.560 kbps, Qp = 22, PSNR = 34.956001, time=1045
[ 91.211000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
[ 91.221000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bf))
[ 91.239000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
[ 2]FrameType = 1, size = 125172, bitRate = 45061.920 kbps, Qp = 22, PSNR = 34.777344, time=1045
[ 92.523000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(400) : VPU HW Timeout!
[ 92.531000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/src/nx_vpu_api.c(477) : VPU_WaitVpuInterrupt() TimeOut!!!(reason = 0x00000000, CurPC(0xBD 0xBF : bd bd bd))
[ 92.551000] /diske3/xxz/sh/lc/4/forlinx/OKxx18-source-android51/linux/kernel/kernel-3.4.39/modules/coda960/linux/linux_vpu_drv.c(372) : NX_VpuEncRunFrame() failed.(ErrorCode=-20)
nx_video_api.c(516) : IOCTL_VPU_ENC_RUN_FRAME ioctl failed!!!
[ 3]FrameType = 1, size = 125172, bitRate = 40055.040 kbps, Qp = 22, PSNR = 34.801540, time=1046
当我把 编码器的 分辨率 改在 1920x1088 以内即可 解决 该问题
页:
[1]