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. QWidget with mplayer slave mode
Forum Update on Monday, May 27th 2025

QWidget with mplayer slave mode

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qt5raspberry pi 3widgetmplayer
5 Posts 2 Posters 2.1k 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.
  • KutyusK Offline
    KutyusK Offline
    Kutyus
    wrote on last edited by
    #1

    Hi!

    I would like to play movie files on my rpi 3 with framebuffer. From console is working fine:

    SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -vf scale -xy 320 /var/spool/samba/movies.....
    

    I tried lot of examples, but not working, what is the correct argument list to QProcess in this environment?
    It is a minimal sample:

            QString cmd;
    	
    	player = new QWidget();
    	pproc = new QProcess();
    	
    	player->setGeometry(0, 0, 320, 240);
    	
    	cmd = QString("mplayer -slave -wid %1 /var/spool/samba/movies...").arg(player->winId());
    	
    	qDebug() << cmd;
    	player->show();
    	pproc->start(cmd);
    

    Thanks a lot.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It's the same as described in QProcess's details.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • KutyusK Offline
        KutyusK Offline
        Kutyus
        wrote on last edited by
        #3

        Sorry, you misunderstood me, I tried also with QStringList type arguments.
        I need the mplayer's correct arguments.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check the outputs of QProcess to see if the application is starting properly and is doing something ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          KutyusK 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you check the outputs of QProcess to see if the application is starting properly and is doing something ?

            KutyusK Offline
            KutyusK Offline
            Kutyus
            wrote on last edited by
            #5

            @SGaist

            I found the solution in the mplayer's docs, the -wid not working in linuxfb environment. The qprocess started the mplayer who writes the framebuffer directly, it's working.

            1 Reply Last reply
            1

            • Login

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