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. Link qt mediaplayer with vlc library instead of gstreamer
QtWS25 Last Chance

Link qt mediaplayer with vlc library instead of gstreamer

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 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.
  • AmazingQtA Offline
    AmazingQtA Offline
    AmazingQt
    wrote on last edited by
    #1

    I want to play my video using vlc library instead of the gstreamer library in my qml application
    How can I add the vlc library as a plugin to use in qml application

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

      Hi,

      Take a look at the VLC Qt project and example.

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

        In that project I cannot make use of the library installed. It says cannot open libVLCQtCore.so

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

          What is the exact error ?

          Where do you have that library located ?

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

            error while loading shared libraries: libVLCQtCore.so.1.1: cannot open shared object file: No such file or directory

            In my pro file I have included
            INCLUDEPATH += /usr/include/vlc
            LIBS += -L /usr/local/lib/ -lVLCQtCore -lVLCQtWidgets -lVLCQtQml

            I have my libraries like

            lrwxrwxrwx 1 root root 19 Aug 30 13:49 libVLCQtCore.so -> libVLCQtCore.so.1.1
            lrwxrwxrwx 1 root root 21 Aug 30 13:49 libVLCQtCore.so.1.1 -> libVLCQtCore.so.1.1.0
            -rw-r--r-- 1 root root 3137487 Aug 26 15:44 libVLCQtCore.so.1.1.0
            lrwxrwxrwx 1 root root 18 Aug 30 13:49 libVLCQtQml.so -> libVLCQtQml.so.1.1
            lrwxrwxrwx 1 root root 20 Aug 30 13:49 libVLCQtQml.so.1.1 -> libVLCQtQml.so.1.1.0
            -rw-r--r-- 1 root root 3071155 Aug 26 15:44 libVLCQtQml.so.1.1.0
            lrwxrwxrwx 1 root root 22 Aug 30 13:49 libVLCQtWidgets.so -> libVLCQtWidgets.so.1.1
            lrwxrwxrwx 1 root root 24 Aug 30 13:49 libVLCQtWidgets.so.1.1 -> libVLCQtWidgets.so.1.1.0
            -rw-r--r-- 1 root root 1491671 Aug 30 13:43 libVLCQtWidgets.so.1.1.0

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

              There should be not space between -Land the path.

              To verify whether these libraries can be found at run time, call ldd your_app_name in a console.

              If it's not the case you can modify the LD_LIBRARY_PATH environment variable to add the path to your libraries to the loader search path.

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

                I have corrected that and now I am not able to import VLCQt in my qml file

                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