Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.14 / Ubuntu 18.04 QMediaPlayer Welcome Example Application long start up time



  • Hello,

    Background:
    i installed Qt 5.14 and Qt 5.12.6 on my Ubuntu 18.04 PC through Qt Installer, then i started QtCreator via Icon.

    Problem:
    Afterwards I opened welcome page and selected "Media Player Example" and build + start in debug. It takes >3 Minutes, that the Application starts.

    I tried new Qml Hello World Application and registered new Qml type of my Custom class. The constructor has nothing special inside.

    Myplayer::Myplayer(QObject *parent) : QObject(parent)
    {
            _player = new QMediaPlayer(this);
    }
    

    I imported the module and created an instance in the qml code.

    Build + start with debug and again it takes >3 Minutes to show the ApplicationWindow, when I hit the debugger pause button
    then in blocking here Line 329 --> gst_element_set_state(element, GST_STATE_NULL);

    static bool qt_gst_element_is_functioning(GstElement *element)
    {
        GstStateChangeReturn ret = gst_element_set_state(element, GST_STATE_READY);
        if (ret == GST_STATE_CHANGE_SUCCESS) {
            gst_element_set_state(element, GST_STATE_NULL);
            return true;
        }
    
        return false;
    }
    

    On Windows10 with Qt5.13 I did not encountered a problem regarding long start-up time.

    Question:

    1. What I'm doing wrong?
    2. How I can find the root cause?

  • Lifetime Qt Champion

    @Shazter Did you try to play media files with GStreamer on same machine to see whether it is a general problem or something in Qt?


Log in to reply