TI中文支持网
TI专业的中文技术问题搜集分享网站

DM368平台MT9P031 关于执行DMAI_DEBUG=2 ./encode -v 2.264 出现Failed to set video input to 2 (Invalid argument)错误提示!

当没有接摄像头的日志是:
root@dm368-evm:/usr/share/ti/dvsdk-demos# DMAI_DEBUG=2 ./encode -v 2.264 Encode demo started. @0x0007dfe7:[T:0x4001f070] ti.sdo.dmai – [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior. @0x00095a7e:[T:0x4001f070] ti.sdo.dmai – [Display] Found width=720 height=576, yres_virtual=576,xres_virtual=720, line_length=384 @0x00095bf3:[T:0x4001f070] ti.sdo.dmai – [Display] Setting width=720 height=576, yres_virtual=576, xres_virtual=720 @0x00095cc2:[T:0x4001f070] ti.sdo.dmai – [Display] New width=720, height=576, yres_virtual=576,xres_virtual=720, line_length=384 @0x00095d96:[T:0x4001f070] ti.sdo.dmai – [BufTab] Allocating BufTab for 1 buffers @0x00095efb:[T:0x4001f070] ti.sdo.dmai – [Buffer] Set user pointer 0x40309000 (physical 0x82300000) @0x000963c2:[T:0x4001f070] ti.sdo.dmai – [Display] Display buffer 0 mapped to 0x40309000 has physical address 0xc550 @0x0009ae81:[T:0x40b3e490] ti.sdo.dmai – [BufTab] Allocating BufTab for 3 buffers @0x0009b061:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40b3f000 (0x84000000 phys) @0x0009b249:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40c91000 (0x84152000 phys) @0x0009b42f:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40de3000 (0x842a4000 phys) @0x0009b4fd:[T:0x40b3e490] ti.sdo.dmai – [BufTab] Allocating BufTab for 4 buffers @0x0009b6b0:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40f35000 (0x843f6000 phys) @0x0009b89a:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x41087000 (0x84548000 phys) @0x0009ba78:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124 0x411d9000 (0x8469a000 phys) @0x0009bc5e:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at davinci_previewer davinci_previewer.2: ipipe_set_preview_config 0x4132b000 (0x847ec000 phys) @0—–mt9p031_set_params()..write reg error.. x0009c197:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Creating encoder h264enc for max 1280×720 bitrate 2000000 ratectrl 4 @0x000b4555:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Setting dynParams size 1280×720 bitrate 2000000 @0x000b47d9:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Made XDM_SETPARAMS control call @0x000b4f25:[T:0x40b3e490] ti.sdo.dmai – [Resize] Successfully set mode to continuous in resizer @0x000b6c8e:[T:0x40b3e490] ti.sdo.dmai – [Resize] Resizer initialized @0x000b6f2c:[T:0x42ad3490] ti.sdo.dmai – [BufTab] Allocating BufTab for 10 buffers @0x000b7131:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42ad4000 (0x84d40000 phys) @0x000b7343:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42c26000 (0x84e92000 phys) @0x000b754b:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42d78000 (0x84fe4000 phys) @0x000b777d:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42eca000 (0x85136000 phys) @0x000b7a00:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x4301c000 (0x85288000 phys) @0x000b7c31:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x4316e000 (0x853da000 phys) @0x000b7e5a:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x432c0000 (0x8552c000 phys) @0x000b806e:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x43412000 (0x8567e000 phys) @0x000b82a1:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x43564000 (0x857d0000 phys) @0x000b84ae:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x436b6000 (0x85922000 phys) @0x000b86c3:[T:0x40b3e490] ti.sdo.dmai – [Resize] Operating mode changed successfully to continuous in previewer @0x000ba704:[T:0x40b3e490] ti.sdo.dmai – [Resize] Previewer initialized @0x000bc011:[T:0x40b3e490] ti.sdo.dmai – [Capture] Cannot open /dev/video0 (No such device) Error: Failed to create capture device. Is video input connected? @0x000c293f:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42ad4000 (0x84d40000 phys) @0x000c3455:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42c26000 (0x84e92000 phys) @0x000c4022:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42d78000 (0x84fe4000 phys) @0x000c4b3f:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42eca000 (0x85136000 phys) @0x000c5652:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4301c000 (0x85288000 phys) @0x000c616d:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4316e000 (0x853da000 phys) @0x000c6415:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40b3f000 (0x84000000 phys) @0x000c78fd:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40c91000 (0x84152000 phys) @0x000c83f8:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40de3000 (0x842a4000 phys) @0x000c8afc:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x432c0000 (0x8552c000 phys) @0x000c90d8:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40f35000 (0x843f6000 phys) @0x000c9be7:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x41087000 (0x84548000 phys) @0x000ca6f1:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x411d9000 (0x8469a000 phys) @0x000cbd69:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x43412000 (0x8567e000 phys) @0x000cc883:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x43564000 (0x857d0000 phys) @0x000cd3a5:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x436b6000 (0x85922000 phys) @0x000ce1a7:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4132b000 (0x847ec000 phys)
当我接上摄像头后日志:

root@dm368-evm:/usr/share/ti/dvsdk-demos# DMAI_DEBUG=2 ./encode -v 2.264 Encode demo started. @0x0004a8ed:[T:0x4001f070] ti.sdo.dmai – [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior. @0x0006262d:[T:0x4001f070] ti.sdo.dmai – [Display] Found width=720 height=576, yres_virtual=576,xres_virtual=720, line_length=384 @0x0006279c:[T:0x4001f070] ti.sdo.dmai – [Display] Setting width=720 height=576, yres_virtual=576, xres_virtual=720 @0x00062865:[T:0x4001f070] ti.sdo.dmai – [Display] New width=720, height=576, yres_virtual=576,xres_virtual=720, line_length=384 @0x00062937:[T:0x4001f070] ti.sdo.dmai – [BufTab] Allocating BufTab for 1 buffers @0x00062a9a:[T:0x4001f070] ti.sdo.dmai – [Buffer] Set user pointer 0x40309000 (physical 0x82300000) @0x00062f5e:[T:0x4001f070] ti.sdo.dmai – [Display] Display buffer 0 mapped to 0x40309000 has physical address 0xc550 @0x00067a4e:[T:0x40b3e490] ti.sdo.dmai – [BufTab] Allocating BufTab for 3 buffers @0x00067c2f:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40b3f000 (0x84000000 phys) @0x00067e0d:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40c91000 (0x84152000 phys) @0x00067ff0:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40de3000 (0x842a4000 phys) @0x000680bf:[T:0x40b3e490] ti.sdo.dmai – [BufTab] Allocating BufTab for 4 buffers @0x00068268:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x40f35000 (0x843f6000 phys) @0x00068458:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x41087000 (0x84548000 phys) @0x0006863a:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124 0x411d9000 (0x8469a000 phys) @0x00068846:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at davinci_previewer davinci_previewer.2: ipipe_set_preview_config 0x4132b000 (0x847ec000 phys) @0x00068d5e:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Creating encoder h264enc for max 1280×720 bitrate 2000000 ratectrl 4 @0x00081078:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Setting dynParams size 1280×720 bitrate 2000000 @0x000812f1:[T:0x41c7c490] ti.sdo.dmai – [Venc1] Made XDM_SETPARAMS control call @0x00081b8e:[T:0x40b3e490] ti.sdo.dmai – [Resize] Successfully set mode to continuous in resizer @0x00083808:[T:0x40b3e490] ti.sdo.dmai – [Resize] Resizer initializedvpfe-capture vpfe-capture: IPIPE Chained

@0x00083a47:[Tvpfe-capture vpfe-capture: Resizer present :0x42ad3490] ti.sdo.dmai – [BufTab] Allocating BufTab for 10 buffers @0x00083c49:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42ad4000 (0x84d40000 phys) @0x00083e58:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42c26000 (0x84e92000 phys) @0x00084067:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42d78000 (0x84fe4000 phys) @0x0008427c:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x42eca000 (0x85136000 phys) @0x00084492:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x4301c000 (0x85288000 phys) @0x0008474b:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x4316e000 (0x853da000 phys) @0x00084974:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x432c0000 (0x8552c000 phys) @0x00084b8b:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x43412000 (0x8567e000 phys) @0x00084dbe:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x43564000 (0x857d0000 phys) @0x00084fd6:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Alloc Buffer of size 1382400 at 0x436b6000 (0x85922000 phys) @0x00085258:[T:0x40b3e490] ti.sdo.dmai – [Resize] Operating mode changed successfully to continuous in previewer @0x0008727f:[T:0x40b3e490] ti.sdo.dmai – [Resize] Previewer initialized @0x00094035:[T:0x40b3e490] ti.sdo.dmai – [Capture] Component input selected @0x0009425e:[T:0x40b3e490] ti.sdo.dmai – [Capture] Failed to set video input to 2 (Invalid argument) Error: Failed to create capture device. Is video input connected? @0x0009a811:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42ad4000 (0x84d40000 phys) @0x0009b325:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42c26000 (0x84e92000 phys) @0x0009be31:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42d78000 (0x84fe4000 phys) @0x0009c945:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x42eca000 (0x85136000 phys) @0x0009d4f5:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4301c000 (0x85288000 phys) @0x0009dfff:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4316e000 (0x853da000 phys) @0x0009eb08:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x432c0000 (0x8552c000 phys) @0x0009f69f:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x43412000 (0x8567e000 phys) @0x000a019c:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x43564000 (0x857d0000 phys) @0x000a0cb2:[T:0x42ad3490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x436b6000 (0x85922000 phys) @0x000a1ae7:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40b3f000 (0x84000000 phys) @0x000a2609:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40c91000 (0x84152000 phys) @0x000a3125:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40de3000 (0x842a4000 phys) @0x000a3c2a:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x40f35000 (0x843f6000 phys) @0x000a47b3:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x41087000 (0x84548000 phys) @0x000a52ab:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x411d9000 (0x8469a000 phys) @0x000a5dba:[T:0x40b3e490] ti.sdo.dmai – [Buffer] Free Buffer of size 1382400 at 0x4132b000 (0x847ec000 phys)

我是在\davinci_smb\dm368\dvsdk_dm368_4_02_00_06\dvsdk-demos_4_02_00_01\编译的encode   和 decode ;执行 命令如上日志;
请帮我看看是哪里有问题;另外我的cmos传感器上的时钟信号是有的;谢谢!

yecx cang:

没接摄像头会显示@0x000b86c3:[T:0x40b3e490] ti.sdo.dmai – [Resize] Operating mode changed successfully to continuous in previewer @0x000ba704:[T:0x40b3e490] ti.sdo.dmai – [Resize] Previewer initialized @0x000bc011:[T:0x40b3e490] ti.sdo.dmai – [Capture] Cannot open /dev/video0 (No such device) Error: Failed to create capture device. Is video input connected?接了摄像头后显示:@0x00085258:[T:0x40b3e490] ti.sdo.dmai – [Resize] Operating mode changed successfully to continuous in previewer @0x0008727f:[T:0x40b3e490] ti.sdo.dmai – [Resize] Previewer initialized @0x00094035:[T:0x40b3e490] ti.sdo.dmai – [Capture] Component input selected @0x0009425e:[T:0x40b3e490] ti.sdo.dmai – [Capture] Failed to set video input to 2 (Invalid argument) Error: Failed to create capture device. Is video input connected?这个是不是说明我的摄像头能接入,但无法接受数据?

赞(0)
未经允许不得转载:TI中文支持网 » DM368平台MT9P031 关于执行DMAI_DEBUG=2 ./encode -v 2.264 出现Failed to set video input to 2 (Invalid argument)错误提示!
分享到: 更多 (0)