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.

Capture encode demo failed on dm8168: FVID Control GetChipId Failed

Other Parts Discussed in Thread: TVP7002

Hi All,


I am trying to run the capture encode demo on dm816x platform using below command for 720p using tvp7002.

./capture_encode_a8host_debug.xv5T -o sample.h264 -m 720p -f 30 -b 6000000 -d 0 -n 1000


But is failing to get the chipid.


Please find the below loggerSM logs:

N:VPSS  P:2 #:00744 T:00000007f95f3c27 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> @<_OMX_BASE_HandleStateTransition> @line<339> msg<Loaded to Idle Transition>
N:VPSS  P:2 #:00745 T:00000007f95fd419 M:xdc.runtime.Main S:Entered _OMX_CTRLTvpDrvCreate: 569
N:VPSS  P:2 #:00746 T:000000080842e857 M:xdc.runtime.Main S:Created Driver Video DecoderId: 1025 
N:VPSS  P:2 #:00747 T:0000000808450bc9 M:xdc.runtime.Main S:FVID Control GetChipId Failed: 
N:VPSS  P:2 #:00748 T:0000000808456d4d M:xdc.runtime.Main S: OMX Error in Omx_Capture_createVideoDecoder :: line 1147 
N:VPSS  P:2 #:00749 T:000000080845d489 M:xdc.runtime.Main S: OMX Error in _OMX_CTRLTvpDrvCreate :: line 591 
N:VPSS  P:2 #:00750 T:00000008084633fb M:xdc.runtime.Main S: OMX Error in OMX_TI_CTRL_CommandNotify :: line 834 
N:VPSS  P:2 #:00751 T:00000008084694c3 M:xdc.runtime.Main S: OMX Error in _OMX_BASE_HandleStateTransition :: line 344 
N:VPSS  P:2 #:00752 T:00000008084704c9 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> Leaving<_OMX_BASE_HandleStateTransition> @line<483> with error<-2147479551:ErrorUndefined>
N:VPSS  P:2 #:00753 T:00000008084ad81d M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> Leaving<OMX_BASE_PROCESS_CmdEvent> @line<784> with error<-2147479551:ErrorUndefined>
N:VPSS  P:2 #:00754 T:00000008084b816d M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> Leaving<OMX_BASE_CmdEventHandler> @line<466> with error<-2147479551:ErrorUndefined>
N:VPSS  P:2 #:00755 T:00000008084c0f47 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> Entering<OMX_BASE_CmdEventHandler> @line<434> 
N:VPSS  P:2 #:00756 T:00000008084c93c9 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.CTRL.TVP> Leaving<OMX_BASE_CmdEventHandler> @line<466> with error<0:ErrorNone>

I have enabled remote debug server, and captured m3vpss logs also, it says

===============================
 OMX_Init completed 
 UIAClient is ready to send a UIA configuration command
UIAClient received UIA_CONFIGURE_ACK
UIAClient is done sending requests
UIAClient is ready to send a UIA configuration command
UIAClient received UIA_CONFIGURE_ACK
UIAClient is done sending requests
 openeing file 
 capture compoenent is created 
 control TVP compoenent is created 
Buffer Size computed: 1382400
set input port params (width = 1280, height = 720) applying skip mask 
enable capture output port 
got eventEnable/Disable Event 
 dei compoenent is created 
set input port params (width = 1280, height = 720) 
set output port params (width = 1280, height = 720)set output port params (width = 1920, height = 1080)set number of channelsset input resolutionset output resolutionenable dei input port 
got eventEnable/Disable Event 
enable dei output port 0 
got eventEnable/Disable Event 
enable dei output port 1 
got eventEnable/Disable Event 
 encoder compoenent is created 
found handle 0x1244f8 for component OMX.TI.VPSSM3.VFDC 
 got display handle 
found handle 0x128500 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 1843200
set input port params (width = 1280, height = 720)setting input and output memory type to defaultenable input port 
got eventEnable/Disable Event 
 connect call for capture-Dei 
  connect call for dei- encoder 
  connect call for dei-display 
 got event*** unrecoverable error: OMX_ErrorUndefined (0x80001001) 
Press a key to proceed
 [m3vpss ] tvp7002/src/vpsdrv_tvp7002I2c.c @ Line 865: 
 [m3vpss ] I2C read failed.

Please guide me on the above issue.


Thanks & Regards,

Shalini M

  • Hello,

    What is the software version of EZSDK that you are using here?

    Is this the steps that you are executing?

    Stop the graphics plane;

    for 720p, set hdmi mode before running example

    echo 720p-60 >/sys/devices/platform/vpss/display0/mode

     cat /sys/devices/platform/vpss/display0/mode

    720p-60
     ./capture_encode_a8host_debug.xv5T -o xyz.h264 -m 720p -f  60 -b 1000000 -d 0 -n 1000

    Best Regards,

    Margarita

  • Hi Margarita,

    Thanks for the response.

    The software version of EZSDK which we are using is the latest one, 5.05.02.00

    Sorry I forgot to mention the steps which I am trying to follow.

    echo 0 > /sys/devices/platform/vpss/display0/enabled
    echo 720p-60 >/sys/devices/platform/vpss/display0/mode
    echo 1 > /sys/devices/platform/vpss/display0/enabled

    ./capture_encode_a8host_debug.xv5T -o sample.h264 -m 720p -f 30 -b 6000000 -d 0 -n 1000

    Actually with the same code base, I am able to run the demo on one Nethra EVM with EIO daughter card which we have.

    But on another Nethra EVM with VC daughter card, I am not able to run the demo.


    Is this error, getting chip Id failed due to hardware issue?... I have connected the boards properly in tact.


    Please guide me on this issue.

    Thanks & Regards,

    Shalini M

  • Hello,

    There is a difference between both boards.

    Please refer to theti-ezsdk_dm816x-evm_5_05_02_00/component-sources/omx-ti81xx-src_05_02_00_48/src/ti/omx/docs

    TI816x_VC_Quick_Start_Guide.doc

    and

    EZSDK_Overlay_Installer_Build_Instructions search for VC.

    NOTE: The overlay package (HDVPSS firmware) can not be discussed in the forum since is under NDA.

    Best Regard,

    Margarita

  • Hi Margarita,

    Thanks for the reply.

    Getting chip id was failing due to connection between daughter card and EVM was not tight.

    Now, I could proceed further, all the components are going into execute state but,

    no capture is happening. Its displaying blank white screen and no capture happening.

    There are no errors found from loggerSM logs also.

    Please help me with the above issue.


    Thanks & Regards,

    Shalini M

  • Hello,

    Shalini M Sharath said:
    There are no errors found from loggerSM logs also.

    Could you attach the debug log file anyway, please.

    Best Regards,

    Margarita

  • Hi Margarita,

    Please find the attached log file.

    7750.nethra_nov.docx

    Thanks ,

    Shalini M

  • Hello,

    Could you check it this file sample.h264 is empty?

    The grey/white screen means that there is no available frames which should be displayed and the application probably  hangs after it moves to execute state.

    Best Regards,

    Margarita

  • Hi Margarita,


    As you you guessed, its right. sample.h264 file is empty.


    But what could be the reason for this. why the application is getting hanged and displaying grey/white

    screen?..kindly guide me.

    Thanks,

    Shalini M

  • Hello,

    Shalini M Sharath said:

    why the application is getting hanged and displaying grey/white

    screen?

    The grey/white screen means that there is no available frames. Could you check is there any frames before the encoder component?

    There is one more question are you capture 720p or 720i?

    Best Regards,

    Margarita