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 Setup - Running Interlace Video Content

Hi,

I am trying to run the H264 by setting 1080i mode, but i see the errors while setting these mode.

Please let me know if the interlace content encoding is supported in 5.05 EZSDK version.

Regards,

Sudeep

  • Hello,

    Yes, it is supported.

    "Interlace capture ( 1080i60) is supported in capture_encode example."

    What is the error?

    What version of EZSDK you are using 5.05.01 or 5.05.02?

    Best Regards,

    Magy

  • Hi Magy,

    Thanks for the reply.

    We are using 5_05_01_04 version of ezsdk and getting the below error:

    oot@dm816x-evm:/users/rk/ezsdk_505# ./capture_encode_a8host_debug.xv5T -o sampl
    e.h264 -m 1080i -f 60 -b 1000000 -d 0 -n 100
    output file: sample.h264
    bit_rate: 1000000
    frame_rate: 60
    num_frames: 100
    mode: 1080i
    display_id: 0
     Capture-Encode example
    ===============================
     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: 2073600
    set input port params (width = 1920, height = 1080)enable capture output port
    got eventEnable/Disable Event
     dei compoenent is created
    set input port params (width = 1920, height = 1080)
    set output port params (width = 1920, height = 1080)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 0x12f4f8 for component OMX.TI.VPSSM3.VFDC
     got display handle
    found handle 0x133500 for component OMX.TI.VPSSM3.CTRL.DC
    Buffer Size computed: 4147200
    set input port params (width = 1920, height = 1080)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 eventState changed to: OMX_StateIdle
     Capture outport buffers allocated
     got eventState changed to: OMX_StateIdle
     Capture is in IDLE state
     Dei input port use buffer done
      DEI outport buffers allocated
     got event*** unrecoverable error: OMX_ErrorInsufficientResources (0x80001000)
    Press a key to proceed


    Do we need to use 5.05.02 version for interlace support?

    Regards,
    Sudeep
  • Hello,

    What is the PG version of your board?

    For 1080i  are using 422 format, and pitch would be 2xwidth. On PG1.1 DM8168, this pitch is not supported for > 1920, so you would see the error. PG2.0 supports this.

    Could you run loggerSMDump for getting more debug prints: ./loggerSMDump.out 0x9E400000 0x100000  all

    It is available at /usr/share/ti/ti-uia folder in the filesystem.

    Best Regards,

    Margarita

  • Hi Margarita,

    We have PG2.0 rev G board.

    However we checked with latest ezsdk 5_05_02_00 version and ran the interlaced content.

    The output generated had the following properties:

    video stream type     :                 AVC
    resolution            :           1920x1080
    profile:level         :        Baseline:4.2
    aspect ratio          :                16x9
    chroma format         :               4:2:0

    Since the H264 encoder is not set to main / high profile, so the interlaced encoding is not enabled.

    I will try setting it to main profile and check.

    Regards,

    Sudeep

  • Hello Suddep,

    You could check here:

    http://processors.wiki.ti.com/index.php/VENC

    How to encode in interlace mode?

    Let me know the result.

    Best Regards,

    Magy