This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

failed to create capture device

Hi,

I am trying to run  encodedecode in the dvsdk_demos_2_10_00_17 for dm365,it's ok if i don't compile it myself and just run it ,but it dosen't work after i compile it myself,the debug messages like this:

@0x000eaf5e:[T:0x4001ee20] 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.
@0x00153964:[T:0x4001ee20] ti.sdo.dmai - [Capture] COMPOSITE input selected                                                                                             
@0x001a57eb:[T:0x4001ee20] ti.sdo.dmai - [Capture] Checking video standard                                                                                              
@0x001a5b54:[T:0x4001ee20] ti.sdo.dmai - [Capture] Capture input set to COMPOSITE                                                                                       
@0x001a5cfc:[T:0x4001ee20] ti.sdo.dmai - [BufTab] Allocating BufTab for 6 buffers                                                                                       
@0x001a5f80:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x402f2000 (0x871d6000 phys)                                                           
@0x001a61b5:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x4046c000 (0x8705c000 phys)                                                           
@0x001a6449:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x405e6000 (0x86ee2000 phys)                                                           
@0x001a6656:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40760000 (0x86d68000 phys)                                                           
@0x001a6852:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x408da000 (0x86bee000 phys)                                                           
@0x001a6a35:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40a54000 (0x86a74000 phys)                                                           
===================1=======================                                                                                                          
@0x0020d2e3:[T:0x4001ee20] ti.sdo.dmai - [Capture] COMPOSITE input selected                                                                                             
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 2                                                                                              
@0x0025edba:[T:0vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 2                                                                              
x4001ee20] ti.sdo.dmai - [Capture] Checking video standard                                                                                                              
@0x0025ef26:[T:0x4001ee20] ti.sdo.dmai - [Capture] Capture input set to COMPOSITE                                                                                       
[DMAI][capture.c] videoStd=5, width=720, height=480                                                                                                                     
[DMAI][capture.c] 2 videoStd=5, width=720, height=480                                                                                                                   
@0x0025f05f:[T:0x4001ee20] ti.sdo.dmai - [Capture] Capture dimention is set to 480x720                                                                                  
@0x00262bfd:[T:0x4001ee20] ti.sdo.dmai - [Capture] Video input connected size 720x480 pitch 1440                                                                        
pixelFormat 1=842094158, 2=1498831189                                                                                                                                   
[DMAI][CAP]                     12                                                                                                                                      
@0x00262d77:[T:0x4001ee20] ti.sdo.dmai - [Capture] Pixel format 0x3231564e not supported. Received 59565955                                                             
Failed to create capture device                                                                                                                                         
@0x002630ba:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x402f2000 (0x871d6000 phys)                                                            
@0x00263bc2:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x4046c000 (0x8705c000 phys)                                                            
@0x00264660:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x405e6000 (0x86ee2000 phys)                                                            
@0x00265191:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40760000 (0x86d68000 phys)                                                            
@0x00265c3c:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x408da000 (0x86bee000 phys)                                                            
@0x002666d8:[T:0x4001ee20] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40a54000 (0x86a74000 phys)

And i find the problem maybe:
I set the Pixel is V4L2_PIX_FMT_NV12(ColorSpace is ColorSpace_YUV420PSEMI), but when the Capture_create in DMAI calls the iotcl VIDIOC_TRY_FMT,
the Pixel becomes to V4L2_PIX_FMT_UYVY(ColorSpace is ColorSpace_UYVY),so i try to modify it in Caputure.c,but it still dosen't work.And i also try to add some messages to be printed,but they are never printed.So i doubt that whether the Capture.c(dmai_1_21_00_10/.../dmai/linux/Capture.c) is linked or the soucecode has fixed the Capture.c in the library.What should i modify it if it is fixed? Anyone can help me ?

Thank you !