Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Embed MPlayer in QMainWindow
QtWS25 Last Chance

Embed MPlayer in QMainWindow

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt5.5qprocessqvideowidget
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zola
    wrote on last edited by Zola
    #1

    I wrote this code:

    #include "mainwindow.h"
    #include <QApplication>
    #include <QProcess>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        MainWindow w;
        QProcess *process = new QProcess;
        QString s;
        s = QString("mplayer -wid %1 %2").arg(w.winId()).arg("/home/debian/Desktop/video.mp4");
        process->start(s);
        w.show();
    
        return a.exec();
    }
    

    And it works well on my i386 Ubuntu VM, it embeds MPlayer in Qt MainWindow and plays video as expected, but thats not the case when I try to run the same program on my BeagleBone Black running under Debian Jessie. What can be the problem? I tried to use different display drivers (fbdev and modesetting), also tried changing platforms when running my application and it acts the same.

    I figured out that I have error in my /var/log/Xorg.0.log file: "(EE) FBDEV(0): FBIOPUTCMAP: Invalid argument"

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved