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. Warning: "A lot of buffers are being dropped." for mp4 720p video on mx6 hardware (Yocto)
Forum Updated to NodeBB v4.3 + New Features

Warning: "A lot of buffers are being dropped." for mp4 720p video on mx6 hardware (Yocto)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 2.2k Views 3 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.
  • A Offline
    A Offline
    Asgo
    wrote on last edited by
    #1

    I am trying to render a mp4 720p video on mx6 hardware (Yocto) using Qtmultimeadia. I am getting a Warning: "A lot of buffers are being dropped." So video is getting struck.
    I am using qt 5.9 and Qtmultimedia 5.0.
    When play video on cmd using "gst-launch-1.0 filesrc location=<path_to_video.mp4> ! decodebin ! videoconvert ! videoscale add-borders=false ! video/x-raw,width=1280,height=720 ! kmssink connector-id=33 sync=false can-scale=false force-modesetting=false" vidoe is playing properly. Can you please suggest me a solution?

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

      Hi and welcome to devnet,

      If you can update your Qt version to something more recent, you could make use of a custom GStreamer pipeline so that it might work better.

      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
      • A Offline
        A Offline
        Asgo
        wrote on last edited by
        #3

        Hi Sgaist,

        Thanks for your reply. I am bit new to QML. I have gone though the coustom gst pipeline, but could not get a clear picture.

        Below is my code. can you please suggest me how can i use the coustom gst pipeline if I updae Qt version.

        main.cpp

        #include <QtQuick>

        int main(int argc, char *argv[])
        {
        QGuiApplication app(argc,argv);
        QQuickView view;
        view.setSource(QUrl("qrc:/main.qml"));
        view.show();
        return app.exec();
        }

        main.qml
        import QtQuick 2.7
        import QtMultimedia 5.0
        Rectangle {
        visible: true
        width: 1920
        height: 720
        color: "blue"

        MediaPlayer {
            id: mediaplayer
            autoPlay: true
        	source: BigBuckBunny.mp4"      
        }
        

        VideoOutput {
        anchors.fill: parent
        source: mediaplayer
        }
        }

        Can you please suggest me how can use coustom gst pipeline for cmd "gst-launch-1.0 filesrc location=<path_to_video.mp4> ! decodebin ! videoconvert ! videoscale add-borders=false ! video/x-raw,width=1280,height=720 ! kmssink connector-id=33 sync=false can-scale=false force-modesetting=false" .

        Regards,
        Asgo

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

          Good question, I thought you were using widgets and there you can do it with QMediaPlayer.

          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
          • A Offline
            A Offline
            Asgo
            wrote on last edited by
            #5

            I see following information in QMl. But my question is how to use the cmd "gst-launch-1.0 filesrc location=<path_to_video.mp4> ! decodebin ! videoconvert ! videoscale add-borders=false ! video/x-raw,width=1280,height=720 ! kmssink connector-id=33 sync=false can-scale=false force-modesetting=false"

            And also it is not mentioned where to provide the actual path of media file. So I am confused.

            74243b89-302b-4235-90fb-f47116fe31b3-image.png

            Can you please help me with this?

            Regards,
            Asgo

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

              The arguments after gst-pipeline: are the ones you feed to gst-launch.

              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
              • A Offline
                A Offline
                Asgo
                wrote on last edited by
                #7

                Below one is correct?

                MediaPlayer{
                id: mediaplayer
                source: " "gst-pipeline: filesrc location=<path_to_video.mp4> ! decodebin ! videoconvert ! videoscale add-borders=false ! video/x-raw,width=1280,height=720 ! kmssink connector-id=33 sync=false can-scale=false force-modesetting=false""
                }

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

                  You are missing the final sink so that it output to your application.

                  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

                  • Login

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