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.

openmax problem

 Hi all:
         I'm changing the demo application to understand openmax component and exercise using openmax, but it seem fail at first.
I just want to remove the encode component in the capture_encode, so I change some code, and the code is below.
But I can't see any thing in the output screen using the below code.6445.capture_display_forever.zip
Where is my problem, I'm stuck here long time, can somebody help me ?
My board is video confrence evm board(version F).
Many thanks.
 
chris 
  • hi all :

         The below is my trace. 

         

    root@dm816x-evm:~# cd /usr/test/
    root@dm816x-evm:/usr/test# ls
    capture_display_a8host_debug.xv5T capture_encode_a8host_debug.xv5T runCapDisply.sh runCaptureEncode
    root@dm816x-evm:/usr/test# cat runCapDisply.sh
    #!/bin/sh



    #
    # Turn on the ALSA Mixer
    #
    configure_alsa_mixer()
    {
    amixer sset 'Left PGA Mixer Mic3L' on
    amixer sset 'Left PGA Mixer Mic3R' on
    amixer sset 'Right PGA Mixer Mic3L' on
    amixer sset 'Right PGA Mixer Mic3R' on

    amixer cset name='PCM Playback Volume' 75%,75%
    amixer cset name='PGA Capture Volume' 75%,75%
    }



    #
    # In order to view video, the graphics plane needs to be
    # disabled. Once the video has finished playing the graphics
    # plane needs to be re-enabled.
    #
    # Call this function with 0 to disable graphics and 1 to
    # enable it.
    #
    configure_graphics()
    {
    echo $1 > /sys/devices/platform/vpss/graphics0/enabled
    echo $1 > /sys/devices/platform/vpss/graphics1/enabled
    }




    #
    # Call this function to setup and execute the demo
    #
    execute_demo()
    {
    # cd /usr/share/ti/ti-omx

    ./capture_display_a8host_debug.xv5T -m 1080p -f 60 -d 1
    }


    # Disable Graphics Plane so that Video can be seen.
    configure_graphics 0

    configure_alsa_mixer
    execute_demo

    # Enable Graphics again.
    configure_graphics 1
    root@dm816x-evm:/usr/test#
    root@dm816x-evm:/usr/test# /etc/init.d/matrix-gui-e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:/usr/test# ./runCap
    ./runCapDisply.sh ./runCaptureEncode
    root@dm816x-evm:/usr/test# ./runCapDisply.sh
    Simple mixer control 'Left PGA Mixer Mic3L',0
    Capabilities: pswitch pswitch-joined penum
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'Left PGA Mixer Mic3R',0
    Capabilities: pswitch pswitch-joined penum
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'Right PGA Mixer Mic3L',0
    Capabilities: pswitch pswitch-joined penum
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'Right PGA Mixer Mic3R',0
    Capabilities: pswitch pswitch-joined penum
    Playback channels: Mono
    Mono: Playback [on]
    numid=1,iface=MIXER,name='PCM Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
    : values=96,96
    | dBscale-min=-63.50dB,step=0.50dB,mute=0
    numid=37,iface=MIXER,name='PGA Capture Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=119,step=0
    : values=90,90
    | dBscale-min=0.00dB,step=0.50dB,mute=0
    output file: ?揖?
    @
    bit_rate: 0
    frame_rate: 60
    num_frames: 0
    mode: 1080p
    display_id: 1
    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: 3110400
    set input port params (width = 1920, height = 1080)enable capture output port
    got event:Enable/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 event:Enable/Disable Event
    enable dei output port 0
    got event:Enable/Disable Event
    enable dei output port 1
    got event:Enable/Disable Event
    found handle 0x1293b0 for component OMX.TI.VPSSM3.VFDC
    got display handle
    found handle 0x12ceb8 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 event:Enable/Disable Event
    connect call for capture-Dei
    connect call for dei-display
    got event:State changed to: OMX_StateIdle
    Capture outport buffers allocated
    got event:State changed to: OMX_StateIdle
    Capture is in IDLE state
    Dei input port use buffer done
    DEI numOutport(0) buffers allocated
    DEI numOutport(1) buffers allocated
    DEI outport buffers allocated
    got event:State changed to: OMX_StateIdle
    DEI is in IDLE state
    got event:State changed to: OMX_StateIdle
    ctrl-dc state IDLE
    display buffers allocated
    waiting for IDLE
    got event:State changed to: OMX_StateIdle
    display state IDLE
    got event:State changed to: OMX_StateExecuting
    display control state execute
    got event:State changed to: OMX_StateExecuting
    display state execute
    got event:State changed to: OMX_StateExecuting
    dei state execute
    got event:State changed to: OMX_StateExecuting
    capture state execute
    
    
    
    
    chris
  • Chris,

    It appears as capture source is not detected. Is the set-up working for capture-encode demo ?

    Second point For DEI both ports must be connected to some component. If only one port is used, other should be terminated such that buffers received in that port are recycled back. else DEI component would not work.

    Regards

    Vimal

  • Vimal,

             Thanks for your reply.

             Yes,the capture-encode demo  is work, you can see the demo is under the same dir "/usr/test/".

             For the second point,  I try to put the dei component second output port buffer to recycle to capture component, but the code I change is still not work.

             Can you give some detail avdvice on how to change this?

             Best Regards

        

    chris