|
|
| (6 intermediate revisions by 3 users not shown) |
| Line 1: |
Line 1: |
| h1. Running QtMediaHub on ST7105
| | #Redirect [[Running QtMediaHub on ST7105]] |
| | |
| == Assumptions ==
| |
| | |
| # Qt 4.8.0 is configured, built and installed as per "ST7105":http://wiki.qt.io/ST7105
| |
| # Can run STM’s “Test-Tool” on reference board to test media playback.
| |
| # "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 crosscompiled and installed for ST7105 in your build terminal
| |
| | |
| == Getting Source ==
| |
| | |
| You can get the latest source code from gitorious "https://gitorious.org/qtmediahub&quot;:https://gitorious.org/qtmediahub.<br />You can use "sync-to-head&quot;:http://gitorious.org/qtmediahub/qtmediahub/blobs/master/scripts/sync-to-head to update your sources to latest version
| |
| | |
| Note that we are in the process of moving the git repositories to the qt.io.
| |
| | |
| == Multimedia Playback Support ==
| |
| | |
| QMH uses "platform specific media player application&quot; (in ST's case it is the Test-Tool) to have media playback facility.<br />This is achieved using "out of process integration&quot; which means:-
| |
| | |
| ## Start "Test-Tool&quot; in background and redirect a FIFO ("/tmp/stapp_fifo2&quot;) to "Test-Tool&quot;s STDIN<br />## Redirect "Test-Tool&quot;'s STDOUT and STDERROR to a normal file &#40;"/tmp/stapp_log&quot;&#41;<br />## QMH issues commands to "platform specific media player application&quot; to another FIFO ("/tmp/stapp_fifo&quot;)<br />## Have an arrangement to transfer data from FIF0 ("/tmp/stapp_fifo&quot;) to FIFO ("/tmp/stapp_fifo2&quot;)<br />## And QMH collects the feedback by reading "platform specific media player application&quot;'s STDOUT and STDERROR
| |
| | |
| This is achieved using following shell (commands in a init) script on ST7105 reference board.
| |
| | |
| <code><br />cd /root/
| |
| | |
| export MODULES_INSTALL_DIR=/root/modules<br />export LD_LIBRARY_PATH=/lib:/usr/lib:/root/modules:$LD_LIBRARY_PATH
| |
| | |
| rm -f /tmp/stapp_fifo /tmp/stapp_fifo2 /tmp/stapp_log<br />mkfifo /tmp/stapp_fifo<br />mkfifo /tmp/stapp_fifo2
| |
| | |
| ( source /root/modules/load_modules.sh && /root/main_iptv7105_7105_ST40_LINUX_32BITS.out </tmp/stapp_fifo2 >/tmp/stapp_log 2&gt;&1 & )<br />sleep 10<br />( while [ 1 ] ; do cat /tmp/stapp_fifo >/tmp/stapp_fifo2 ; done & )<br />sleep 10<br />echo '' > /tmp/stapp_fifo<br />sleep 10<br />echo 'VTG_SETMODE 0 +33' > /tmp/stapp_fifo<br />sleep 10<br />echo '' > /tmp/stapp_fifo<br />sleep 10<br />( source /root/modules/load_fb.sh HD )<br />sleep 10<br /></code>
| |
| | |
| ST7105 specific media control integration can be found in files "mediaplayerST7105.h&quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7105.h and "mediaplayerST7105.cpp&quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7105.cpp
| |
| | |
| == Configuring ==
| |
| | |
| Use " -media-backend ST7105&quot; configure option to enable multimedia playback capability of QMH
| |
| | |
| <code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend ST7105<br /></code>
| |
| | |
| == Building ==
| |
| | |
| Build QMH as follows
| |
| | |
| <code><br />cd /path/to/qtmediahub/<br />make<br /></code>
| |
| | |
| == Installing ==
| |
| | |
| As installation of QMH on ST7105 reference board copy entire "qtmediahub&quot; directory so that its path is exactly same as that on build machine.
| |
| | |
| == Running QMH on Qt 4.8 (QWS) ==
| |
| | |
| Setup QTDIR, QWS_KEYBOARD, QWS_MOUSE_PROTO and LD_LIBRARY_PATH environment variables as follows
| |
| | |
| <code><br />export QTDIR=/path/to/installed/qt-everywhere-opensource-src-4.8.0/<br />export QWS_KEYBOARD="LinuxInput:/dev/input/event0&quot; //Use appropriate device node<br />export QWS_MOUSE_PROTO="LinuxInput:/dev/input/event1&quot; //Use appropriate device node<br />export LD_LIBRARY_PATH=${QTDIR}/lib/:${LD_LIBRARY_PATH}<br />export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:"/path/to/qtmediahub/qtmediahub-core/hub/lib/&quot;<br /></code>
| |
| | |
| Rum QMH as follows to use DirectFB
| |
| | |
| <code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/qtmediahub-core/hub/bin/qtmediahub -qws -display directfb -skin=delphin -overlayMode=true -opengl-usage=false -opengl-viewport=false -opengl-format-hack=false<br /></code>
| |
| | |
| Rum QMH as follows to use Linux Frame Buffer
| |
| | |
| <code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/qtmediahub-core/hub/bin/qtmediahub -qws -display -keyboard -mouse linuxfb -skin=confluence— -overlayMode=true -opengl-usage=false -opengl-viewport=false -opengl-format-hack=false<br /></code>
| |