Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device
Forum Updated to NodeBB v4.3 + New Features

Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 2 Posters 751 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.
  • E Offline
    E Offline
    EmadDeve20
    wrote on last edited by
    #1

    i create a UI for playing a music like car stereo. but this is can not playing music and this is not has any Error!

    My imports in qml code:

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtQuick.Controls 2.12
    import QtMultimedia 5.12
    import Qt.labs.folderlistmodel 2.1
    

    and i install this packages:

    sudo apt -y install python3-pyqt5.qtmultimedia
    sudo apt -y install python3-pyqt5.qtquick
    sudo apt -y install qt5-quick-demos
    sudo apt -y install libqt5multimedia5-plugins qml-module-qtmultimedia
    

    i tested my code in my Ubuntu its worked! what is my wrong?

    jsulmJ 1 Reply Last reply
    0
    • E EmadDeve20

      i create a UI for playing a music like car stereo. but this is can not playing music and this is not has any Error!

      My imports in qml code:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      import QtMultimedia 5.12
      import Qt.labs.folderlistmodel 2.1
      

      and i install this packages:

      sudo apt -y install python3-pyqt5.qtmultimedia
      sudo apt -y install python3-pyqt5.qtquick
      sudo apt -y install qt5-quick-demos
      sudo apt -y install libqt5multimedia5-plugins qml-module-qtmultimedia
      

      i tested my code in my Ubuntu its worked! what is my wrong?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @EmadDeve20 What format do these audio files have?
      Did you also install GStreamer plug-ins?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • jsulmJ jsulm

        @EmadDeve20 What format do these audio files have?
        Did you also install GStreamer plug-ins?

        E Offline
        E Offline
        EmadDeve20
        wrote on last edited by EmadDeve20
        #3

        @jsulm mp3 formats.
        i no know What is GStreamer!
        so i need it ?

        jsulmJ 1 Reply Last reply
        0
        • E EmadDeve20

          @jsulm mp3 formats.
          i no know What is GStreamer!
          so i need it ?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @EmadDeve20 Install all libgstreamer-plugins-* packages using apt

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • E Offline
            E Offline
            EmadDeve20
            wrote on last edited by EmadDeve20
            #5

            @jsulm i installed and right now i get this error message:

            Error: "Your GStreamer" installation is missing a plug-in
            

            do you know what is this?
            and in first start app i get this Error:

            Please install the 'bad' GStreamer plugin package.
            

            and after this i install this package:

            sudo apt-get install -y gstreamer1.0-plugins-bad
            

            but not works!

            jsulmJ 1 Reply Last reply
            0
            • E Offline
              E Offline
              EmadDeve20
              wrote on last edited by
              #6

              i solved my problem with this link:
              https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c

              thx @jsulm :D

              1 Reply Last reply
              0
              • E EmadDeve20

                @jsulm i installed and right now i get this error message:

                Error: "Your GStreamer" installation is missing a plug-in
                

                do you know what is this?
                and in first start app i get this Error:

                Please install the 'bad' GStreamer plugin package.
                

                and after this i install this package:

                sudo apt-get install -y gstreamer1.0-plugins-bad
                

                but not works!

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @EmadDeve20 said in Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device:

                but not works!

                What does that mean? What happens?
                On Ubuntu the package name is libgstreamer-plugins-bad, not gstreamer1.0-plugins-bad.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                E 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @EmadDeve20 said in Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device:

                  but not works!

                  What does that mean? What happens?
                  On Ubuntu the package name is libgstreamer-plugins-bad, not gstreamer1.0-plugins-bad.

                  E Offline
                  E Offline
                  EmadDeve20
                  wrote on last edited by
                  #8

                  @jsulm aaaaaaaaaa...
                  i no know! my OS is armbian and focal base but some of packages is .... i know no really what happened!

                  but not matter yea?
                  because my program is running true!

                  jsulmJ 1 Reply Last reply
                  0
                  • E EmadDeve20

                    @jsulm aaaaaaaaaa...
                    i no know! my OS is armbian and focal base but some of packages is .... i know no really what happened!

                    but not matter yea?
                    because my program is running true!

                    jsulmJ Online
                    jsulmJ Online
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @EmadDeve20 said in Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device:

                    armbian

                    I know, but Armbian is based on Debian und Ubuntu too, so usually package names are same.
                    Good that it works now!

                    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