Discussion:
[Interest] GStreamer missing plugin error
Harri Pasanen
2015-01-27 10:30:54 UTC
Permalink
Does Qt have all the plugins required for MediaPlayer to play video, in
my case xvid in mp4 container,
or does it rely on the host having required codecs etc?

The reason I ask, is that I'm on a new linux installation (Kubuntu 14.10
amd64) and the video doesn't play any more. Instead I'm getting the
following in the Application Output:

Warning: "No decoder available for type 'video/mpeg, mpegversion=(int)4,
systemstream=(boolean)false, profile=(string)simple, level=(string)1,
codec_data=(buffer)000001b001000001b58913000001000000012000c48d88000d14042d1443000001b24c61766335362e31302e313030,
width=(int)640, height=(int)360, framerate=(fraction)1/2,
pixel-aspect-ratio=(fraction)1/1'."

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



Yet when I play the same video from command line using GStreamer tools:

gst-launch-1.0 playbin uri="file:///home/harri/Videos/Stoppola/My Film.mp4"

that works fine.

Any idea?

Harri
Thiago Macieira
2015-01-27 11:37:30 UTC
Permalink
Post by Harri Pasanen
Does Qt have all the plugins required for MediaPlayer to play video, in
my case xvid in mp4 container,
or does it rely on the host having required codecs etc?
The host has to provide them. Qt supplies nothing of the sort.
Post by Harri Pasanen
gst-launch-1.0 playbin uri="file:///home/harri/Videos/Stoppola/My Film.mp4"
that works fine.
Any idea?
Please check GStreamer 0.10 too.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Harri Pasanen
2015-01-27 14:07:36 UTC
Permalink
Ok, thanks for the tip.

Seems like Ubuntu/Kubuntu 14.10 don't have the required plugins for
gstreamer0.10,
only for gstreamer1.0.

My fix, in case someone else runs into this:

|sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg|

PPA home: https://launchpad.net/~mc3man/+archive/ubuntu/gstffmpeg-keep


Regards,

Harri
Post by Thiago Macieira
Post by Harri Pasanen
Does Qt have all the plugins required for MediaPlayer to play video, in
my case xvid in mp4 container,
or does it rely on the host having required codecs etc?
The host has to provide them. Qt supplies nothing of the sort.
Post by Harri Pasanen
gst-launch-1.0 playbin uri="file:///home/harri/Videos/Stoppola/My Film.mp4"
that works fine.
Any idea?
Please check GStreamer 0.10 too.
René J.V. Bertin
2015-01-27 14:49:55 UTC
Permalink
FWIW, I just discovered that even on OS X, installing the gstreamer1-gst-plugins-bad gave me mp4 playback once I had the phonon-backend-gstreamer package (4.8.2) installed too. FWI(also)W, I've installed phonon 4.8.3, the version developed independently from Qt (phonon.kde.org) .

R.
Harri Pasanen
2015-01-27 16:49:50 UTC
Permalink
I wonder if there are plans to migrate to GStreamer 1.0? That is more
than two years old, and 0.10 is about ten years old. Ubuntu seems to
have switched in 14.04->14.10, I don't know about other dists.

Btw. on OSX, I got mp4 playback out of the box when running in iOS
simulator, did not try the desktop yet.
There seems to be some issues with MediaPlayer there thought, putting
together a testcase and bugreport.

Harri
Post by René J.V. Bertin
FWIW, I just discovered that even on OS X, installing the gstreamer1-gst-plugins-bad gave me mp4 playback once I had the phonon-backend-gstreamer package (4.8.2) installed too. FWI(also)W, I've installed phonon 4.8.3, the version developed independently from Qt (phonon.kde.org) .
R.
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Thiago Macieira
2015-01-27 18:12:12 UTC
Permalink
Post by Harri Pasanen
I wonder if there are plans to migrate to GStreamer 1.0? That is more
than two years old, and 0.10 is about ten years old. Ubuntu seems to
have switched in 14.04->14.10, I don't know about other dists.
There are, but the work isn't done.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Lopes Yoann
2015-01-28 10:58:24 UTC
Permalink
Post by Thiago Macieira
Post by Harri Pasanen
I wonder if there are plans to migrate to GStreamer 1.0? That is more
than two years old, and 0.10 is about ten years old. Ubuntu seems to
have switched in 14.04->14.10, I don't know about other dists.
There are, but the work isn't done.
As a matter of fact, it is. The port is in the dev branch, so it will be part of Qt 5.5.0.


Yoann
René J.V. Bertin
2015-01-28 11:48:47 UTC
Permalink
Post by Lopes Yoann
As a matter of fact, it is. The port is in the dev branch, so it will be part of Qt 5.5.0.
Does that mean that Qt evolves in x.1 steps nowadays??
R
Thiago Macieira
2015-01-28 12:02:26 UTC
Permalink
Post by René J.V. Bertin
Post by Lopes Yoann
As a matter of fact, it is. The port is in the dev branch, so it will be
part of Qt 5.5.0.
Does that mean that Qt evolves in x.1 steps nowadays??
We've always released minor versions. You may remember 4.7 happened before
4.8.

If you meant something else, it isn't clear.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
René J.V. Bertin
2015-01-28 12:48:49 UTC
Permalink
Post by Thiago Macieira
Post by René J.V. Bertin
Does that mean that Qt evolves in x.1 steps nowadays??
We've always released minor versions. You may remember 4.7 happened before
4.8.
If you meant something else, it isn't clear.
Oh come on ... Sure, I could have written 0.1 instead of x.1, but I think it's still clear enough that a 0.1 (x.1) step causes smaller steps (0.0.1, 0.0.2, ...) to be skipped...
Samuel Gaist
2015-01-28 12:55:24 UTC
Permalink
Post by Thiago Macieira
Post by René J.V. Bertin
Does that mean that Qt evolves in x.1 steps nowadays??
We've always released minor versions. You may remember 4.7 happened before
4.8.
If you meant something else, it isn't clear.
Oh come on ... Sure, I could have written 0.1 instead of x.1, but I think it's still clear enough that a 0.1 (x.1) step causes smaller steps (0.0.1, 0.0.2, ...) to be skipped…
Hi,

No it doesn't however new features like the migration from gstreamer 0.1 to 1.0, new APIs like those used by the Qt3D next gen module etc. don't happen in bug fix releases but between two minor releases.
René J.V. Bertin
2015-01-28 13:13:25 UTC
Permalink
Post by Samuel Gaist
Hi,
No it doesn't however new features like the migration from gstreamer 0.1 to 1.0, new APIs like those used by the Qt3D next gen module etc. don't happen in bug fix releases but between two minor releases.
OK. I'd personally think that an upgrade of an existing feature to rely on a newer (esp. much less ancient) version of a dependency isn't a new feature but exactly the sort of thing you'd want to test in a point release, but well, that's just my point of view :)

R.
Lopes Yoann
2015-01-28 12:58:22 UTC
Permalink
Post by René J.V. Bertin
Post by Thiago Macieira
Post by René J.V. Bertin
Does that mean that Qt evolves in x.1 steps nowadays??
We've always released minor versions. You may remember 4.7 happened before
4.8.
If you meant something else, it isn't clear.
Oh come on ... Sure, I could have written 0.1 instead of x.1, but I think it's still clear enough that a 0.1 (x.1) step causes smaller steps (0.0.1, 0.0.2, ...) to be skipped...
New features go in major or minor releases, not in bug-fix releases. I’m not sure if you can call the port to GStreamer 1.0 a feature, but it’s definitely too disruptive to be part of a bug-fix release.


Yoann
Roland Winklmeier
2015-01-28 13:05:02 UTC
Permalink
Post by Lopes Yoann
Post by Thiago Macieira
Post by Harri Pasanen
I wonder if there are plans to migrate to GStreamer 1.0? That is more
than two years old, and 0.10 is about ten years old. Ubuntu seems to
have switched in 14.04->14.10, I don't know about other dists.
There are, but the work isn't done.
As a matter of fact, it is. The port is in the dev branch, so it will be part of Qt 5.5.0.
Will GStreamer 1.0 be default in the official Qt 5.5.0 binary installers?
As far as I understood you have to enable it during compile time, so I
would need to build it myself with 1.0 support enabled, correct?
Lopes Yoann
2015-01-28 13:12:11 UTC
Permalink
Will GStreamer 1.0 be default in the official Qt 5.5.0 binary installers? As far as I understood you have to enable it during compile time, so I would need to build it myself with 1.0 support enabled, correct?
That’s correct, GStreamer 1.0 will have to be explicitly enabled in 5.5 and will be the default in 5.6.


Yoann

Harri Pasanen
2015-01-27 19:28:55 UTC
Permalink
I seem to have mp4 playback working on OS X out of the box, but my video
did not have any sound track.
I have not knowingly installed any gstreamer plugins in the machine.

I made a small testcase included in
https://bugreports.qt.io/browse/QTBUG-44157 that plays the included mp4
fine on OSX. On iOS there is some accidental DRM, the first showing is
ok, and subsequent showings are corrupted :)

Harri
Post by René J.V. Bertin
FWIW, I just discovered that even on OS X, installing the gstreamer1-gst-plugins-bad gave me mp4 playback once I had the phonon-backend-gstreamer package (4.8.2) installed too. FWI(also)W, I've installed phonon 4.8.3, the version developed independently from Qt (phonon.kde.org) .
R.
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Loading...