Category:QtMediaHub::Trident Shiner: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
== Assumptions ==
== Assumptions ==


# Qt 4.8.0 is configured, built and installed as per "Trident Shiner":http://wiki.qt.io/Shiner
# Qt 4.8.0 is configured, built and installed as per "Trident Shiner":http://wiki.qt.io/Shiner
# Can run "GstTsPlayer" or "miniplayer" on reference board to test media playback alongside any simple OpenGL ES 2.0 application
# Can run "GstTsPlayer" or "miniplayer" on reference board to test media playback alongside any simple OpenGL ES 2.0 application
# The video playback plane is behind the graphics plane
# The video playback plane is behind the graphics plane
# "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 cross compiled and installed for Trident Shiner in your build terminal
# "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 cross compiled and installed for Trident Shiner in your build terminal


== Getting Source ==
== 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
You can get the latest source code from gitorious "https://gitorious.org/qtmediahub":https://gitorious.org/qtmediahub.<br />You can use "sync-to-head":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.
Note that we are in the process of moving the git repositories to the qt.io.
Line 16: Line 16:
== Multimedia Playback Support ==
== Multimedia Playback Support ==


QMH uses &quot;platform specific media player application&amp;quot; (in Trident Shiner's case it is either &quot;GstTsPlayer&amp;quot; or &quot;miniplayer&amp;quot; ) to have media playback facility.<br />This is achieved using &quot;out of process integration&amp;quot; which means:-
QMH uses "platform specific media player application" (in Trident Shiner's case it is either "GstTsPlayer" or "miniplayer" ) to have media playback facility.<br />This is achieved using "out of process integration" which means:-


## Using a &quot;QProcess&amp;quot; object start platform specific media player<br />## Write to this &quot;QProcess&amp;quot; object to pass playback commands<br />## Read from this &quot;QProcess&amp;quot; object to receive feedback
## Using a "QProcess" object start platform specific media player<br />## Write to this "QProcess" object to pass playback commands<br />## Read from this "QProcess" object to receive feedback


Trident Shiner's GstTsPlayer specific media control integration can be found in files &quot;mediaplayerTridentShinerGstTsPlayer.h&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.h and &quot;mediaplayerTridentShinerGstTsPlayer.cpp&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.cpp
Trident Shiner's GstTsPlayer specific media control integration can be found in files "mediaplayerTridentShinerGstTsPlayer.h":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.h and "mediaplayerTridentShinerGstTsPlayer.cpp":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.cpp


Trident Shiner's miniplayer specific media control integration can be found in files &quot;mediaplayerTridentShinerMiniplayer.h&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.h and &quot;mediaplayerTridentShinerMiniplayer.cpp&amp;quot;:http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.cpp
Trident Shiner's miniplayer specific media control integration can be found in files "mediaplayerTridentShinerMiniplayer.h":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.h and "mediaplayerTridentShinerMiniplayer.cpp":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.cpp


== Configuring ==
== Configuring ==


Use &quot; -media-backend TRIDENT_SHINER_GSTTSPLAYER&amp;quot; configure option to enable multimedia playback capability of QMH using GstTsPlayer
Use " -media-backend TRIDENT_SHINER_GSTTSPLAYER" configure option to enable multimedia playback capability of QMH using GstTsPlayer


<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_GSTTSPLAYER<br /></code>
<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_GSTTSPLAYER<br /></code>


Use &quot; -media-backend TRIDENT_SHINER_MINIPLAYER&amp;quot; configure option to enable multimedia playback capability of QMH using miniplayer
Use " -media-backend TRIDENT_SHINER_MINIPLAYER" configure option to enable multimedia playback capability of QMH using miniplayer


<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_MINIPLAYER<br /></code>
<code><br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_MINIPLAYER<br /></code>
Line 42: Line 42:
== Installing ==
== Installing ==


As installation of QMH on Trident Shiner reference board copy entire &quot;qtmediahub&amp;quot; directory so that its path is exactly same as that on build machine.
As installation of QMH on Trident Shiner reference board copy entire "qtmediahub" directory so that its path is exactly same as that on build machine.


== Running QMH on Qt 4.8 (QWS) ==
== Running QMH on Qt 4.8 (QWS) ==
Line 48: Line 48:
Setup QTDIR, QWS_KEYBOARD, QWS_MOUSE_PROTO and LD_LIBRARY_PATH environment variables as follows
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>
<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>


Rum QMH as follows to use OpenGL ES 2.0
Rum QMH as follows to use OpenGL ES 2.0

Revision as of 14:44, 24 February 2015

h1. Running QtMediaHub on Trident Shiner

Assumptions

  1. Qt 4.8.0 is configured, built and installed as per "Trident Shiner":http://wiki.qt.io/Shiner
  2. Can run "GstTsPlayer" or "miniplayer" on reference board to test media playback alongside any simple OpenGL ES 2.0 application
  3. The video playback plane is behind the graphics plane
  4. "QTDIR" and "PATH" environment variables are set to use Qt 4.8.0 cross compiled and installed for Trident Shiner in your build terminal

Getting Source

You can get the latest source code from gitorious "https://gitorious.org/qtmediahub":https://gitorious.org/qtmediahub.
You can use "sync-to-head":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" (in Trident Shiner's case it is either "GstTsPlayer" or "miniplayer" ) to have media playback facility.
This is achieved using "out of process integration" which means:-

    1. Using a "QProcess" object start platform specific media player
      ## Write to this "QProcess" object to pass playback commands
      ## Read from this "QProcess" object to receive feedback

Trident Shiner's GstTsPlayer specific media control integration can be found in files "mediaplayerTridentShinerGstTsPlayer.h":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.h and "mediaplayerTridentShinerGstTsPlayer.cpp":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerGstTsPlayer.cpp

Trident Shiner's miniplayer specific media control integration can be found in files "mediaplayerTridentShinerMiniplayer.h":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.h and "mediaplayerTridentShinerMiniplayer.cpp":http://gitorious.org/qtmediahub/qtmediahub-core/blobs/master/src/mediaplayer/mediaplayerTridentShinerMiniplayer.cpp

Configuring

Use " -media-backend TRIDENT_SHINER_GSTTSPLAYER" configure option to enable multimedia playback capability of QMH using GstTsPlayer

<br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_GSTTSPLAYER<br />

Use " -media-backend TRIDENT_SHINER_MINIPLAYER" configure option to enable multimedia playback capability of QMH using miniplayer

<br />cd /path/to/qtmediahub/<br />/path/to/qtmediahub/configure -media-backend TRIDENT_SHINER_MINIPLAYER<br />

Building

Build QMH as follows

<br />cd /path/to/qtmediahub/<br />make<br />

Installing

As installation of QMH on Trident Shiner reference board copy entire "qtmediahub" 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

<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 />

Rum QMH as follows to use OpenGL ES 2.0

<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 />

Rum QMH as follows to use DirectFB

<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 />

Rum QMH as follows to use Linux Frame Buffer

<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 />

This category currently contains no pages or media.