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 won't encode

Guru 10685 points


I'm trying out the OpenMAX capture_encode demo as supplied with EZSDK 5.02.02.60. I'm feeding in 720p60 video from an external source into the daughter card component-in and it won't encode. I have no trouble running the OMTB dual_display_decode_encode demo script on the same setup.

Here is the console output:

# ./capture_encode_a8host_debug.xv5T -f 60 -m 720 -b 20000000 -o /localdisc/hello.264 -n 1000
output file: /localdisc/hello.264
bit_rate: 20000000
frame_rate: 60
num_frames: 1000
mode: 720
 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: 0
set input port params (width = 0, height = 0)enable capture output port
got eventEnable/Disable Event
 dei compoenent is created
set input port params (width = 0, height = 0)
set output port params (width = 0, height = 0)set output port params (width = 0, height = 0)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 0x123008 for component OMX.TI.VPSSM3.VFDC
 got display handle
found handle 0x126b10 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 0
set input port params (width = 0, height = 0)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: Error in OMX_AllocateBuffer() : OMX_ErrorBadParameter
ServiceMgr_handleMsg: IpcTypes_Action_STOP
ServiceMgr_stopXferAgent: procId = 1
ServiceMgr_stopXferAgent: free msg
ServiceMgr_stop: join xfer
ServiceMgr_stopXferAgent: returned
ServiceMgr_stopXferAgent: procId = 2
ServiceMgr_stopXferAgent: free msg
ServiceMgr_stopXferAgent: returned
ServiceMgr_stopXferAgent: free exit
ServiceMgr_stop: cancel xfer
ServiceMgr_stop: join rx
ServiceMgr_stop: cleanup
ServiceMgr_stop: done

Please can someone help me get this working? I get exactly the same problems when booted into TI's default SD card environment.

Thanks,
Ralph

  • '#./capture_encode_a8host_debug.xv5T -f 60 -m 720 -b 20000000 -o /localdisc/hello.264 -n 1000' needs to be

     

    ./capture_encode_a8host_debug.xv5T -f 60 -m 720p -b 20000000 -o /localdisc/hello.264 -n 1000

     

    To get the usage, you can refer the OMX user guide or simply do this:

    #./capture_encode_a8host_debug.xv5T

     

    Archith