嵌入式爱好者

查看: 7589|回复: 1

[Linux] 6818 编译 提供的 摄像代码 运行出错

[复制链接]
回帖奖励 150 贡献 回复本帖可获得 150 贡献奖励! 每人限 1 次

2

主题

3

帖子

19

积分

XX18通行证

扫一扫,手机访问本帖
发表于 2018-10-19 18:53:07 | 显示全部楼层 |阅读模式
用提供的 qmake 和 交叉编译工具 编译 app-cmd 下的 camera 代码 在开发板上运行时 拍照 是正常的  但 摄像时 会出错(直接运行 开发板自带的camera程序  拍照和摄像都是正常的)
//错误 如下:

# ./camera                                                                                       
[1] start camera ov5640
[2] start camera ov5645
[3] 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
[1] take photo
[2] record a video
[3] quit
Enter your selection:
[1] take photo
[2] record a video
[3] 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
[1] take photo
[2] record a video
[3] quit
Enter your selection:
[1] take photo
[2] record a video
[3] quit
Enter your selection:
[   0]FrameType = 1, size =   125172, bitRate =    inf kbps, Qp = 22, PSNR = 40.967880, time=     6
[   89.909000] [DRV|VPU_API]/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] [DRV|VPU_API]/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] [VPU|DRV]/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)
[VPU|API] 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] [DRV|VPU_API]/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] [DRV|VPU_API]/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] [VPU|DRV]/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)
[VPU|API] 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] [DRV|VPU_API]/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] [DRV|VPU_API]/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] [VPU|DRV]/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)
[VPU|API] 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


回复

使用道具 举报

2

主题

3

帖子

19

积分

XX18通行证

 楼主| 发表于 2018-10-22 11:14:11 | 显示全部楼层
当我把 编码器的 分辨率 改在 1920x1088 以内即可 解决 该问题

评分

参与人数 1贡献 +100 收起 理由
admin + 100 赞一个!

查看全部评分

点评回复 支持 1 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-3-29 21:59

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表