Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.14 / Ubuntu 18.04 QMediaPlayer Welcome Example Application long start up time
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 325 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.
  • S Offline
    S Offline
    Shazter
    wrote on last edited by Shazter
    #1

    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?
    jsulmJ 1 Reply Last reply
    0
    • S Shazter

      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?
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      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