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. QVideoWidget gst-pipeline

QVideoWidget gst-pipeline

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    giu83
    wrote on last edited by giu83
    #1

    Hi to everybody,
    I'm new user and I'm approched to Qt on embedded system based on iMX8.
    I'm try to play a fullHD video with Qt and I have some problems.
    If the video play from shell the video is displayed correctly:

    gst-launch-1.0 multifilesrc location=textmp4.mp4 loop=true ! decodebin ! autovideosink

    If the video play from Qt with QUrl :: fromLocalFile the video is displayed slowly with poor performance. I think this is normal. If the video play from Qt with gst-pipeline the screen is played correctly. Follows the code:

    *void MainWindow::on_video_clicked()
    {
    videoWidget = new QVideoWidget;
    player = new QMediaPlayer;

    player->setVideoOutput(videoWidget);
    //player->setMedia(QUrl("gst-pipeline: multifilesrc location=textmp4.mp4 ! decodebin ! waylandsink name=\"qtvideosink\""));
    player->setMedia(QUrl::fromLocalFile("/home/root/textmp4.mp4"));
    
    connect( player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), this, SLOT(video_ended()));
    
    player->play();
    videoWidget->showFullScreen();
    

    }*

    So when the video is stopped and the widget is closed or hidden, the video remain displayed on the screen. Why is it not hooked to the widget.

    Thanks.
    Best regards

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

      Hi and welcome to devnet,

      What if you use:

      gst-pipeline: multifilesrc location=textmp4.mp4 ! decodebin ! qtvideosink
      

      ?

      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
      0
      • G Offline
        G Offline
        giu83
        wrote on last edited by giu83
        #3

        no video shown.

        In log this warning:
        Warning: "Delayed linking failed."

        If I use
        gst-pipeline: multifilesrc location=textmp4.mp4 ! decodebin name="qtvideosink"
        or
        gst-pipeline: multifilesrc location=textmp4.mp4 ! decodebin ! autovideosink name="qtvideosink"

        In log this warning:
        qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

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

          Which version of Qt are you using ?

          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
          0
          • G Offline
            G Offline
            giu83
            wrote on last edited by
            #5

            Qt Creator 4.5.2
            Qt 5.15.0

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

              That looks like the information by the Qt Creator about box. Do you really use 5.15.0 ? If so, can you test a more recent version like 5.15.2 ?

              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
              0
              • G Offline
                G Offline
                giu83
                wrote on last edited by
                #7

                On about popup there is: Based on Qt 5.9.5 (GCC 7.3.0, 64 bit)
                but on tools->options->build&run->kits->qt version select I selected qt 5.15.0.
                I can select only 5.15.0 or 5.9.5

                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