Hello,
I'm using EZSDK 5.05 and DM8168 EMV Rev C with video confernece I/O board.
i've face some problem with decode_display example.
Here is my configuration for test.
1. Change resolution from 1080p to 720p. (Because the camera I used for test support uptp 720p.)
2. Modify Capture_encode Example code to support HDMI input. (-c options, 0 means HDMI and 1 for component input)
I use Capture_encode_decode_display.tar.gz for the reference.
2. Modify Capture_Encode example code to test CBR/VBR.
In IL_ClientSetEncodeParams(), tEncodePreset.eRateControlPreset = OMX_Video_RC_None --> OMX_Video_RC_Low_Delay(CBR), OMX_Video_RC_Storate(VBR)
3. Run Capture_Encode example like below. It works well.
./capture_encode_a8host_debug.xv5T -o test0.h264 -m 720p -f 60 -b 1000000 -c 0 -d 0 -n 100
4. Run decode_display example(with any modifications), then the application is not working.
./decode_display_a8host_debug.xv5T -i ./test0.h264 -w 1280 -h 720 -f 60 -c h264 -d 0 -g 0
the result message is
root@dm816x-evm:~/dm816x-evm/usr/share/ti/ti-omx# ./decode_display_a8host_debug.
xv5T -i ./test0.h264 -w 1280 -h 720 -f 60 -c h264 -d 0 -g 0
input file: ./test0.h264
width: 1280
height: 720
frame_rate: 60
gfx: fbdev disable
codec: h264
display_id: 0
Decoder-Display 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
opening file
decoder compoenent is created
PADX: 32 PADY: 24
level set is 12
scalar compoenent is created
set input port params (width = 1280, height = 720)
set output port params (width = 1280, height = 720)
set number of channels
set input resolution
set output resolution
enable scalar input port
got eventEnable/Disable Event
enable scalar output port
got eventEnable/Disable Event
found handle 0x143068 for component OMX.TI.VPSSM3.VFDC
got display handle
found handle 0x147070 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 1843200
set input port params (width = 1280, height = 720)
setting input and output memory type to default
enable input port
got eventEnable/Disable Event
connect call for decoder-scalar
connect call for scalar-display
decoder inport buffers allocated
decoder outport buffers allocated
got eventState changed to: OMX_StateIdle
decoder state IDLE
Scalar input port use buffer done
scalar outport buffers allocated
got eventState changed to: OMX_StateIdle
scalar state IDLE
got eventState changed to: OMX_StateIdle
ctrl-dc state IDLE
got eventState changed to: OMX_StateIdle
display state IDLE
got eventState changed to: OMX_StateExecuting
display control state execute
got event*** unrecoverable error: OMX_ErrorBadParameter (0x80001005)
How can I run decode_display application with my encoded file?
And I have another question.
When tEncodePreset.eRateControlPreset is set to (1. omx_video_rc_none, 2. omx_video_rc_low_delay, 3, omx_video_rc_storage)
with tEncodePreset.eEncodingModePreset to omx_video_enc_default, which result file has the most size?
In my case for 100 frames, rc_none option has the largest file size and rc_low_delay option has the smallest file size. Is it correct?
Best Regards,
Jongpil.