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.

Can DM365 detect between Component and Composite?

Other Parts Discussed in Thread: TVP5146, TVP7002

I am using the DVSDK (v 3.10) to capture and display a video feed. I am trying to use the Capture_detectVideoStd function to automatically detect between Composite and Component video inputs.

At first I tried detectVideoStd with the videoStd parameter as VideoStd_AUTO and Capture_Input_COMPOSITE. As expected this succeeds with Composite video input and fails with Component input. But when try a subsequent call to detectVideoStd with Capture_Input_COMPONENT, the call to Capture_create fails for alternate runs of the program (i.e. it fails every-other time). The inverse - testing for COMPONENT then COMPOSITE with Composite video plugged in - fails also in Capture_create for alternate runs.
This is my sequence of commands:
cAttrs = Capture_Attrs_DM365_DEFAULT;
cAttrs.videoStd = VideoStd_AUTO;
cAttrs.videoInput = Capture_Input_COMPONENT;
if (Capture_detectVideoStd(NULL, videoStd, &cAttrs) < 0) {
cAttrs.videoInput = Capture_Input_COMPOSITE;
if (Capture_detectVideoStd(NULL, videoStd, &cAttrs) < 0)
ERR("Failed to detect video standard\n");
}
else {
hBufTab = BufTab_create(3, bufSize, BufferGfx_getBufferAttrs(&gfxAttrs));
hCapture = Capture_create(hBufTab, &cAttrs);
}
Is this a valid use of the Capture_detectVideoStd function? Is there another method to detect between Component and Composite video input?

 

  • This scenario is not tried in DVSDK. Can you please run your application with DMAI_DEBUG=2 and send the log?

    Regards

    Sajesh

  • I set DMAI_DEBUG=2 in the environment, but the program output was the same as before.

    This is the log. During the first run, the program failed to create the capture device; the second run was successful.

    -sh-4.1# ./pip2                                                                
    EVM: switch to tvp5146 SD video input                                          
    Encodedecode demo started.                                                     
    Opening command socket: 56561                                                  
    Trying input 1, std 0                                                          
    starting data port: 256 x 192 (98304)                                          
    Opening data socket: 14703                                                     
    EVM: switch to tvp7002 HD video input                                          
    Trying input 2, std 0                                                          
    reg 0, val = 2                                                                 
    reg 1, val = 67                                                                
    reg 2, val = 20                                                                
    reg 3, val = a0                                                                
    reg 4, val = 80                                                                
    reg 5, val = 32                                                                
    reg 6, val = 20                                                                
    reg 7, val = 60                                                                
    reg 8, val = 0                                                                 
    reg 9, val = 0                                                                 
    reg a, val = 0                                                                 
    reg b, val = 80                                                                
    reg c, val = 80                                                                
    reg d, val = 80                                                                
    reg e, val = 20                                                                
    reg f, val = 2e                                                                
    reg 10, val = 5d                                                               
    reg 11, val = 47                                                               
    reg 12, val = 0                                                                
    reg 13, val = 0                                                                
    reg 14, val = 2d                                                               
    reg 15, val = 47                                                               
    reg 16, val = 1                                                                
    reg 17, val = 0                                                                
    reg 18, val = 1                                                                
    reg 19, val = 0                                                                
    reg 1a, val = 67                                                               
    reg 1b, val = 77                                                               
    reg 1c, val = 7                                                                
    reg 1d, val = 0                                                                
    reg 1e, val = 10                                                               
    reg 1f, val = 10                                                               
    reg 20, val = 10                                                               
    reg 21, val = 8                                                                
    reg 22, val = 0                                                                
    reg 23, val = 8                                                                
    reg 24, val = d2                                                               
    reg 25, val = 9                                                                
    reg 26, val = 80                                                               
    reg 27, val = c                                                                
    reg 28, val = 53                                                               
    reg 29, val = 8                                                                
    reg 2a, val = 7                                                                
    reg 2b, val = 0                                                                
    reg 2c, val = 50                                                               
    reg 2d, val = 0                                                                
    reg 2e, val = 80                                                               
    reg 2f, val = 8c                                                               
    reg 30, val = 4                                                                
    reg 31, val = 5a                                                               
    reg 32, val = 18                                                               
    reg 33, val = 60                                                               
    reg 34, val = 3                                                                
    reg 35, val = 10                                                               
    reg 36, val = 0                                                                
    reg 37, val = 2                                                                
    reg 38, val = 20                                                               
    reg 39, val = 0                                                                
    reg 3a, val = 0                                                                
    reg 3b, val = 0                                                                
    reg 3c, val = 2                                                                
    reg 3d, val = 3                                                                
    reg 3e, val = 4                                                                
    reg 3f, val = 1                                                                
    reg 40, val = 47                                                               
    reg 41, val = 1                                                                
    reg 42, val = 4b                                                               
    reg 43, val = 6                                                                
    reg 44, val = 5                                                                
    reg 45, val = 0                                                                
    reg 46, val = 2d                                                               
    reg 47, val = 0                                                                
    reg 48, val = 0                                                                
    reg 49, val = 0                                                                
    reg 4a, val = e3                                                               
    reg 4b, val = 16                                                               
    reg 4c, val = 4f                                                               
    reg 4d, val = 2                                                                
    reg 4e, val = ce                                                               
    reg 4f, val = 6                                                                
    reg 50, val = ab                                                               
    reg 51, val = f3                                                               
    reg 52, val = 0                                                                
    reg 53, val = 10                                                               
    reg 54, val = 55                                                               
    reg 55, val = fc                                                               
    reg 56, val = 78                                                               
    reg 57, val = f1                                                               
    reg 58, val = 88                                                               
    reg 59, val = fe                                                               
    reg 5a, val = 0                                                                
    reg 5b, val = 10                                                               
    tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2                           
    EVM: switch to tvp5146 SD video input                                          
    Trying input 0, std 0                                                          
    davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124                        
    CAPTURE: User resolution (720x48davinci_previewer davinci_previewer.2: ipipe_set
    _preview_config                                                                
    0), Video standadavinci_previewer davinci_previewer.2: ipipe_set_preview_config
    rd (5)                                                                         
    EVM: switch to tvp5146 SD video input                                          
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2                  
    vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesper
    line = 1440, sizeimage = 691200                                                
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2                  
    vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesper
    line = 1440, sizeimage = 691200                                                
    Error: Failed to create capture device                                         
    Display: InputStd 5                                                            
    Process one buffer to figure out buffer requirements                           
    davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:                      
    layer.pix_fmt.bytesperline = 736,                                              
     layer.pix_fmt.width = 720,                                                    
     layer.pix_fmt.height = 480,                                                   
     layer.pix_fmt.sizeimage =529920                                               
    davinci_v4l2 davinci_v4l2.1: pixfmt->width = 720,                              
     layer->layer_info.config.line_length= 736                                     
    ^C                                                                             
    -sh-4.1# echo $DMAI_DEBUG                                                      
    2                                                                              
    -sh-4.1# ./pip2                                                                
    Encodedecode demo started.                                                     
    Opening command socket: 56561                                                  
    vpfe-capture vpfe-capture: IPIPE Chained                                       
    Trying input 1, vpfe-capture vpfe-capture: Resizer present                     
    std 0                                                                          
    EVM: switch to tvp5146 SD video input                                          
    starting data port: 256 x 192 (98304)                                          
    Opening data socket: 14703                                                     
    EVM: switch to tvp7002 HD video input                                          
    Trying input 2, std 0                                                          
    reg 0, val = 2                                                                 
    reg 1, val = 67                                                                
    reg 2, val = 20                                                                
    reg 3, val = a0                                                                
    reg 4, val = 80                                                                
    reg 5, val = 32                                                                
    reg 6, val = 20                                                                
    reg 7, val = 60                                                                
    reg 8, val = 0                                                                 
    reg 9, val = 0                                                                 
    reg a, val = 0                                                                 
    reg b, val = 80                                                                
    reg c, val = 80                                                                
    reg d, val = 80                                                                
    reg e, val = 20                                                                
    reg f, val = 2e                                                                
    reg 10, val = 5d                                                               
    reg 11, val = 47                                                               
    reg 12, val = 0                                                                
    reg 13, val = 0                                                                
    reg 14, val = 2d                                                               
    reg 15, val = 47                                                               
    reg 16, val = 1                                                                
    reg 17, val = 0                                                                
    reg 18, val = 1                                                                
    reg 19, val = 0                                                                
    reg 1a, val = 67                                                               
    reg 1b, val = 77                                                               
    reg 1c, val = 7                                                                
    reg 1d, val = 0                                                                
    reg 1e, val = 10                                                               
    reg 1f, val = 10                                                               
    reg 20, val = 10                                                               
    reg 21, val = 8                                                                
    reg 22, val = 0                                                                
    reg 23, val = 8                                                                
    reg 24, val = d2                                                               
    reg 25, val = 9                                                                
    reg 26, val = 80                                                               
    reg 27, val = c                                                                
    reg 28, val = 53                                                               
    reg 29, val = 8                                                                
    reg 2a, val = 7                                                                
    reg 2b, val = 0                                                                
    reg 2c, val = 50                                                               
    reg 2d, val = 0                                                                
    reg 2e, val = 80                                                               
    reg 2f, val = 8c                                                               
    reg 30, val = 4                                                                
    reg 31, val = 5a                                                               
    reg 32, val = 18                                                               
    reg 33, val = 60                                                               
    reg 34, val = 3                                                                
    reg 35, val = 10                                                               
    reg 36, val = 0                                                                
    reg 37, val = 2                                                                
    reg 38, val = 20                                                               
    reg 39, val = 0                                                                
    reg 3a, val = 0                                                                
    reg 3b, val = 0                                                                
    reg 3c, val = 2                                                                
    reg 3d, val = 3                                                                
    reg 3e, val = 4                                                                
    reg 3f, val = 1                                                                
    reg 40, val = 47                                                               
    reg 41, val = 1                                                                
    reg 42, val = 4b                                                               
    reg 43, val = 6                                                                
    reg 44, val = 5                                                                
    reg 45, val = 0                                                                
    reg 46, val = 2d                                                               
    reg 47, val = 0                                                                
    reg 48, val = 0                                                                
    reg 49, val = 0                                                                
    reg 4a, val = e3                                                               
    reg 4b, val = 16                                                               
    reg 4c, val = 4f                                                               
    reg 4d, val = 2                                                                
    reg 4e, val = ce                                                               
    reg 4f, val = 6                                                                
    reg 50, val = ab                                                               
    reg 51, val = f3                                                               
    reg 52, val = 0                                                                
    reg 53, val = 10                                                               
    reg 54, val = 55                                                               
    reg 55, val = fc                                                               
    reg 56, val = 78                                                               
    reg 57, val = f1                                                               
    reg 58, val = 88                                                               
    reg 59, val = fe                                                               
    reg 5a, val = 0                                                                
    reg 5b, val = 10                                                               
    tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2                           
    EVM: switch to tvp5146 SD video input                                          
    Trying input 0, std 0                                                          
    davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124                        
    CAPTURE: User resolution (720x48davinci_previewer davinci_previewer.2: ipipe_set
    _preview_config                                                                
    0), Video standadavinci_previewer davinci_previewer.2: ipipe_set_preview_config
    rd (5)                                                                         
    EVM: switch to tvp5146 SD video input                                          
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 1                  
    vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 1, bytesper
    line = 736, sizeimage = 529920                                                 
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 1                  
    vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 1, bytesper
    line = 736, sizeimage = 529920                                                 
    Display: InputStd 5                                                            
    davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:                      
    layer.pix_fmt.bytesperline = 736,                                              
     layer.pix_fmt.width = 720,                                                    
     layer.pix_fmt.height = 480,                                                   
     layer.pix_fmt.sizeimage =529920                                               
    davinci_v4l2 davinci_v4l2.1: pixfmt->width = 720,                              
     layer->layer_info.config.line_length= 736                                     
    Process one buffer to figure out buffer requirements                           
    Prime the display thread                                                       
    dst = 0,0, Dim = 720 x 480                                                     
    pip = 144,240, Dim = 128 x 96                                                  
    tvp514x 1-005d: Write: retry ... 0                                             
    ^Ctvp514x 1-005d: Write: retry ... 1                                           
    tvp514x 1-005d: Write: retry ... 2                                             
    tvp514x 1-005d: Write: retry ... 3                                             
    tvp514x 1-005d: Write: retry ... 4                                             
    tvp514x 1-005d: Write: retry ... 5                                             
    tvp514x 1-005d: Unable to turn off decoder                                     
    vpfe-capture vpfe-capture: stream off failed in subdev                         
                                                                                   
    -sh-4.1#

    It appears that the colorSpace parameter is being lost when it fails. I set colorSpace to YUV420PSEMI for each call in my capture routine, but the log shows it reverts to bpp=2 and bytesperline=1440 when it fails.  Also notice the "IPIPE Chained" message when the program succeeds.

  • Can you try

    DMAI_DEBUG=2 ./pip2

    in one line?

  • -sh-4.1# DMAI_DEBUG=2 ./pip2                                                   
    Encodedecode demo started.                                                     
    @0x000e5607:[T:0x4001ef80] ti.sdo.dmai - [Dmai] Dmai log level sEVM: switch to t
    vp5146 SD video input                                                          
    et to '2'. Note that calling CERuntime_init after this point may cause unexpecte
    d change to DMAI tracing behavior.                                             
    @0x000fe407:[T:0x4001ef80] ti.sdo.dmai - [Display] Found width=720 height=480, y
    res_virtual=480,xres_virtual=720, line_length=384                              
    @0x000fe555:[T:0x4001ef80] ti.sdo.dmai - [Display] Setting width=720 height=480,
     yres_virtual=480, xres_virtual=720                                            
    @0x000fe65c:[T:0x4001ef80] ti.sdo.dmai - [Display] New width=720, height=480, yr
    es_virtual=480,xres_virtual=720, line_length=384                               
    @0x000fe78a:[T:0x4001ef80] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffer
    s                                                                              
    @0x000fea0f:[T:0x4001ef80] ti.sdo.dmai - [Buffer] Set user pointer 0x403eb000 (p
    hysical 0x83300000)                                                            
    @0x000fef55:[T:0x4001ef80] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x
    403eb000 has physical address 0                                                
    Opening command socket: 56561                                                  
    Trying input 1, std 0                                                          
    @0x001017ce:[T:0x41c17470] ti.sdo.dmai - [Capture] Composite input selected    
    starting data port: 256 x 192 (98304)                                          
    Opening data socket: 14703                                                     
    EVM: switch to tvp7002 HD video input                                          
    @0x002684fd:[T:0x41c17470] ti.sdo.dmai - [Capture] Failed to set video input to
    0 (Invalid argument)                                                           
    Trying input 2, std 0                                                          
    @0x002690c5:[T:0x41c17470] ti.sdo.dmai - [Capture] Component input selected    
    @0x0026a3e4:[T:0x41c17470] ti.sdo.dmai - [Capture] Checking video standard     
    reg 0, val = 2                                                                 
    reg 1, val = 67                                                                
    reg 2, val = 20                                                                
    reg 3, val = a0                                                                
    reg 4, val = 80                                                                
    reg 5, val = 32                                                                
    reg 6, val = 20                                                                
    reg 7, val = 60                                                                
    reg 8, val = 0                                                                 
    reg 9, val = 0                                                                 
    reg a, val = 0                                                                 
    reg b, val = 80                                                                
    reg c, val = 80                                                                
    reg d, val = 80                                                                
    reg e, val = 20                                                                
    reg f, val = 2e                                                                
    reg 10, val = 5d                                                               
    reg 11, val = 47                                                               
    reg 12, val = 0                                                                
    reg 13, val = 0                                                                
    reg 14, val = 2d                                                               
    reg 15, val = 47                                                               
    reg 16, val = 1                                                                
    reg 17, val = 0                                                                
    reg 18, val = 1                                                                
    reg 19, val = 0                                                                
    reg 1a, val = 67                                                               
    reg 1b, val = 77                                                               
    reg 1c, val = 7                                                                
    reg 1d, val = 0                                                                
    reg 1e, val = 10                                                               
    reg 1f, val = 10                                                               
    reg 20, val = 10                                                               
    reg 21, val = 8                                                                
    reg 22, val = 0                                                                
    reg 23, val = 8                                                                
    reg 24, val = d2                                                               
    reg 25, val = 9                                                                
    reg 26, val = 80                                                               
    reg 27, val = c                                                                
    reg 28, val = 53                                                               
    reg 29, val = 8                                                                
    reg 2a, val = 7                                                                
    reg 2b, val = 0                                                                
    reg 2c, val = 50                                                               
    reg 2d, val = 0                                                                
    reg 2e, val = 80                                                               
    reg 2f, val = 8c                                                               
    reg 30, val = 4                                                                
    reg 31, val = 5a                                                               
    reg 32, val = 18                                                               
    reg 33, val = 60                                                               
    reg 34, val = 3                                                                
    reg 35, val = 10                                                               
    reg 36, val = 0                                                                
    reg 37, val = 2                                                                
    reg 38, val = 20                                                               
    reg 39, val = 0                                                                
    reg 3a, val = 0                                                                
    reg 3b, val = 0                                                                
    reg 3c, val = 2                                                                
    reg 3d, val = 3                                                                
    reg 3e, val = 4                                                                
    reg 3f, val = 1                                                                
    reg 40, val = 47                                                               
    reg 41, val = 1                                                                
    reg 42, val = 4b                                                               
    reg 43, val = 6                                                                
    reg 44, val = 5                                                                
    reg 45, val = 0                                                                
    reg 46, val = 2d                                                               
    reg 47, val = 0                                                                
    reg 48, val = 0                                                                
    reg 49, val = 0                                                                
    reg 4a, val = e3                                                               
    reg 4b, val = 16                                                               
    reg 4c, val = 4f                                                               
    reg 4d, val = 2                                                                
    reg 4e, val = ce                                                               
    reg 4f, val = 6                                                                
    reg 50, val = ab                                                               
    reg 51, val = f3                                                               
    reg 52, val = 0                                                                
    reg 53, val = 10                                                               
    reg 54, val = 55                                                               
    reg 55, val = fc                                                               
    reg 56, val = 78                                                               
    reg 57, val = f1                                                               
    reg 58, val = 88                                                               
    reg 59, val = fe                                                               
    reg 5a, val = 0                                                                
    reg 5b, val = 10                                                               
    tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2                           
    EVM: switch to tvp5146 SD video input                                          
    @0x002f082d:[T:0x41c17470] ti.sdo.dmai - [Capture] VIDIOC_QUERYSTD failed on /de
    v/video0. Video input connected?                                               
    Trying input 0, std 0                                                          
    @0x002f11ef:[T:0x41c17470] ti.sdo.dmai - [Capture] S-Video input selected      
    @0x0038a57a:[T:0x41c17470] ti.sdo.dmai - [Capture] Checking video standard     
    davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124                        
    @0x003bdd3a:[T:0x41c17470] ti.sdo.dmai - [Capturdavinci_previewer davinci_previe
    wer.2: ipipe_set_preview_config                                                
    e] Capture inputdavinci_previewer davinci_previewer.2: ipipe_set_preview_config
     set to S-Video:5                                                              
    CAPTURE: User resolution (720EVM: switch to tvp5146 SD video input             
    x480), Video standard (5)                                                      
    @0x003be4c8:[T:0x41c17470] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffer
    s                                                                              
    @0x003bec86:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x42418000 (0x86ee2000 phys)                                                  
    @0x003bf59e:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x42592000 (0x871d6000 phys)                                                  
    @0x003bff41:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x4270c000 (0x86a74000 phys)                                                  
    @0x003c083e:[T:0x41c17470] ti.sdo.dmai - [Resize] Successfully set mode to conti
    nuous in resizer                                                               
    @0x003c23af:[T:0x41c17470] ti.sdo.dmai - [Resize] Resizer initialized          
    @0x003c2bc3:[T:0x41c17470] ti.sdo.dmai - [Resize] Operating mode changed success
    fully to continuous in previewer@0x003c651f:[T:0x41c17470] ti.sdo.dmai - [Resize
    ] Previewer initialized                                                        
    @0x003c6c59:[T:0x41c17470] ti.sdo.dmai - [Capture] S-Video input selected      
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2                  
    @0x00461626:[T:0vpfe-capture vpfe-capture: adjusted width = 720, height = 480, b
    pp = 2, bytesperline = 1440, sizeimage = 691200                                
    x41c17470] ti.sdvpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2  
    o.dmai - [Capturvpfe-capture vpfe-capture: adjusted width = 720, height = 480, b
    pp = 2, bytesperline = 1440, sizeimage = 691200                                
    e] Capture input set to S-Video:5                                              
    @0x00461a1d:[T:0x41c17470] ti.sdo.dmai - [Capture] Capture dimention is set to 4
    80x720                                                                         
    @0x0046aaa1:[T:0x41c17470] ti.sdo.dmai - [Capture] Pixel format 0x3231564e not s
    upported. Received 0x59565955                                                  
    Error: Failed to create capture device                                         
    Display: InputStd 5                                                            
    @0x0046c2dc:[T:0x43085470] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffer
    s                                                                              
    @0x0046c535:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x43086000 (0x86606000 phys)                                                  
    @0x0046c7b9:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x43200000 (0x86bee000 phys)                                                  
    @0x0046ca6e:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x4337a000 (0x86d68000 phys)                                                  
    @0x0046cceb:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x434f4000 (0x85d2a000 phys)                                                  
    @0x0046cfda:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 73728 at
    0x4366e000 (0x87d36000 phys)                                                   
    @0x0046e48f:[T:0x43e82470] ti.sdo.dmai - [BufTab] Allocating BufTab for 8 buffer
    s                                                                              
    @0x0046edcf:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x43e83000 (0x86198000 phys)                                                  
    @0x0046f7ca:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x43ffd000 (0x86312000 phys)                                                  
    @0x00470145:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Bufdavinci_v4l2 davinci_
    v4l2.1: Before finishing with S_FMT:                                           
    layer.pix_fmt.bytesperline = 736,                                              
     layer.pix_fmt.width = 720,                                                    
     layer.pix_fmt.height = 480,                                                   
     layer.pix_fmt.sizeimage =529920                                               
    fer of size 5184davinci_v4l2 davinci_v4l2.1: pixfmt->width = 720,              
     layer->layer_info.config.line_length= 736                                     
    00 at 0x44177000 (0x8648c000 phys)                                             
    @0x00470b81:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x442f1000 (0x8705c000 phys)                                                  
    @0x004714cb:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x4446b000 (0x868fa000 phys)                                                  
    @0x00471ea2:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x445e5000 (0x86780000 phys)                                                  
    @0x00472823:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x4475f000 (0x8601e000 phys)                                                  
    @0x004731b4:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x448d9000 (0x85ea4000 phys)                                                  
    Process one buffer to figure out buffer requirements                           
    @0x00485a77:[T:0x43085470] ti.sdo.dmai - [Display] Video output set to size 720x
    480 pitch 736 imageSize 529920                                                 
    @0x00490257:[T:0x43085470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x43086000 (0x86606000 phys)                                                   
    @0x004909c3:[T:0x43085470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x43200000 (0x86bee000 phys)                                                   
    @0x004910bf:[T:0x43085470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x4337a000 (0x86d68000 phys)                                                   
    @0x00491892:[T:0x43085470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x434f4000 (0x85d2a000 phys)                                                   
    @0x00491fd3:[T:0x43085470] ti.sdo.dmai - [Buffer] Free Buffer of size 73728 at 0
    x4366e000 (0x87d36000 phys)                                                    
    @0x004925b6:[T:0x41c17470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x42418000 (0x86ee2000 phys)                                                   
    @0x004942f0:[T:0x41c17470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x42592000 (0x871d6000 phys)                                                   
    @0x00496149:[T:0x41c17470] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at
    0x4270c000 (0x86a74000 phys)                                                   
    @0x00498570:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x43e83000 (0x86198000 phys)                                                   
    @0x0049a360:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x43ffd000 (0x86312000 phys)                                                   
    @0x0049c131:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x44177000 (0x8648c000 phys)                                                   
    @0x0049df1b:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x442f1000 (0x8705c000 phys)                                                   
    @0x0049fc00:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x4446b000 (0x868fa000 phys)                                                   
    @0x004a1c84:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x445e5000 (0x86780000 phys)                                                   
    @0x004a3a5b:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x4475f000 (0x8601e000 phys)                                                   
    @0x004a59b2:[T:0x43e82470] ti.sdo.dmai - [Buffer] Free Buffer of size 518400 at
    0x448d9000 (0x85ea4000 phys)                                                   
    ^C                                                                             
    -sh-4.1# DMAI_DEBUG=2 ./pip2                                                   
    Encodedecode demo started.                                                     
    @0x0005ed08:[T:0x4001ef80] 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 behaviovpfe-capture vpfe-capture: IPIPE Chained                       
    r.                                                                             
    @0x00078007:vpfe-capture vpfe-capture: Resizer present                         
    [T:0x4001ef80] tEVM: switch to tvp5146 SD video input                          
    i.sdo.dmai - [Display] Found width=720 height=480, yres_virtual=480,xres_virtual
    =720, line_length=384                                                          
    @0x00078156:[T:0x4001ef80] ti.sdo.dmai - [Display] Setting width=720 height=480,
     yres_virtual=480, xres_virtual=720                                            
    @0x0007825e:[T:0x4001ef80] ti.sdo.dmai - [Display] New width=720, height=480, yr
    es_virtual=480,xres_virtual=720, line_length=384                               
    @0x00078392:[T:0x4001ef80] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffer
    s                                                                              
    @0x00078642:[T:0x4001ef80] ti.sdo.dmai - [Buffer] Set user pointer 0x403eb000 (p
    hysical 0x83300000)                                                            
    @0x00078bba:[T:0x4001ef80] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x
    403eb000 has physical address 0                                                
    Opening command socket: 56561                                                  
    Trying input 1, std 0                                                          
    @0x0007da0b:[T:0x41c17470] ti.sdo.dmai - [Capture] Composite input selected    
    starting data port: 256 x 192 (98304)                                          
    Opening data socket: 14703                                                     
    EVM: switch to tvp7002 HD video input                                          
    @0x001e46b4:[T:0x41c17470] ti.sdo.dmai - [Capture] Failed to set video input to
    0 (Invalid argument)                                                           
    Trying input 2, std 0                                                          
    @0x001e5268:[T:0x41c17470] ti.sdo.dmai - [Capture] Component input selected    
    @0x001e65cd:[T:0x41c17470] ti.sdo.dmai - [Capture] Checking video standard     
    reg 0, val = 2                                                                 
    reg 1, val = 67                                                                
    reg 2, val = 20                                                                
    reg 3, val = a0                                                                
    reg 4, val = 80                                                                
    reg 5, val = 32                                                                
    reg 6, val = 20                                                                
    reg 7, val = 60                                                                
    reg 8, val = 0                                                                 
    reg 9, val = 0                                                                 
    reg a, val = 0                                                                 
    reg b, val = 80                                                                
    reg c, val = 80                                                                
    reg d, val = 80                                                                
    reg e, val = 20                                                                
    reg f, val = 2e                                                                
    reg 10, val = 5d                                                               
    reg 11, val = 47                                                               
    reg 12, val = 0                                                                
    reg 13, val = 0                                                                
    reg 14, val = 2d                                                               
    reg 15, val = 47                                                               
    reg 16, val = 1                                                                
    reg 17, val = 0                                                                
    reg 18, val = 1                                                                
    reg 19, val = 0                                                                
    reg 1a, val = 67                                                               
    reg 1b, val = 77                                                               
    reg 1c, val = 7                                                                
    reg 1d, val = 0                                                                
    reg 1e, val = 10                                                               
    reg 1f, val = 10                                                               
    reg 20, val = 10                                                               
    reg 21, val = 8                                                                
    reg 22, val = 0                                                                
    reg 23, val = 8                                                                
    reg 24, val = d2                                                               
    reg 25, val = 9                                                                
    reg 26, val = 80                                                               
    reg 27, val = c                                                                
    reg 28, val = 53                                                               
    reg 29, val = 8                                                                
    reg 2a, val = 7                                                                
    reg 2b, val = 0                                                                
    reg 2c, val = 50                                                               
    reg 2d, val = 0                                                                
    reg 2e, val = 80                                                               
    reg 2f, val = 8c                                                               
    reg 30, val = 4                                                                
    reg 31, val = 5a                                                               
    reg 32, val = 18                                                               
    reg 33, val = 60                                                               
    reg 34, val = 3                                                                
    reg 35, val = 10                                                               
    reg 36, val = 0                                                                
    reg 37, val = 2                                                                
    reg 38, val = 20                                                               
    reg 39, val = 0                                                                
    reg 3a, val = 0                                                                
    reg 3b, val = 0                                                                
    reg 3c, val = 2                                                                
    reg 3d, val = 3                                                                
    reg 3e, val = 4                                                                
    reg 3f, val = 1                                                                
    reg 40, val = 47                                                               
    reg 41, val = 1                                                                
    reg 42, val = 4b                                                               
    reg 43, val = 6                                                                
    reg 44, val = 5                                                                
    reg 45, val = 0                                                                
    reg 46, val = 2d                                                               
    reg 47, val = 0                                                                
    reg 48, val = 0                                                                
    reg 49, val = 0                                                                
    reg 4a, val = e3                                                               
    reg 4b, val = 16                                                               
    reg 4c, val = 4f                                                               
    reg 4d, val = 2                                                                
    reg 4e, val = ce                                                               
    reg 4f, val = 6                                                                
    reg 50, val = ab                                                               
    reg 51, val = f3                                                               
    reg 52, val = 0                                                                
    reg 53, val = 10                                                               
    reg 54, val = 55                                                               
    reg 55, val = fc                                                               
    reg 56, val = 78                                                               
    reg 57, val = f1                                                               
    reg 58, val = 88                                                               
    reg 59, val = fe                                                               
    reg 5a, val = 0                                                                
    reg 5b, val = 10                                                               
    tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2                           
    EVM: switch to tvp5146 SD video input                                          
    @0x00272960:[T:0x41c17470] ti.sdo.dmai - [Capture] VIDIOC_QUERYSTD failed on /de
    v/video0. Video input connected?                                               
    Trying input 0, std 0                                                          
    @0x00273340:[T:0x41c17470] ti.sdo.dmai - [Capture] S-Video input selected      
    @0x0030dd3e:[T:0x41c17470] ti.sdo.dmai - [Capture] Checking video standard     
    davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124                        
    @0x00341640:[T:0x41c17470] ti.sdo.dmai - [Capturdavinci_previewer davinci_previe
    wer.2: ipipe_set_preview_config                                                
    e] Capture inputdavinci_previewer davinci_previewer.2: ipipe_set_preview_config
     set to S-Video:5                                                              
    CAPTURE: User resolution (720EVM: switch to tvp5146 SD video input             
    x480), Video standard (5)                                                      
    @0x00341d3d:[T:0x41c17470] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffer
    s                                                                              
    @0x003425b9:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x42418000 (0x85ea4000 phys)                                                  
    @0x00342e4f:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x42592000 (0x8601e000 phys)                                                  
    @0x0034380d:[T:0x41c17470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x4270c000 (0x86780000 phys)                                                  
    @0x003441b8:[T:0x41c17470] ti.sdo.dmai - [Resize] Successfully set mode to conti
    nuous in resizer                                                               
    @0x00345d51:[T:0x41c17470] ti.sdo.dmai - [Resize] Resizer initialized          
    @0x0034654a:[T:0x41c17470] ti.sdo.dmai - [Resize] Operating mode changed success
    fully to continuous in previewer@0x00349ecf:[T:0x41c17470] ti.sdo.dmai - [Resize
    ] Previewer initialized                                                        
    @0x0034a71b:[T:0x41c17470] ti.sdo.dmai - [Capture] S-Video input selected      
    vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 1                  
    @0x003e4dca:[T:0vpfe-capture vpfe-capture: adjusted width = 720, height = 480, b
    pp = 1, bytesperline = 736, sizeimage = 529920                                 
    x41c17470] ti.sdvpfe-capture vpfe-capture: width = 720, height = 480, bpp = 1  
    o.dmai - [Capturvpfe-capture vpfe-capture: adjusted width = 720, height = 480, b
    pp = 1, bytesperline = 736, sizeimage = 529920                                 
    e] Capture input set to S-Video:5                                              
    @0x003e51ca:[T:0x41c17470] ti.sdo.dmai - [Capture] Capture dimention is set to 4
    80x720                                                                         
    @0x003ee18d:[T:0x41c17470] ti.sdo.dmai - [Capture] Video input connected size 72
    0x480 pitch 736                                                                
    davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:                      
    layer.pix_fmt.bytesperline = 736,                                              
     layer.pix_fmt.width = 720,                                                    
     layer.pix_fmt.height = 480,                                                   
     layer.pix_fmt.sizeimage =529920                                               
    Display: InputStdavinci_v4l2 davinci_v4l2.1: pixfmt->width = 720,              
     layer->layer_info.config.line_length= 736                                     
    d 5                                                                            
    @0x0041370a:[T:0x43085470] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffer
    s                                                                              
    @0x0041394e:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x43086000 (0x868fa000 phys)                                                  
    @0x00413be0:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x43200000 (0x8705c000 phys)                                                  
    @0x00413e7c:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x4337a000 (0x8648c000 phys)                                                  
    @0x00414180:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at
     0x434f4000 (0x86312000 phys)                                                  
    @0x0041439e:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 73728 at
    0x4366e000 (0x87d36000 phys)                                                   
    @0x00415932:[T:0x43e82470] ti.sdo.dmai - [BufTab] Allocating BufTab for 8 buffer
    s                                                                              
    @0x00416272:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x43e83000 (0x86198000 phys)                                                  
    @0x00416c02:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x43ffd000 (0x86a74000 phys)                                                  
    @0x00417688:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x44177000 (0x871d6000 phys)                                                  
    @0x0041800f:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x442f1000 (0x86ee2000 phys)                                                  
    @0x0041895c:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x4446b000 (0x85d2a000 phys)                                                  
    @0x00419390:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x445e5000 (0x86d68000 phys)                                                  
    @0x00419e14:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x4475f000 (0x86bee000 phys)                                                  
    @0x0041a6e1:[T:0x43e82470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 518400 at
     0x448d9000 (0x86606000 phys)                                                  
    @0x0042b4fd:[T:0x43085470] ti.sdo.dmai - [Display] Video output set to size 720x
    480 pitch 736 imageSize 529920                                                 
    Process one buffer to figure out buffer requirements                           
    Prime the display thread                                                       
    @0x00440274:[T:0x43085470] ti.sdo.dmai - [Buffer] Alloc Buffer of size 18432 at
    0x44a53000 (0x87d4a000 phys)                                                   
    dst = 0,0, Dim = 720 x 480                                                     
    pip = 144,240, Dim = 128 x 96                                                  
    tvp514x 1-005d: Write: retry ... 0                                             
    ^Ctvp514x 1-005d: Write: retry ... 1                                           
    tvp514x 1-005d: Write: retry ... 2                                             
    tvp514x 1-005d: Write: retry ... 3                                             
    tvp514x 1-005d: Write: retry ... 4                                             
    tvp514x 1-005d: Write: retry ... 5                                             
    tvp514x 1-005d: Unable to turn off decoder                                     
    vpfe-capture vpfe-capture: stream off failed in subdev                         
                                                                                   
    -sh-4.1#

    As before, the first run failed at Capture_create, and the second run was successful.

     

  • Thanks for the log. This looks like a real issue. We will debug further and get back to you.

    Regards

    Sajesh

  • We have filed an incident report to track this issue. The link to the report is SDOCM00071225

    Regards

    Sajesh


     

  • Has there been any action taken to resolve this issue?

    Robert