Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. No sound in demobrowser in Qt 5.9.1 build with alsa !

No sound in demobrowser in Qt 5.9.1 build with alsa !

Scheduled Pinned Locked Moved Solved 3rd Party Software
7 Posts 2 Posters 2.9k Views 2 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.
  • KartK Offline
    KartK Offline
    Kart
    wrote on last edited by Kart
    #1

    I have build Qt 5.9.1 with alsa support. But there is no sound output in demobrowser.
    Doesn't qt take alsa for audio play back ? Do i have to provide any other configuration while building Qt 5.9.1 ?
    This is the configuration i am using.

    ./configure -embedded -opensource -confirm-license -alsa -no-egl -skip wayland -c++std c++11 -v -prefix /opt/qt/qt5.9.1x86
    

    Also, ffmpeg application is not detected by the qt configuration. Is there any specific library of ffmpeg i have to install in my Ubuntu 16.04 ?
    Edit :
    For ffmpeg, i have installed libavresample-dev, libavutil-dev, libswresample-dev, libswscale-dev, libavformat-dev, libavfileter-dev, libavdevice-dev and libavcodec-dev

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

      Hi,

      If you want more information about what is going on at configure time, then your should add the -v option to configure.

      As for your first question, does a simple QtMultimedia application playing a sound work correctly ?

      As for building, you need to install the dev packages of the libraries you want to use with Qt. Having only the application won't make anything detectable nor compilable.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      KartK 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        If you want more information about what is going on at configure time, then your should add the -v option to configure.

        As for your first question, does a simple QtMultimedia application playing a sound work correctly ?

        As for building, you need to install the dev packages of the libraries you want to use with Qt. Having only the application won't make anything detectable nor compilable.

        KartK Offline
        KartK Offline
        Kart
        wrote on last edited by Kart
        #3

        @SGaist

        If you want more information about what is going on at configure time, then your should add the -v option to configure
        

        Yes, i have already given -v and i couldn't get any useful inputs from there. Maybe because i didn't look properly.

        As for your first question, does a simple QtMultimedia application playing a sound work correctly ?
        

        No, QtMultimedia application is having no sound output.

        As for building, you need to install the dev packages of the libraries you want to use with Qt. Having only the application won't make anything detectable nor compilable.
        

        As for dev packages, i have installed libasound2-dev in my ubuntu and alsa is detected. For ffmpeg, i have installed libavresample-dev, libavutil-dev, libswresample-dev, libswscale-dev, libavformat-dev, libavfileter-dev, libavdevice-dev and libavcodec-dev

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

          Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what happens with the plugins.

          Then a silly test is to check whether aplay can get something on the output.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          KartK 1 Reply Last reply
          0
          • SGaistS SGaist

            Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what happens with the plugins.

            Then a silly test is to check whether aplay can get something on the output.

            KartK Offline
            KartK Offline
            Kart
            wrote on last edited by Kart
            #5

            @SGaist aplay is working fine.

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

              Did you check the plugin loading part ?

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

                Sorry for being late in updating this post. I was able to enable audio by giving -proprietary-codecs in the command line of Qt build. I did a Qt 5.9.1 rebuild and it is solved.

                As far as ffmpeg is concerned, i have not been able to solve and i am using gstreamer now.

                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