No sound in demobrowser in Qt 5.9.1 build with alsa !
-
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 -
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.
-
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
-
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.
-
Did you check the plugin loading part ?
-
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.