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.

TI8148EVM Video Capture @480i60

Other Parts Discussed in Thread: TVP7002

Dear All,

I'm working with TI8148EVM (Mistral) and SDK 5.03.01.15

I would like to use OMTB to capture a video input and display it on HDMI output.

IIUC there a script file provided with the SDK (capture_dei_encode.oms) that do so from YCrCb input (with TVP7002)  that requires a 1080i60/1080p30 input (output goes to HDMI 1080p60)

However my video source is 480i60 and, in fact, the above source does not work.

Could someone please help me in how to change the script to support my configuration? (of couse if this is possible)

I can use also a different tool but OMTB, IMHO, seems the best one to do tests like this.

Best Regards and Thanks in Advance,

Andrea

  • Hi,

    480i capture is not supported on TVP7002 driver. As such hardware supports it but software support is not added.

    Regards,

    Hardik shah

  • Thanks Hardik,

    could you please tell me which configurations are supported by the current software?

    are you planning to support more capture configuration with the next releases of the SDK?

    What abount V4L2 capture? Has this software the same limitation?

    Best Regards,

    Andrea

  • Hi,

    Currently we support 720P60, 1080I60 and 1080P60 capture. Same is supported by V4L2 capture as well. We dont have plans of adding any new resolution support as of now. But in V4L2 capture, since tvp7002 driver is open and datasheet is also available you can try bringing up 480i60 yourself.

    Regards,

    Hardik Shah

  • Thanks for you quick answer Hardik

    I'll give V4L2 a try


    Best Regards,

    Andrea

  • Again regarding OMTB,

    do you have a sample .oms script to capture/encode/display a 720p60 source? (which should be supported)

    the output should be 1080p60 or 720p60 on HDMI and the encoded h264 file should be saved much like the capture_dei_encode.oms does.

    I'm trying to do so but I still have some trouble..

    Best Regards,

    Andrea

  • Hi,

    I am not the correct person for OMTB. Let me forward this query to concerned team here and they will reply.

    Regards,

    Hardik Shah

  • Hi Andrea,

    I have some scripts verified on DM816x for 720P60 capture and display. Please find the scripts with attachment for your reference.

    1) VFCC(720p60)->DEI->VFDC(720p60) ->Encode->dump

    2)VFCC(720p60)->SC->VFDC(720p60)

    3)VFCC(720p60)->VFDC(720p60)

    Thanks and regards Sachin kumar

  • #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 dei compname OMX.TI.VPSSM3.VFPC.DEIMDUALOUT
    omx setp 0 h264vdec frame_width 1280
    omx setp 0 h264vdec frame_height 720
    omx setp 0 h264vdec inbuf use
    omx setp 0 h264vdec outbuf allocate
    omx setp 0 h264vdec inbufsize_flag enable
    omx setp 0 h264vdec outbufsize_flag enable
    omx setp 0 h264vdec inbufsize 3110400
    omx setp 0 h264vdec outbufsize 3612672
    omx setp 0 h264vdec infile /usr/share/ti/data/videos/dm816x_1080p_demo.264
    omx setp 0 h264vdec numinbuf  10
    omx setp 0 h264vdec numoutbuf 10
    omx setp 0 h264vdec framerate 60
    omx setp 0 h264vdec data_opmode driver
    omx setp 0 h264vdec data_ipmode driver
    omx setp 0 sc frame_width 1408
    omx setp 0 sc frame_height 816
    omx setp 0 sc op_chromat_format 422YUYV
    omx setp 0 sc ip_chromat_format 420SP
    omx setp 0 sc numinbuf 10
    omx setp 0 sc inbufalign 0
    omx setp 0 sc inbuf_contig disable
    omx setp 0 sc inbufsize_flag enable
    omx setp 0 sc inbufsize 1723392	
    omx setp 0 sc numoutbuf 8
    omx setp 0 sc outbufalign 0
    omx setp 0 sc outbuf_contig disable
    omx setp 0 sc outbufsize_flag enable
    omx setp 0 sc outbufsize 1843200 
    omx setp 0 sc data_opmode driver
    omx setp 0 sc data_ipmode driver
    omx setp 0 sc inbuf use
    omx setp 0 sc outbuf allocate
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 8
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    omx api gethandle h264vdec 0 0
    omx api gethandle sc 0 0
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    
    #SET ALL THE PARAMS FOR VFDC#0-HDMI
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 1
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    
    #try
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 1
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx api getparam  sc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 sc OMX_IndexParamPortDefinition video.nStride 1408
    omx setp 0 sc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx setp 0 sc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx api setparam  sc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 sc OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1408
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 816
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  1408
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0 
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 0 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  2560
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 16 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 16 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable bAlgBypass disable
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig sc 0 0 0 OMX_TI_IndexConfigAlgEnable
    
    #************************************************************
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1280
    omx setp 0 vfcc frame_height 720
    omx setp 0 vfcc op_chromat_format 420SP
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 1382400
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc data_ipmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc outbuf_contig disable
    
    omx setp 0 dei frame_width 1280
    omx setp 0 dei frame_height 720
    omx setp 0 dei op_chromat_format 420SP
    omx setp 0 dei ip_chromat_format 420SP
    omx setp 0 dei numinbuf 6 
    omx setp 0 dei inbufalign 0 
    omx setp 0 dei inbuf_contig disable
    omx setp 0 dei inbufsize_flag disable
    omx setp 0 dei inbufsize 1382400
    omx setp 0 dei numoutbuf 8
    omx setp 0 dei outbufalign 0
    omx setp 0 dei outbuf_contig disable
    omx setp 0 dei outbufsize_flag enable
    omx setp 0 dei outbufsize 1382400 
    omx setp 0 dei data_opmode driver
    omx setp 0 dei data_ipmode driver
    omx setp 0 dei inbuf use
    omx setp 0 dei outbuf allocate
    
    omx setp 0 h264venc numinbuf 8
    omx setp 0 h264venc frame_width 1280
    omx setp 0 h264venc frame_height 720
    omx setp 0 h264venc inbufsize 4147200
    omx setp 0 h264venc numoutbuf 10
    omx setp 0 h264venc outbufsize_flag enable
    omx setp 0 h264venc outbufsize 3110400
    omx setp 0 h264venc data_opmode driver
    omx setp 0 h264venc data_ipmode driver
    omx setp 0 h264venc inbuf use
    omx setp 0 h264venc outbuf allocate
    omx setp 0 h264venc framerate 3932160
    omx setp 0 h264venc bitrate 10000000
    
    
    #To enable write to SD card change mode to file
    omx setp 0 h264venc data_opmode file
    omx setp 0 h264venc outfile dm816x_720p60_encode.264
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 8 
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    omx api gethandle dei 0 0
    omx api gethandle h264venc 0 0
    omx api gethandle vfdc 1 0
    omx api gethandle dc 1 0
    
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    #omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId sii9135
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    omx setp 0 dei OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam dei 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 dei OMX_TI_IndexConfigAlgEnable bAlgBypass enable
    omx setp 0 dei OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig dei 0 0 0 OMX_TI_IndexConfigAlgEnable
    omx setp 0 dei OMX_TI_IndexConfigSubSamplingFactor nSubSamplingFactor 1
    omx api setconfig dei 0 0 0 OMX_TI_IndexConfigSubSamplingFactor
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Pitch  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropWidth 1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropHeight 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig dei 0 0 0  OMX_TI_IndexConfigVidChResolution
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Pitch  2560
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Pitch  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropWidth 1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropHeight 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig dei 0 0 16  OMX_TI_IndexConfigVidChResolution
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei  0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei 0 0 16  OMX_TI_IndexParamBuffMemType
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei 0 0 17  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  dei  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  dei  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam dei 0 0 17   OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 dei OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 dei  OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx setp 0 dei OMX_IndexParamVideoInit nPorts 3
    omx setp 0 dei OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  dei 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 dei OMX_IndexParamPortDefinition video.nStride 1280
    omx api setparam  dei 0 0 0 OMX_IndexParamPortDefinition
    
    omx api getparam  h264venc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 h264venc OMX_IndexParamPortDefinition video.nStride 1280
    omx api setparam  h264venc 0 0 0 OMX_IndexParamPortDefinition
    
    omx api getparam h264venc 0 0 1 OMX_IndexParamVideoPortFormat
    omx setp 0 h264venc OMX_IndexParamVideoPortFormat eCompressionFormat avc
    omx setp 0 h264venc OMX_IndexParamVideoPortFormat xFramerate 3932160
    omx api setparam h264venc 0 0 1 OMX_IndexParamVideoPortFormat
    
    omx setp 0 h264venc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  h264venc 0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 h264venc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam h264venc 0 0 1   OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 h264vdec OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  h264vdec 0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 h264vdec OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam h264vdec 0 0 1  OMX_TI_IndexParamCompPortNotifyType
    
    
    
    
    #SET ALL THE PARAMS FOR VFDC#1-HD-DAC
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 1 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    #try
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    
    omx api setparam  vfdc 1 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 1 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 1 0 0 OMX_IndexParamPortDefinition
    #try
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 1 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#1
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 1 0 0 OMX_TI_IndexParamVFDCDriverInstId
    
    # Chaining the components
    
    omx api connect vfcc 0 0 dei 0 0
    omx api connect dei 0 16 vfdc 1 0
    omx api connect dei 0 17 h264venc 0 0
    #omx api connect h264venc 0 1 h264vdec 0 0
    #omx api connect h264vdec 0 1 sc 0 0
    #omx api connect sc 0 16 vfdc 0 0
    
    
    omx api sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    
    omx api sendcommand port dei 0 enable 0
    omx api sendcommand port dei 0 waitforsem 0
    omx api sendcommand port dei 0 enable 16
    omx api sendcommand port dei 0 waitforsem 16
    omx api sendcommand port dei 0 enable 17
    omx api sendcommand port dei 0 waitforsem 17
    omx api sendcommand port vfdc 1 enable 0
    omx api sendcommand port vfdc 1 waitforsem 0
    omx api sendcommand port h264venc 0 enable 0
    omx api sendcommand port h264venc 0 waitforsem 0
    
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    
    omx api sendcommand state dei 0 idle
    omx api sendcommand state dei 0 waitforsem
    omx api sendcommand state dc 1 idle
    omx api sendcommand state dc 1 waitforsem
    omx api sendcommand state vfdc 1 idle
    omx api sendcommand state vfdc 1 waitforsem
    omx api sendcommand state h264venc 0 idle
    omx api sendcommand state h264venc 0 waitforsem
    
    
    
    omx api sendcommand state h264venc 0 exec
    omx api sendcommand state h264venc 0 waitforsem
    omx api sendcommand state dc 1 exec
    omx api sendcommand state dc 1 waitforsem
    omx api sendcommand state vfdc 1 exec
    omx api sendcommand state vfdc 1 waitforsem
    omx api sendcommand state dei 0 exec
    omx api sendcommand state dei 0 waitforsem
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    
    
    sleep 30000
    
    omx setp 0 aplay nSamplingRate 16000
    omx setp 0 aplay nNumSamples 480
    omx func alsa aplay 0 0
    #sleep 1000
    omx setp 0 arecord nSamplingRate 16000
    omx setp 0 arecord nNumSamples 480
    omx func alsa arecord 0 0
    #omtbdemo t 60000 p test_pipe
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dei 0 idle
    omx api sendcommand state dei 0 waitforsem
    omx api sendcommand state dc 1 idle
    omx api sendcommand state dc 1 waitforsem
    omx api sendcommand state vfdc 1 idle
    omx api sendcommand state vfdc 1 waitforsem
    omx api sendcommand state h264venc 0 idle
    omx api sendcommand state h264venc 0 waitforsem
    
    omx api sendcommand state vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dei 0 loaded
    omx api sendcommand state dei 0 waitforsem
    omx api sendcommand state dc 1 loaded
    omx api sendcommand state dc 1 waitforsem
    omx api sendcommand state vfdc 1 loaded
    omx api sendcommand state vfdc 1 waitforsem
    omx api sendcommand state h264venc 0 loaded
    omx api sendcommand state h264venc 0 waitforsem
    
    
    omx api freehandle h264vdec 0
    omx api freehandle h264venc 0
    omx api freehandle sc 0
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle dei 0
    omx api freehandle dc 0
    omx api freehandle dc 1
    omx api freehandle vfdc 0
    omx api freehandle vfdc 1
    
    omx api uninit
    
     
    

    1) VFCC(720p60)->DEI->VFDC(720p60)

                       ->Encode->dump

  • #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 dei compname OMX.TI.VPSSM3.VFPC.DEIMDUALOUT
    omx setp 0 h264vdec frame_width 1280
    omx setp 0 h264vdec frame_height 720
    omx setp 0 h264vdec inbuf use
    omx setp 0 h264vdec outbuf allocate
    omx setp 0 h264vdec inbufsize_flag enable
    omx setp 0 h264vdec outbufsize_flag enable
    omx setp 0 h264vdec inbufsize 3110400
    omx setp 0 h264vdec outbufsize 3612672
    omx setp 0 h264vdec infile /usr/share/ti/data/videos/dm816x_1080p_demo.264
    omx setp 0 h264vdec numinbuf  10
    omx setp 0 h264vdec numoutbuf 10
    omx setp 0 h264vdec framerate 60
    omx setp 0 h264vdec data_opmode driver
    omx setp 0 h264vdec data_ipmode driver
    omx setp 0 sc frame_width 1408
    omx setp 0 sc frame_height 816
    omx setp 0 sc op_chromat_format 422YUYV
    omx setp 0 sc ip_chromat_format 420SP
    omx setp 0 sc numinbuf 6
    omx setp 0 sc inbufalign 0
    omx setp 0 sc inbuf_contig disable
    omx setp 0 sc inbufsize_flag enable
    omx setp 0 sc inbufsize 1723392	
    omx setp 0 sc numoutbuf 8
    omx setp 0 sc outbufalign 0
    omx setp 0 sc outbuf_contig disable
    omx setp 0 sc outbufsize_flag enable
    omx setp 0 sc outbufsize 1843200 
    omx setp 0 sc data_opmode driver
    omx setp 0 sc data_ipmode driver
    omx setp 0 sc inbuf use
    omx setp 0 sc outbuf allocate
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 8
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    omx api gethandle h264vdec 0 0
    omx api gethandle sc 0 0
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    
    #SET ALL THE PARAMS FOR VFDC#0-HDMI
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    
    #try
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx api getparam  sc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 sc OMX_IndexParamPortDefinition video.nStride 1408
    omx setp 0 sc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx setp 0 sc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx api setparam  sc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 sc OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1408
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 816
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  1408
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0 
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 0 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  2560
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 16 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 16 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable bAlgBypass disable
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig sc 0 0 0 OMX_TI_IndexConfigAlgEnable
    
    #************************************************************
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1280
    omx setp 0 vfcc frame_height 720
    omx setp 0 vfcc op_chromat_format 420SP
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 1382400
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc data_ipmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc outbuf_contig disable
    
    omx setp 0 dei frame_width 1280
    omx setp 0 dei frame_height 720
    omx setp 0 dei op_chromat_format 420SP
    omx setp 0 dei ip_chromat_format 420SP
    omx setp 0 dei numinbuf 6 
    omx setp 0 dei inbufalign 0 
    omx setp 0 dei inbuf_contig disable
    omx setp 0 dei inbufsize_flag disable
    omx setp 0 dei inbufsize 1382400
    omx setp 0 dei numoutbuf 8
    omx setp 0 dei outbufalign 0
    omx setp 0 dei outbuf_contig disable
    omx setp 0 dei outbufsize_flag enable
    omx setp 0 dei outbufsize 1382400 
    omx setp 0 dei data_opmode driver
    omx setp 0 dei data_ipmode driver
    omx setp 0 dei inbuf use
    omx setp 0 dei outbuf allocate
    
    omx setp 0 h264venc numinbuf 8
    omx setp 0 h264venc frame_width 1280
    omx setp 0 h264venc frame_height 720
    omx setp 0 h264venc inbufsize 4147200
    omx setp 0 h264venc numoutbuf 10
    omx setp 0 h264venc outbufsize_flag enable
    omx setp 0 h264venc outbufsize 3110400
    omx setp 0 h264venc data_opmode driver
    omx setp 0 h264venc data_ipmode driver
    omx setp 0 h264venc inbuf use
    omx setp 0 h264venc outbuf allocate
    omx setp 0 h264venc framerate 3932160
    omx setp 0 h264venc bitrate 10000000
    
    
    #To enable write to SD card change mode to file
    #omx setp 0 h264venc data_opmode file
    omx setp 0 h264venc outfile /usr/share/ti/data/videos/dm816x_1080p60_encode.264
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 8 
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    omx api gethandle dei 0 0
    omx api gethandle h264venc 0 0
    omx api gethandle vfdc 1 0
    omx api gethandle dc 1 0
    
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    #omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId sii9135
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    omx setp 0 dei OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam dei 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 dei OMX_TI_IndexConfigAlgEnable bAlgBypass enable
    omx setp 0 dei OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig dei 0 0 0 OMX_TI_IndexConfigAlgEnable
    omx setp 0 dei OMX_TI_IndexConfigSubSamplingFactor nSubSamplingFactor 1
    omx api setconfig dei 0 0 0 OMX_TI_IndexConfigSubSamplingFactor
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Pitch  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropWidth 1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropHeight 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig dei 0 0 0  OMX_TI_IndexConfigVidChResolution
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm0Pitch  2560
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Width  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Height 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution Frm1Pitch  1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropWidth 1280
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution FrmCropHeight 720
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 dei OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig dei 0 0 16  OMX_TI_IndexConfigVidChResolution
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei  0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei 0 0 16  OMX_TI_IndexParamBuffMemType
    omx setp 0 dei OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  dei 0 0 17  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  dei  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  dei  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 dei OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam dei 0 0 17   OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 dei OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 dei  OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx setp 0 dei OMX_IndexParamVideoInit nPorts 3
    omx setp 0 dei OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  dei 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 dei OMX_IndexParamPortDefinition video.nStride 1280
    omx api setparam  dei 0 0 0 OMX_IndexParamPortDefinition
    
    omx api getparam  h264venc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 h264venc OMX_IndexParamPortDefinition video.nStride 1280
    omx api setparam  h264venc 0 0 0 OMX_IndexParamPortDefinition
    
    omx api getparam h264venc 0 0 1 OMX_IndexParamVideoPortFormat
    omx setp 0 h264venc OMX_IndexParamVideoPortFormat eCompressionFormat avc
    omx setp 0 h264venc OMX_IndexParamVideoPortFormat xFramerate 3932160
    omx api setparam h264venc 0 0 1 OMX_IndexParamVideoPortFormat
    
    omx setp 0 h264venc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  h264venc 0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 h264venc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam h264venc 0 0 1   OMX_TI_IndexParamCompPortNotifyType
    
    
    omx setp 0 h264vdec OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  h264vdec 0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 h264vdec OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam h264vdec 0 0 1  OMX_TI_IndexParamCompPortNotifyType
    
    
    
    
    #SET ALL THE PARAMS FOR VFDC#1-HD-DAC
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 1
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 1 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    #try
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    
    omx api setparam  vfdc 1 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 1 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 1 0 0 OMX_IndexParamPortDefinition
    #try
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 1 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#1
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 1
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 1 0 0 OMX_TI_IndexParamVFDCDriverInstId
    
    # Chaining the components
    
    omx api connect vfcc 0 0 sc 0 0
    omx api connect sc 0 16 vfdc 0 0
    
    
    omx api sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port sc 0 enable 0
    omx api sendcommand port sc 0 waitforsem 0
    omx api sendcommand port sc 0 enable 16
    omx api sendcommand port sc 0 waitforsem 16
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api sendcommand state dc 0 exec
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 exec
    omx api sendcommand state vfdc 0 waitforsem
    omx api sendcommand state sc 0 exec
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    
    
    sleep 30000
    
    omx setp 0 aplay nSamplingRate 16000
    omx setp 0 aplay nNumSamples 480
    omx func alsa aplay 0 0
    #sleep 1000
    omx setp 0 arecord nSamplingRate 16000
    omx setp 0 arecord nNumSamples 480
    omx func alsa arecord 0 0
    #omtbdemo t 60000 p test_pipe
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    omx api sendcommand state vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state sc 0 loaded
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state dc 0 loaded
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 loaded
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api freehandle h264vdec 0
    omx api freehandle h264venc 0
    omx api freehandle sc 0
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle dei 0
    omx api freehandle dc 0
    omx api freehandle dc 1
    omx api freehandle vfdc 0
    omx api freehandle vfdc 1
    
    omx api uninit
    
     
    

    #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 dei compname OMX.TI.VPSSM3.VFPC.DEIMDUALOUT
    
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 6
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1280
    omx setp 0 vfcc frame_height 720
    omx setp 0 vfcc op_chromat_format 422YUYV
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 1843200
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc data_ipmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc outbuf_contig disable
    
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    
    #SET ALL THE PARAMS FOR VFDC#0-HDMI
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    
    #************************************************************
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    #omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId sii9135
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    
    # Chaining the components
    
    omx api connect vfcc 0 0 vfdc 0 0
    
    omx api sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api sendcommand state dc 0 exec
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 exec
    omx api sendcommand state vfdc 0 waitforsem
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    
    
    sleep 30000
    
    omx setp 0 aplay nSamplingRate 16000
    omx setp 0 aplay nNumSamples 480
    omx func alsa aplay 0 0
    #sleep 1000
    omx setp 0 arecord nSamplingRate 16000
    omx setp 0 arecord nNumSamples 480
    omx func alsa arecord 0 0
    #omtbdemo t 60000 p test_pipe
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    omx api sendcommand state vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 loaded
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 loaded
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle dc 0
    omx api freehandle vfdc 0
    
    
    omx api uninit
    
     
    

    2)VFCC(720p60)->SC->VFDC(720p60)

    3)VFCC(720p60)->VFDC(720p60)

  • Dear Sachin,

    thanks for the scripts.

    However I'm having some trouble with them. On out TI8148EVM I get the following output:

    root@dm814x-evm:~# /usr/share/ti/ti-omtb/omtb_dm81xxbm_a8host.xv5T 720p60-vfcc_vfdc_HDMI.oms

    OMTB> #omx omtb_dbg_lvl 0x00

    OMTB> #omx omtb_dbg_lvl 0x04

    OMTB> #omx omtb_dbg_lvl 0x08

    OMTB> #omx omtb_dbg_lvl 0x10

    OMTB> omx omtb_dbg_lvl 0x80
    OK

    OMTB> omx api init
    OMTB-OMX_ErrorNone
    OK

    OMTB> omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC
    OK

    OMTB> omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    OK

    OMTB> omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    OK

    OMTB> omx setp 0 dei compname OMX.TI.VPSSM3.VFPC.DEIMDUALOUT
    OK
    Leaving <Function:OMTB_CotexA8Task>

    At this point the script hang.

    The source is 720p60 (taken from our custom DM8148 board) and the HDMI on TI8148EVM is already configured as 720p60:

    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

    You sayd that those scripts are validated on DM8168 board and maybe this is the problem.

    There's no reference about OMX.TI.VPSSM3.VFPC.DEIMDUALOUT on the other scripts for DM8148 provided with the SDK. Is this the problem?

    Could you help me somehow?

    Best Regards,

    Andrea

    格浴浸湬㩳潴扭祯∽瑨灴⼺戯慥湴歩潳瑦慷敲挮浯琯浯潢≹砠汭獮猺穩㵥栢瑴㩰⼯敢瑡楮獫景睴牡⹥潣⽭潴扭祯猯穩≥砠汭獮氺湩㵫栢瑴㩰⼯敢瑡楮獫景睴牡⹥潣⽭潴扭祯氯湩≫㰾潢祤放档‰朦㭴㰠⁡瑳汹㵥挢汯牯⌺㐳㔶㑁•牨晥∽猯獹搯癥捩獥瀯慬晴牯⽭灶獳搯獩汰祡⼰湥扡敬≤⼾祳⽳敤楶散⽳汰瑡潦浲瘯獰⽳楤灳慬べ支慮汢摥⼼㹡戼㹲捥潨㜠〲⵰〶☠瑧※愼猠祴敬∽潣潬㩲㌣㘴䄵∴栠敲㵦⼢祳⽳敤楶散⽳汰瑡潦浲瘯獰⽳楤灳慬べ洯摯≥⼾祳⽳敤楶散⽳汰瑡潦浲瘯獰⽳楤灳慬べ洯摯㱥愯㰾牢放档‱朦㭴㰠⁡瑳汹㵥挢汯牯⌺㐳㔶㑁•牨晥∽猯獹搯癥捩獥瀯慬晴牯⽭灶獳搯獩汰祡⼰湥扡敬≤⼾祳⽳敤楶散⽳汰瑡潦浲瘯獰⽳楤灳慬べ支慮汢摥⼼㹡⼼潢祤㰾栯浴㹬
  • omx omtb_dbg_lvl 0x00
    omx omtb_dbg_lvl 0x04
    omx omtb_dbg_lvl 0x08
    omx omtb_dbg_lvl 0x10
    omx omtb_dbg_lvl 0x80
    
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 6
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1280
    omx setp 0 vfcc frame_height 720
    omx setp 0 vfcc op_chromat_format 422YUYV
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 1843200
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc data_ipmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc outbuf_contig disable
    
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    
    #SET ALL THE PARAMS FOR VFDC#0-HDMI
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    omx setp 0 vfdc mosaicDispWindowWidth 1920
    omx setp 0 vfdc mosaicDispWindowHeight 1080
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60
    omx api setparam  dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    
    #************************************************************
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    #omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId sii9135
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    
    # Chaining the components
    
    omx api connect vfcc 0 0 vfdc 0 0
    
    omx api sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api sendcommand state dc 0 exec
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 exec
    omx api sendcommand state vfdc 0 waitforsem
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    
    
    sleep 30000
    
    omx setp 0 aplay nSamplingRate 16000
    omx setp 0 aplay nNumSamples 480
    omx func alsa aplay 0 0
    #sleep 1000
    omx setp 0 arecord nSamplingRate 16000
    omx setp 0 arecord nNumSamples 480
    omx func alsa arecord 0 0
    #omtbdemo t 60000 p test_pipe
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    omx api sendcommand state vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 loaded
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 loaded
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle dc 0
    omx api freehandle vfdc 0
    
    
    omx api uninit
    
     
    

    Hi Andrea,

    If you open and save the script in word pad it will execute properly. I have removed unnecessary command from the script and enable the logs,

    omx omtb_dbg_lvl 0x00

    omx omtb_dbg_lvl 0x04

    omx omtb_dbg_lvl 0x08

    omx omtb_dbg_lvl 0x10

    omx omtb_dbg_lvl 0x80

     

    Thanks and regards

    Sachin Kumar

    Hi Andrea,

    If you open and save the script in word pad it will execute properly. I have removed unnecessary command from the script and enable the logs,

    omx omtb_dbg_lvl 0x00

    omx omtb_dbg_lvl 0x04

    omx omtb_dbg_lvl 0x08

    omx omtb_dbg_lvl 0x10

    omx omtb_dbg_lvl 0x80

     

    Thanks and regards

    Sachin Kumar

  • Tnaks Sachin for the quick response.

    Yes, probably the main problem that I had was the eol encoding.. well now it's fixed!

    Anyway I still have some trouble and no output on HDMI

    Could you please take a look at my log and see if there's any clue in what is wrong in it?

    0640.4505.720p60_vfcc_vfdc.log

    Best Regards,

    Andrea

  • Hi Andrea,

    OMX_ErrorBadParameter is coming for vfdc exec,

    Default display is LCD need to switch the display to HDMI. Below command can be used to switch from LCD to HDMI.

    cd /usr/share/ti/ti-media-controller-utils

    ./change_display.sh hdmi

    need to reboot your board after executing the above command.

    Thanks and regards

    Sachin Kumar

     

  • Thanks Sachin, now it works perfectly!

    Best Regards,

    Andrea

  • One last thing.. this output on HDMI at 1080p60

    could you please show me how to change the output format to 720p60? (in this way I can see the full sized input on my screen)

    I'm trying to do so on my own but I always get a bad parameter error

    I also find a bit strange this:

    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60

    tvp7002 should be configured to have a 720p60 and not a 1080p60.. or am I missing something?

    Sorry for bothering you with such a question but I cannot find anything in the docs (I'm looking into OMTB_01_00_01_07_UserGuide.pdf, provided with the standard SDK and  OpenMax_DM814x_UserGuide.pdf, openmax_il_spec_1_1_2.pdf provided with M3 overlay under NDA)

    Best Regards

    Andrea

  • Hi Andrea,

    Please run below command before executing the attached script.

    cd /usr/share/ti/ti-media-controller-utils

    ./change_resolution.sh 720p60

    Below changes I have done :-

    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 720p60

    omx setp 0 vfdc mosaicDispWindowWidth 1280

    omx setp 0 vfdc mosaicDispWindowHeight 720

    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 720p60

    Thanks and regards

    Sachin Kumar

    #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 dei compname OMX.TI.VPSSM3.VFPC.DEIMDUALOUT
    
    omx setp 0 vfdc frame_width 1280
    omx setp 0 vfdc frame_height 720
    omx setp 0 vfdc ip_chromat_format 422YUYV
    omx setp 0 vfdc numinbuf 6
    omx setp 0 vfdc inbufalign 0
    omx setp 0 vfdc inbuf_contig disable
    omx setp 0 vfdc inbufsize 1843200 
    omx setp 0 vfdc data_opmode driver
    omx setp 0 vfdc data_ipmode driver
    omx setp 0 vfdc inbuf use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1280
    omx setp 0 vfcc frame_height 720
    omx setp 0 vfcc op_chromat_format 422YUYV
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 1843200
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc data_ipmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc outbuf_contig disable
    
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    
    #SET ALL THE PARAMS FOR VFDC#0-HDMI
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 720p60
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1280
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 720
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 2560
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0
    omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0
    omx setp 0 vfdc mosaicNumRows 1
    omx setp 0 vfdc mosaicNumCols 1
    omx setp 0 vfdc mosaicDispWindowWidth 1280
    omx setp 0 vfdc mosaicDispWindowHeight 720
    omx api setparam  vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout
    omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0
    omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 
    omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1
    omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 2560
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1280
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 720
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #SET ALL THE PARAMS FOR DC#0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0
    omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 720p60
    omx api setparam  dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId
    
    #************************************************************
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    #omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId sii9135
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1280
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 720
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    
    # Chaining the components
    
    omx api connect vfcc 0 0 vfdc 0 0
    
    omx api sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api sendcommand state dc 0 exec
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 exec
    omx api sendcommand state vfdc 0 waitforsem
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    
    
    sleep 30000
    
    omx setp 0 aplay nSamplingRate 16000
    omx setp 0 aplay nNumSamples 480
    omx func alsa aplay 0 0
    #sleep 1000
    omx setp 0 arecord nSamplingRate 16000
    omx setp 0 arecord nNumSamples 480
    omx func alsa arecord 0 0
    #omtbdemo t 60000 p test_pipe
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 idle
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 idle
    omx api sendcommand state vfdc 0 waitforsem
    
    omx api sendcommand state vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state dc 0 loaded
    omx api sendcommand state dc 0 waitforsem
    omx api sendcommand state vfdc 0 loaded
    omx api sendcommand state vfdc 0 waitforsem
    
    
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle dc 0
    omx api freehandle vfdc 0
    
    
    omx api uninit
    
     
    

  • Sorry for the late reply Sachin,

    I've just tried you script and it works perfectly!

    Thanks and best regards,

    Andrea