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 626462 - Add the possibility to add a category to an element
Add the possibility to add a category to an element
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 396774
Blocks:
 
 
Reported: 2010-08-09 17:35 UTC by Thibault Saunier
Modified: 2016-11-11 21:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thibault Saunier 2010-08-09 17:35:22 UTC
In the case of effects in particular, it would be nice to have the possibility to define the effect categories directly in the element.

For example, videobalance is in the 'Colors' category, videorate in 'Noise', aspectratiocrop in 'Geometry'...

It is not possible to specify it for now.

As slomo said on IRC:
http://bugzilla.gnome.org/show_bug.cgi?id=396774 'should get it fixed and then define more element class metadata, including something for your use case'
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-08-12 15:37:42 UTC
whats wrong with gstElementDetails.klass ?
Comment 2 Thibault Saunier 2010-08-12 15:54:43 UTC
The gstElementDetails.klass is to define the type of element, it is not something we would show to the end user at the difference of the category which would actually be showed to him directly.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2010-08-12 18:10:10 UTC
I am not totally convinced. This would need some good definition to make sure its been used correctly.

What kind of semantics do you have in mind. Should it be a list of tags like the gstElementDetails.klass field (strings, separated by '/') or a single value.

Do you want to define an ontology somewhere and use only defined values?
Comment 4 Thibault Saunier 2010-08-12 22:32:17 UTC
I am actually thinking about categories as the ones I defined in this file
http://github.com/thiblahute/Pitivi/tree/effects/pitivi/effects.py 

This should probably directly be included in Gstreamer so any application can use it (And all the effects actually have categorisation). I think it should be a list of tag similar to gstElementDetails.klass actually

What do you think is wrong with this idea?
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2010-08-13 07:04:56 UTC
I am just worried about the overlap. E.g. "Analysis" is already in the gstElementDetails.klass.

Slightly unrelated, did you meant to classify "videorate" as "Noise"?

One argument for having a separate metadata-item would be that gstElementDetails.klass is not translated, but this one would be. But then we probably need to make it a list/array and not a composed string.
Comment 6 Thibault Saunier 2010-08-13 16:11:25 UTC
What is the problem about the overlap? I don't think the gstElementDetails.klass could be used instead of the list of categories, the goal is very different.

You are right, it should be a list of string and for sure it must be translatable to be usefull.
Comment 7 Sebastian Dröge (slomo) 2010-08-13 16:16:04 UTC
gstElementDetails::klass can't be translatable though, it's used in code to detect decoders, etc.
Comment 8 Sebastian Dröge (slomo) 2013-08-16 09:36:33 UTC
So, what to do here?
Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2013-08-17 12:48:00 UTC
Maybe apps needs to handle that them self. Otherwise we need to ensure that all kind of apps are happy with the ontology we pick.

Thibault, could you write down how you would define both; gstElementDetails::klass and gstElementDetails::categories. Both are a list of tags. Right now we only miss that ::klass is translatable.

Also, should these categories be user-editable or defined in the element code?
Comment 10 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-08 22:07:37 UTC
Do we still want to do this?
If we want, we can also define a new metadata-key for this. As a prerequisite it would be nice to make a list of elements we want to categorize and a list of proposed categories.
Comment 11 Tim-Philipp Müller 2016-11-11 21:30:02 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!