After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549111 - pbutils: Expose more information about media types (audio, video, container, ...) in missing plugin messages
pbutils: Expose more information about media types (audio, video, container, ...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-23 13:26 UTC by Jonathan Matthew
Modified: 2018-11-03 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Matthew 2008-08-23 13:26:47 UTC
It would be useful to be able to inspect missing-plugin messages, so that applications can avoid requesting installation of plugins that they won't use anyway.

The only use case I have is for audio-only applications that frequently have to deal with video and random other files.  Currently, when rhythmbox runs across a video file for which no decoder is installed, it will request installation of the decoder, then, after forcing the user to hit a few buttons, it will ignore the file, because it's only interested in audio files.

What I'd like to do here is ignore the file immediately, by checking the missing-plugin messages to see if a video decoder is required.

I'm not really sure what an API for this would look like, or what information it would expose.  The code I'm playing with now will get the type and (if it's a decoder) caps out of the missing-plugins message and then check media types.  This doesn't really feel like it's guaranteed to be stable, and checking media types never seems like a good idea.
Comment 1 Sebastian Dröge (slomo) 2008-08-24 18:13:39 UTC
Not sure how this could be implemented as you can't really say from the media type if it's video or a container format... for example avi is "video/x-msvideo" but you would want a demuxer for this.
Comment 2 Jonathan Matthew 2008-08-24 22:48:35 UTC
gst-libs/gst/pbutils/descriptions.c seems to contain that knowledge already (FLAG_CONTAINER), so maybe that could be exposed?

I don't think demuxers would be a huge problem, though, because most of the interesting ones have no external dependencies and are in -good or -base, so they'll usually be installed already.
Comment 3 GStreamer system administrator 2018-11-03 11:14:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/16.