Hi,
I'm trying to run the encode sample on the DM8148 development board but the only output I get on the LCD display is a white screen.
I have the board booting over TFTP and mounting my NFS filesystem. I plug an analog camera into one of the inputs on the I/O expansion board (not sure which one to use, have tried them all). Then I run the following commands on the console:
root@dm814x-evm:~# /etc/init.d/matrix-gui-e stop
Stopping Matrix GUI application.
root@dm814x-evm:~# /etc/init.d/pvr-init stop
Stopping PVR
root@dm814x-evm:~# echo 0 > /sys/devices/platform/vpss/
/sys/devices/platform/vpss/display0/ /sys/devices/platform/vpss/power/
/sys/devices/platform/vpss/display1/ /sys/devices/platform/vpss/subsystem/
/sys/devices/platform/vpss/display2/ /sys/devices/platform/vpss/system/
/sys/devices/platform/vpss/driver/ /sys/devices/platform/vpss/uevent
/sys/devices/platform/vpss/graphics0/ /sys/devices/platform/vpss/video0/
/sys/devices/platform/vpss/graphics1/ /sys/devices/platform/vpss/video1/
/sys/devices/platform/vpss/graphics2/ /sys/devices/platform/vpss/video2/
/sys/devices/platform/vpss/modalias
root@dm814x-evm:~# echo 0 > /sys/devices/platform/vpss/display1/enabled
root@dm814x-evm:~# echo 720p-60 > /sys/devices/platform/vpss/display1/mode
root@dm814x-evm:~# echo 1 > /sys/devices/platform/vpss/display1/enabled
root@dm814x-evm:~# cd dm814x-evm/usr/share/ti/ti-omx/
root@dm814x-evm:~/dm814x-evm/usr/share/ti/ti-omx# ./capture_encode_a8host_debug.
xv5T -o sample.h264 -m 720p -f 30 -b 1000000 -n 1000 -d 1
The result is the following output and a white screen on the LCD but no captured video:
output file: sample.h264
bit_rate: 1000000
frame_rate: 30
num_frames: 1000
mode: 720p
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: 1382400
set input port params (width = 1280, height = 720) applying skip mask
enable capture output port
got eventEnable/Disable Event
dei compoenent is created
set input port params (width = 1280, height = 720)
set output port params (width = 1280, height = 720)set output port params (width = 1920, height = 1080)set number of cha
nnelsset 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 0x12f4f8 for component OMX.TI.VPSSM3.VFDC
got display handle
found handle 0x133500 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 1152000
set input port params (width = 1280, height = 720)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
Can someone give me a set of instructions that will work for this development board that will allow me to get captured video from the camera to be displayed on the LCD screen please? If that cannot be accomplished with this sample app then can someone point me towards another app that will be able to do this.
Thanks,
Steven