https://wiki.qt.io/index.php?title=Running_QtMediaHub_on_ST7105&feed=atom&action=history
Running QtMediaHub on ST7105 - Revision history
2024-03-29T14:03:37Z
Revision history for this page on the wiki
MediaWiki 1.39.4
https://wiki.qt.io/index.php?title=Running_QtMediaHub_on_ST7105&diff=29251&oldid=prev
EdwardWelbourne: It's also a HowTo
2016-11-28T10:38:27Z
<p>It's also a HowTo</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:38, 28 November 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:QtMediaHub]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:QtMediaHub]]</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:HowTo]]</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Assumptions ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Assumptions ==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
EdwardWelbourne
https://wiki.qt.io/index.php?title=Running_QtMediaHub_on_ST7105&diff=29249&oldid=prev
EdwardWelbourne: Convert bogus category (with nothing in it) to actual page.
2016-11-28T10:37:07Z
<p>Convert bogus category (with nothing in it) to actual page.</p>
<p><b>New page</b></p><div>[[Category:QtMediaHub]]<br />
== Assumptions ==<br />
<br />
# Qt 4.8.0 is configured, built and installed as per [http://wiki.qt.io/ST7105 ST7105]<br />
# Can run STM's "Test-Tool" on reference board to test media playback.<br />
# "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 crosscompiled and installed for ST7105 in your build terminal<br />
<br />
== Getting Source ==<br />
<br />
You can get the latest source code from gitorious [https://gitorious.org/qtmediahub https://gitorious.org/qtmediahub].<br />
You can use [http://gitorious.org/qtmediahub/qtmediahub/blobs/master/scripts/sync-to-head sync-to-head] to update your sources to latest version<br />
<br />
Note that we are in the process of moving the git repositories to the qt.io.<br />
<br />
== Multimedia Playback Support ==<br />
<br />
QMH uses "platform specific media player application" (in ST's case it is the Test-Tool) to have media playback facility.<br />
This is achieved using "out of process integration" which means:-<br />
<br />
## Start "Test-Tool" in background and redirect a FIFO ("/tmp/stapp_fifo2") to "Test-Tool"s STDIN<br />
## Redirect "Test-Tool"'s STDOUT and STDERROR to a normal file ("/tmp/stapp_log")<br />
## QMH issues commands to "platform specific media player application" to another FIFO ("/tmp/stapp_fifo")<br />
## Have an arrangement to transfer data from FIF0 ("/tmp/stapp_fifo") to FIFO ("/tmp/stapp_fifo2")<br />
## And QMH collects the feedback by reading "platform specific media player application"'s STDOUT and STDERROR<br />
<br />
This is achieved using following shell (commands in a init) script on ST7105 reference board.<br />
<br />
<code><br />
cd /root/<br />
<br />
export MODULES_INSTALL_DIR=/root/modules<br />
export LD_LIBRARY_PATH=/lib:/usr/lib:/root/modules:$LD_LIBRARY_PATH<br />
<br />
rm -f /tmp/stapp_fifo /tmp/stapp_fifo2 /tmp/stapp_log<br />
mkfifo /tmp/stapp_fifo<br />
mkfifo /tmp/stapp_fifo2<br />
<br />
( source /root/modules/load_modules.sh && /root/main_iptv7105_7105_ST40_LINUX_32BITS.out </tmp/stapp_fifo2 >/tmp/stapp_log 2>&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><br />
<br />
ST7105 specific media control integration can be found in files [http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7105.h mediaplayerST7105.h] and [http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerST7105.cpp mediaplayerST7105.cpp]<br />
<br />
== Configuring ==<br />
<br />
Use " -media-backend ST7105" configure option to enable multimedia playback capability of QMH<br />
<br />
<code><br />
cd /path/to/qtmediahub/<br />
/path/to/qtmediahub/configure -media-backend ST7105<br />
</code><br />
<br />
== Building ==<br />
<br />
Build QMH as follows<br />
<br />
<code><br />
cd /path/to/qtmediahub/<br />
make<br />
</code><br />
<br />
== Installing ==<br />
<br />
As installation of QMH on ST7105 reference board copy entire "qtmediahub" directory so that its path is exactly same as that on build machine.<br />
<br />
== Running QMH on Qt 4.8 (QWS) ==<br />
<br />
Setup QTDIR, QWS_KEYBOARD, QWS_MOUSE_PROTO and LD_LIBRARY_PATH environment variables as follows<br />
<br />
<code><br />
export QTDIR=/path/to/installed/qt-everywhere-opensource-src-4.8.0/<br />
export QWS_KEYBOARD="LinuxInput:/dev/input/event0" //Use appropriate device node<br />
export QWS_MOUSE_PROTO="LinuxInput:/dev/input/event1" //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/"<br />
</code><br />
<br />
Rum QMH as follows to use DirectFB<br />
<br />
<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><br />
<br />
Rum QMH as follows to use Linux Frame Buffer<br />
<br />
<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></div>
EdwardWelbourne