Unsolved Qt multimeia GStreamer-Critical error!
-
@JiujiuTong OK, looks like it is really not available on Ubuntu 16.04
-
-
@JiujiuTong Can you play this file with, for example, VLC?
-
IIRC, since 5.8 the backend uses GStreamer 1.0. Otherwise, you can re-build the QtMultmedia module yourself against GStreamer 1.0
On a side note, unless you need specific features or bug fixes of more recent versions, why not use your distribution provided Qt for development ?
-
@jsulm
yes,i can play file with VLC, but there are some other logical with my project, and i need to control playlist and other thing. so i think the best way is use functions provided by QT. -
@JiujiuTong I didn't say you should use VLC - I only wanted to know whether the file is broken.
-
@jsulm
the file is OK, it can be played by double click -
@SGaist
sorry for my poor English, do you mean i should use the latest QT version ? -
It depends on what you need, either use the Qt from your distribution or indeed a more recent version. Current is 5.8.0 and 5.9Beta2 is available.
-
@SGaist
well ,Thank you
i will try to compile QT5.7.1 against GStreamer 1.0. can you give me some instructions? thank you!
another thing is how to support hardware-accelerate? or it support it by default,but the default behavior of Gstreamer seem not enable hardware-accelerate.
my project finally runs on raspberry pi3, i do a lot efforts to make the QT5.7 deployed on rpi3. i'm worried about QT5.8....
i find a description:
1,install gstream1.0*
install libgstreamer1.0*
2, cd qt5.7.1
run ./configure -gstreamer 1.0
make
make install
is it right? -
You don't need to re-build everything, if you already have a build then just re-build the QtMultimedia module.
-
@SGaist
what should i do if i just want to rebuild QtMultimeida module with Gstreamer1.0? i have installed a QT with older GStreamer.
thank you ! -
@SGaist @jsulm @mrjj
i finish the reinstall work with all modules rebuild,the output result is still NG.
play the video with gstreamer command the output is below:
gst-play-1.0 /home/tong/build-FMT-gstream1_0-Debug/src/Wildlife.wmv
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/tong/build-FMT-gstream1_0-Debug/src/Wildlife.wmv
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Redistribute latency...
Redistribute latency...
Redistribute latency...
0:00:30.0 / 0:00:30.0
Reached end of play list.
the video can play normally.while the output of my project (also the same result with QT example):
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
just pops a blackscreen ,no video shows. strange...when i try to install gstreamer1.0
there is an error:
gstreamer1.0-hybris:i386:Depends: libmedia1:i386 but it is no going to be installed
E: Unable to correct problems, you have held broken packages. -
Is that on your Pi or on your desktop ? If on your Pi then there's something strange since it talks about a i386 version of the package and the Pi is an ARM based machine.
-
@JiujiuTong said in Qt multimeia GStreamer-Critical error!:
gstreamer1.0-hybris:i386:Depends: libmedia1:i386
Are you trying to install x86 (32bit) version?
-
-
This post is deleted! -
Please show the command you use to install the GStreamer packages.
-
@SGaist
the command line is :
1,sudo apt-get install gstreamer1.0
2,sudo apt-get install libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstreamer1.0-0 libqgsttools-p1 libqt5multimedia5-plugins gstreamer1.0-libav libges-1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamermm-1.0-0v5 libgstreamermm-1.0-dev libqt5gstreamer-1.0-0 libqt5gstreamer-dev libqt5gstreamerquick-1.0-0 libqt5gstreamerui-1.0-0 libqt5gstreamerutils-1.0-0 libqtglib-2.0-0 libqtgstreamer-1.0-0 libqtgstreamer-dev libqtgstreamerui-1.0-0 libqtgstreamerutils-1.0-0 qtgstreamer-plugins-qt5 qtgstreamer-plugins ubuntu-restricted-extras
some packages may be useless,i don't know exactly.
when trying to rebuild QtMultimedia module with gstreamer1.0 ,following the steps:
1, run command1 && command 2,
2, cd qt5.7.1
run ./configure -gstreamer 1.0
(NO need to rebuild qtbase and other modules.)
3, cd to qtmultimedia folder
run qmake
run make install
is it right? thank you ! -
Which qmake did you use ?