QtMultimedia Media Player example can't play any video on Ubuntu 14.04
-
You have gstreamer1.0-libav package that provides h.264
But Qt does not support gstreamet-1.0 yet.To make things even "better" Ubuntu 14.04 does not provide gstreamer0.10-ffmpeg.
I don't see anything special about xvid except that decoder is not found.
"Some people says":http://ubuntuforums.org/showthread.php?t=1326967&p=8319711#post8319711 that removing .gstreamer from home directory helps to play xvid -
Just tried to remove .gstreamer
No change.I have no idea what is the target of Qt5 on Linux, but Unbuntu 14.04 is a LTS release so it's presumably going to be around for a while.
Also, VLC, mplayer and most video players can decode those videos, so I'd say QtMultimedia is still not a reliable package thus blocking the deployment of a few projects (mine too)
Funny thing is that it works well on Windows but very badly on OSX.The gstreamer 1.0 support is getting more and more urgent. I am following the development to finally have video support also on the Raspberry Pi.
-
Take a look on "QtGstreamer":http://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/
It supports GStreamer-1.2 and does not use QTMultimedia if I understood it correctly. -
any luck on resolving this? I too am stuck on this.
By the way as a temporary solution i installed ffmpeg following http://fcorti.com/2014/04/22/ffmpeg-ubuntu-14-04-lts/
Works for me and at least i can ship a demo, before that i was completely stuck. -
[quote author="techfort" date="1405712616"]any luck on resolving this? I too am stuck on this.
By the way as a temporary solution i installed ffmpeg following http://fcorti.com/2014/04/22/ffmpeg-ubuntu-14-04-lts/
Works for me and at least i can ship a demo, before that i was completely stuck.[/quote]Yeah, there's no other solution at the moment. We need to wait for gstreamer-1.0 support, hopefully coming with Qt 5.4.0
Here's the Qt bugreport I opened and all the comments: https://bugreports.qt-project.org/browse/QTBUG-40183
-
An extra repository is needed in Ubuntu to correctly decode videos with ffmpeg:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg -
Hi I have this problem as well and I am using Qt5.5.1 and gstreamer1.0 with libav plugin installed. The logs indicate that the video format feature, pad, caps etc have been found and added. But still the video doesn't play with logs showing plugin missing errors.
The bug report mentioned above should be reopened. -
Hmmm just ran into this after upgrading some systems I'm using (MaintenanceTool updated) Qt5.6 on from Debian wheezy to jessie (yes quite a late move; jessie has been stable for ages, but wheezy was working fine for me as "oldstable").
The bug at https://bugreports.qt.io/browse/QTBUG-40183 still looks relevant. It was closed with a claim a move to GStreamer 1.x was in progress and would most likely make it into Qt 5.4.0. However while jessie seems to include both gstreamer 0.10 and 1.0... strace shows my Qt5.6-built application still loading gstreamer0.10 libs. Guessing the fundamental problem is that the 1.x migration didn't happen and/or that Debian removed the gstreamer0.10-ffmpeg package after wheezy: https://packages.debian.org/search?keywords=gstreamer0.10-ffmpeg&searchon=names&suite=all§ion=all
A thread here http://stackoverflow.com/a/30334654/24283 isn't optimistic about a gstreamer0.10-ffmpeg reappearing given next Debian release will move to gstreamer1.0 (I did check jessie-backports, but there doesn't seem to be anything useful there).
However a bit more digging finds me https://bugreports.qt.io/browse/QTBUG-47920 which seems to show 5.6 should prefer gstreamer1.0 over 0.10 when available. The associated code change seems to be in some build config file... but it's unclear to me whether this means that whatever I'm downloading via the MaintenanceTool might be limited to gstreamer0.10 if that's all the system the binaries were compiled on has, or whether it means on my machine (in which case the check for 1.0 maybe failing).
-
Fortunately in debian you can draw gstreamer0.10-ffmpeg from oldstable (wheezy) for jessie without conflicts. It is fixing it for me until stretch brings the newer Qt libraries working directly with gstreamer1.0 which is supporting everything just fine at the time of writing.
-
Hello everyone,
This package also work with Qt5.6 on ubuntu 16.06?
Because I facing an issue with the 'gstreamer'
-
@Vicky-Sharma This did the trick for me in ubuntu 16.04:
http://www.open-terrain.org/index.php/Pong/August30th2016QMediaPlayerOnUbuntu16-04LTS