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

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.
  • K Offline
    K Offline
    Kutyus
    wrote on 3 May 2018, 13:07 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 May 2018, 20:54 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
      • K Offline
        K Offline
        Kutyus
        wrote on 4 May 2018, 06:14 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 4 May 2018, 22:00 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

          K 1 Reply Last reply 8 May 2018, 11:54
          0
          • S SGaist
            4 May 2018, 22:00

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

            K Offline
            K Offline
            Kutyus
            wrote on 8 May 2018, 11:54 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

            1/5

            3 May 2018, 13:07

            • Login

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