Hello,
I'm trying to set the H264 encoder OpenMax component to use OMX_Video_Enc_User_Defined instead
of OMX_Video_Enc_Med_Speed_High_Quality so that I can get new NALU settings actually used by the encoder.
It was mentioned in this thread [ http://e2e.ti.com/support/embedded/f/356/p/144244/521510.aspx#521510 ] that
I needed to set this so that my NALU settings will actually be used.
The settings for NALU and the EncoderPreset are available via OpenMax in EZSDK 5.02 for the TI8168 and
I've modified the capture_encode demo application to set it with no problem but it complains at run time
(after the OMX_SetParameter() calls have successfully run) that something is wrong but with no indication
as to what it is. Here's a short snippet of my capture_encode trace.
encoder compoenent is created
*** Setting EncoderModePreset to OMX_Video_Enc_User_Defined
***before***: tNaluMasks.nStartofSequence: 0x01A0
***before***: tNaluMasks.nIDR: 0x01A0
***before***: tNaluMasks.nIntraPicture: 0x0182
***before***: tNaluMasks.nNonIntraPicture: 0x0182
***before***: tNaluMasks.nEndofSequence: 0x0180
***after***: tNaluMasks.nStartofSequence: 0x01A0
***after***: tNaluMasks.nIDR: 0x01A0
***after***: tNaluMasks.nIntraPicture: 0x0182
***after***: tNaluMasks.nNonIntraPicture: 0x0182
***after***: tNaluMasks.nEndofSequence: 0x0180
***fetch***: tNaluMasks.nStartofSequence: 0x01A0
***fetch***: tNaluMasks.nIDR: 0x01A0
***fetch***: tNaluMasks.nIntraPicture: 0x0182
***fetch***: tNaluMasks.nNonIntraPicture: 0x0182
***fetch***: tNaluMasks.nEndofSequence: 0x0180
found handle 0x111090 for component OMX.TI.VPSSM3.VFDC
got display handle
found handle 0x114b98 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 defau
ltenable 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 eventState changed to: OMX_StateIdle
DEI is in IDLE state
encoder input port use buffer done
got event*** unrecoverable error: OMX_ErrorBadParameter (0x80001005)
Press a key to proceed
Any thoughts on how I can get this set properly so I can see my NALU changes take effect.
Thanks.
Juan Solis