Greetings,
I just got my EVM8148 board last week and I can run all the demo application from the matrix UI. I have a basic question about video encoding. The only one that doesn't seem to work is the video capture. I want to produce h264 encoded video output.
Since that failed I tried to do it manually. I saw some partial instructiion on how to do this one this forum for the 8168.
I read the instruction at http://processors.wiki.ti.com/index.php/OMX_EZSDK_Examples#How_to_Run_2 that says to disable Matrix GUI. The instructions seems to be for the 8168.
http://processors.wiki.ti.com/index.php/Matrix_Users_Guide#I_don.27t_want_Matrix_to_run_on_boot_up
i rename one of the S-file to a K as you can see below. ( S99matrix-gui-e -> K99matrix-gui-e)
root@dm814x-evm:/etc/rc5.d# ls -lart
lrwxrwxrwx 1 root root 16 Jan 1 2000 S02dbus-1 -> ../init.d/dbus-1
drwxr-sr-x 34 root root 4096 Dec 9 18:22 ..
drwxr-sr-x 2 root root 4096 Dec 9 18:26 .
lrwxrwxrwx 1 root root 19 Feb 22 2012 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 22 Feb 22 2012 S99gplv3-notice -> ../init.d/gplv3-notice
lrwxrwxrwx 1 root root 18 Feb 22 2012 S30pvr-init -> ../init.d/pvr-init
lrwxrwxrwx 1 root root 16 Feb 22 2012 S20thttpd -> ../init.d/thttpd
lrwxrwxrwx 1 root root 16 Feb 22 2012 S20syslog -> ../init.d/syslog
lrwxrwxrwx 1 root root 17 Feb 22 2012 S10telnetd -> ../init.d/telnetd
lrwxrwxrwx 1 root root 29 Feb 22 2012 S01load-hd-firmware.sh -> ../init.d/load-hd-firmware.sh
lrwxrwxrwx 1 root root 22 Feb 22 2012 K99matrix-gui-e -> ../init.d/matrix-gui-e
now the matrix start anymore.
but when I ran the instruction
and i tried to load the kernel driver manually I get this type of errors.
root@dm814x-evm:/etc/rc5.d# insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
insmod: error inserting '/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko': -1 File exists
So my questions:
Ddo I need to turn off another script to prevent the .ko file from being installed ?
are these instructions been tested on the 8148 EVM ? are they suppose to work? if not is there a way to get video encode working on the 8148 EVM?
Best regards
Richard
here is the output I get:
root@dm814x-evm:/usr/share/ti/ti-omx# ./capture_encode_a8host_debug.xv5T -o samp
le.h264 -m 1080p -f 60 -b 1000000 -d 0 -n 1000
output file: sample.h264
bit_rate: 1000000
frame_rate: 60
num_frames: 1000
mode: 1080p
display_id: 0
Capture-Encode example
===============================
OMX_Init completed
these are the instruction i am trying to run below:
How to Run
As this example by default provides display on HDMI port, user should plug in a display device (TV) into base board HDMI port. Also display device should support 1080p60 display. A video source should be connected on Component input port of EIO card. Video source should provide 1080p60 on component output, otherwise EVM will not be able to detect the capture signal. On running the application user should see the video playing on connected display device, and encoded output will be produced in given file.
For running the application following steps are required (These steps assume that all the binaries are stored in same folder). Please note, SDK would autoload the binaries as part of demonstration application, which should be disabled before following the procedure below. It assumes that EVM has been booted and user has logged in as root. If init sequence in SDK is not disabled, following steps are not required, and user can proceed with Matrix GUI disabling step.
•# /prcm_config_app s • Insert syslink module # insmod syslink.ko • Load the Firware using firmware_loader utility provided in SDK. ( By default in the init scripts of Linux, firmaware might be getting loaded, so care needs to taken) i. # ./firmware_load 1 dm816x_hdvicp.xem3 start ii.# ./firmware_load 2 dm816x_hdvpss.xem3 start • Insert HDMI controller / FB dev driver i. # insmod vpss .ko vpss_slaveloader = 0xbfb0000 ii. # insmod ti816xxxhdmi.ko
If Matrix GUI is running as part of SDK initialization scripts, It needs to be turned off
# /etc/init.d/matrix-gui-e stop # /etc/init.d/pvr-init stop
• Run the application
# ./capture_encode_a8host_debug.xv5t -o test.data -m 1080p -f 60 -b 10000000 -n 500
If application has modified the display id to set it to HDCOMP, HDCOMP needs to be configured for 1080p-60 mode, before running the application
# echo 1080p-60 >/sys/devices/platform/vpss/display3/mode