Other Parts Discussed in Thread: TVP7002
Hi,
using the SDK5.05.02 I am trying to run the OMX capture and encode example, but am getting the following error. BTW, other OMX examples run fine.
root@dm816x-evm:~# cat ./runCapture1080iEncodeOMX.sh #!/bin/sh
/etc/init.d/matrix-gui-e stop echo 0 > /sys/devices/platform/vpss/graphics0/enabled
cd /usr/share/ti/ti-omx
rm -f ../data/videos/sample.h264
./capture_encode_a8host_debug.xv5T -o ../data/videos/sample.h264 -m 1080i -f 60 -b 8000000 -d 0 -n 100
cd ~
root@dm816x-evm:~# ./runCapture1080iEncodeOMX.sh
Stopping Matrix GUI application. output file: ../data/videos/sample.h264 bit_rate: 8000000 frame_rate: 60 num_frames: 1000 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 0x1244f8 for component OMX.TI.VPSSM3.VFDC got display handle found handle 0x128500 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
If i run the same test with format -m 1080p, the application goes further, but still does not complete ...
root@dm816x-evm:~# cat runCapture1080pEncodeOMX.sh
#!/bin/sh
/etc/init.d/matrix-gui-e stop
echo 0 > /sys/devices/platform/vpss/graphics0/enabled
cd /usr/share/ti/ti-omx
rm -f ../data/videos/sample.h264
./capture_encode_a8host_debug.xv5T -o ../data/videos/sample.h264 -m 1080p -f 60 -b 8000000 -d 0 -n 100
cd ~
root@dm816x-evm:~# ./runCapture1080pEncodeOMX.sh Stopping Matrix GUI application. output file: ../data/videos/sample.h264 bit_rate: 8000000 frame_rate: 60 num_frames: 100 mode: 1080p 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: 3110400 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 0x1244f8 for component OMX.TI.VPSSM3.VFDC got display handle found handle 0x128500 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 eventState changed to: OMX_StateIdle DEI is in IDLE state encoder input port use buffer done encoder outport buffers allocated got eventState changed to: OMX_StateIdle Encoder state IDLE got eventState changed to: OMX_StateIdle ctrl-dc state IDLE display buffers allocated waiting for IDLEgot eventState changed to: OMX_StateIdle display state IDLE got eventState changed to: OMX_StateExecuting display control state execute got eventState changed to: OMX_StateExecuting display state execute got eventState changed to: OMX_StateExecuting encoder state execute got eventState changed to: OMX_StateExecuting dei state execute got eventState changed to: OMX_StateExecuting capture state execute
Regards,
--Gunter