Category:QtMediaHub::ST7540: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(Convert bogus category (with nothing in it) to actual page.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
h1. Running QtMediaHub on ST7540
#Redirect [[Running QtMediaHub on ST7540]]
 
== Assumptions ==
 
# Qt 4.8.0 is configured, built and installed as per "ST7540":http://wiki.qt.io/ST7540
# Can run STM’s “Test-Tool” on reference board to test OpenGL ES 2.0 and media playback.
# "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 cross compiled and installed for ST7540 in your build terminal
 
== Getting Source ==
 
You can get the latest source code from gitorious &quot;https://gitorious.org/qtmediahub&amp;quot;:https://gitorious.org/qtmediahub.<br />You can use &quot;sync-to-head&amp;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 &quot;platform specific media player application&amp;quot; (in ST's case it is the Test-Tool) to have media playback facility.<br />This is achieved using &quot;out of process integration&amp;quot; which means:-
 
## Start &quot;Test-Tool&amp;quot; in background and redirect a FIFO (&quot;/tmp/stapp_fifo2&amp;quot;) to &quot;Test-Tool&amp;quot;s STDIN<br />## Redirect &quot;Test-Tool&amp;quot;'s STDOUT and STDERROR to a normal file &amp;#40;&quot;/tmp/stapp_log&amp;quot;&amp;#41;<br />## QMH issues commands to &quot;platform specific media player application&amp;quot; to another FIFO (&quot;/tmp/stapp_fifo&amp;quot;)<br />## Have an arrangement to transfer data from FIF0 (&quot;/tmp/stapp_fifo&amp;quot;) to FIFO (&quot;/tmp/stapp_fifo2&amp;quot;)<br />## And QMH collects the feedback by reading &quot;platform specific media player application&amp;quot;'s STDOUT and STDERROR
 
This is achieved using following shell (commands in a init) script on ST7540 reference board.
 
<code><br />cd /root/app<br />mkdir -p /dev/fusion
 
export MODULES_INSTALL_DIR=/root/app/modules<br />export LD_LIBRARY_PATH=/lib:/usr/lib:/root/app/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/initapp.sh &amp;&amp; cd /root/app/ &amp;&amp; ./bsptestapp_dvb &lt;/tmp/stapp_fifo2 &gt;/tmp/stapp_log 2&amp;gt;&amp;1 &amp;<br />sleep 30<br />while [ 1 ] ; do cat /tmp/stapp_fifo &gt;/tmp/stapp_fifo2 ; done &amp;<br />sleep 30<br />echo '' &gt; /tmp/stapp_fifo<br />sleep 30<br /></code>
 
ST7540 specific media control integration can be found in files &quot;mediaplayerST7540.h&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7540.h and &quot;mediaplayerST7540.cpp&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7540.cpp
 
== Configuring ==
 
Use &quot; -media-backend ST7540&amp;quot; configure option to enable multimedia playback capability of QMH
 
<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend ST7540<br /></code>
 
== Building ==
 
Build QMH as follows
 
<code><br />cd /path/to/qtmediahub/<br />make<br /></code>
 
== Installing ==
 
As installation of QMH on ST7540 reference board copy entire &quot;qtmediahub&amp;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=&quot;LinuxInput:/dev/input/event0&amp;quot; //Use appropriate device node<br />export QWS_MOUSE_PROTO=&quot;LinuxInput:/dev/input/event1&amp;quot; //Use appropriate device node<br />export LD_LIBRARY_PATH=${QTDIR}/lib/:${LD_LIBRARY_PATH}<br />export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:&quot;/path/to/qtmediahub/qtmediahub-core/hub/lib/&amp;quot;<br /></code>
 
Rum QMH as follows to use OpenGL ES 2.0
 
<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/qtmediahub-core/hub/bin/qtmediahub -qws -keyboard -mouse -display eglnullws:size=1280x720 -skin=confluence -overlayMode=true -opengl-usage=true -opengl-viewport=true -opengl-format-hack=false<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 -keyboard -mouse -display linuxfb -skin=confluence— -overlayMode=true -opengl-usage=false -opengl-viewport=false -opengl-format-hack=false<br /></code>

Latest revision as of 10:44, 28 November 2016

This category currently contains no pages or media.