Results 1 to 3 of 3

Thread: [HELP] GPU Accelerated QtMultimedia on Raspberry Pi 2

  1. #1
    Join Date
    Aug 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Question [HELP] GPU Accelerated QtMultimedia on Raspberry Pi 2

    Hello,

    I have been reading and trying to create a fullscreen multimedia player for Raspberry Pi 2 (roughly, a screen with play/pause etc. icons on it.)

    So I cross-compiled Qt5.5.1 on latest Rasbian image. Than I tried a simple media player application on Qt but the attempt was futile. The video appeared as a series of discrete images(~one image per 5 seconds).

    After that I find out that QtMultimedia module was lack of use the Pi's GPU while decoding. So it was doing a software decode for video.

    After some research, I learned that at the build time Qt detects some libraries that built-on Pi's sysroot and it binds its modules to those. And Qt recognize gstreamer as QtMultimedia binding. So I guess I had that problem because of my gstreamer was not doing hardware decode (I had gstreamer0.10)

    So I have downloaded gstreamer1.0 from official Raspbian repo over a clean and latest Raspbian image. And started new Qt build but when I ./configure, Qt can not detect gstreamer1.0;

    GStreamer 1.0 auto-detection... ()
    Project ERROR: gstreamer-audio-1.0 development package not found
    GStreamer 1.0 disabled.

    I found someone who was is made possible Qt to use Pi's GPU(http://thebugfreeblog.blogspot.com.t...erated-qt.html). I am trying to implement it but I also as I read some it is also possible to use GPU with QtMultimedia if I have gst-omx?

    I know that subject have some cursed, but is there anyone out there who has able to use QtMultimedia module with GPU? I would be appriciate to what are the specific packages that Qt needs and would recognize?

    I thank you,
    Sina

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: [HELP] GPU Accelerated QtMultimedia on Raspberry Pi 2

    As you have already discovered, this has nothing to do with QtMultimedia or Qt in general.
    Whether the backend has support for hardware decoding/playback depends on the backend.

    So what you need to find out, probably in some Raspberry forum, is how to get an appropriate GStreamer.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    kafanti (31st August 2015)

  4. #3
    Join Date
    Aug 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: [HELP] GPU Accelerated QtMultimedia on Raspberry Pi 2

    Hello anda_skoa,

    Well you are right but there is no any proper guideline or at least packages names for it. But I was "hunting" and finally I have found out the pakages to install gst-omx which are recognizable by Qt's backend detection.

    Gstreamer1.0 the only hardware supported cross platform multimedia framework for Raspberry. And Qt know gstreamer. But it needs the dev packages of it. right now, there are binaries over Rasbian official repo. simply,

    $sudo apt-get install gstreamer1.0 libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev

    So Qt will detect gstreamer version 1.0 and QtMultimedia module backend will be bind to GPU.

    Cheers,
    Sina

Similar Threads

  1. QtMultimedia not included
    By dott_infernus in forum Installation and Deployment
    Replies: 1
    Last Post: 4th April 2013, 17:05
  2. [QT5] QtMultimedia | i can`t get metadata
    By petrusPL in forum Newbie
    Replies: 0
    Last Post: 27th February 2013, 15:16
  3. OpenGL accelerated Widgets
    By rubikon in forum Newbie
    Replies: 1
    Last Post: 18th June 2012, 15:35
  4. Accelerated frame buffer driver (SM502)
    By freepax in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th January 2011, 16:53
  5. QtMultimedia module in QT 4.5
    By vijay_kansal in forum Qt Programming
    Replies: 8
    Last Post: 12th December 2010, 12:52

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.