Category:QtMediaHub::ST7540
Running QtMediaHub on ST7540
Assumptions
- Qt 4.8.0 is configured, built and installed as per ST7540 [qt.io]
- 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 https://gitorious.org/qtmediahub [gitorious.org].
You can use sync-to-head [gitorious.org] 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 ST’s case it is the Test-Tool) to have media playback facility.
This is achieved using “out of process integration” which means:-
- Start “Test-Tool” in background and redirect a FIFO (”/tmp/stapp_fifo2”) to “Test-Tool“s STDIN
- Redirect “Test-Tool”‘s STDOUT and STDERROR to a normal file (”/tmp/stapp_log”)
- QMH issues commands to “platform specific media player application” to another FIFO (”/tmp/stapp_fifo”)
- Have an arrangement to transfer data from FIF0 (”/tmp/stapp_fifo”) to FIFO (”/tmp/stapp_fifo2”)
- And QMH collects the feedback by reading “platform specific media player application”‘s STDOUT and STDERROR
This is achieved using following shell (commands in a init) script on ST7540 reference board.
ST7540 specific media control integration can be found in files mediaplayerST7540.h [gitorious.org] and mediaplayerST7540.cpp [gitorious.org]
Configuring
Use “ -media-backend ST7540” configure option to enable multimedia playback capability of QMH
Building
Build QMH as follows
Installing
As installation of QMH on ST7540 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
Rum QMH as follows to use OpenGL ES 2.0
Rum QMH as follows to use DirectFB
Rum QMH as follows to use Linux Frame Buffer
There is only one article in "QtMediaHub -> ST7540":
Q
This category currently contains no pages or media.