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 520697 - [API] Add GST_TAG_USER_RATING
[API] Add GST_TAG_USER_RATING
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.29
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-06 09:43 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2010-03-24 20:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tags: Add new _FAVOURITE_RANKING tag (2.33 KB, patch)
2010-03-19 18:31 UTC, Thiago Sousa Santos
none Details | Review
tags: Add new _USER_RATING tag (2.31 KB, patch)
2010-03-23 15:30 UTC, Thiago Sousa Santos
none Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2008-03-06 09:43:12 UTC
gst-plugins-base/gst-libs/gst/riff/riff-read.c
GST_RIFF_INFO_IRTD
used in wma/asf, not sure about wav, but apps should skip unknown items would be save to be added there too

gst-plugins-good/gst/qtdemux/qtdemux_fourcc.h
FOURCC_rtng (iso udta metadata)

gst-plugins-base/gst-libs/gst/tag/gstid3tag.c
id3v2.4.0 - POPM (4.17. Popularimeter)
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-03-06 09:49:24 UTC
oops, FOURCC_rtng is stuff like PG16 (parental guideance).
RatingEntity   Unsigned int(32) Four-character code rating entity
RatingCriteria Unsigned int(32) Four-character code rating criteria
Comment 2 Edward Hervey 2008-07-24 09:04:02 UTC
Got a patch for this ?
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-07-26 12:28:26 UTC
I think this needs more research what kind of rateing tags exist.
mp4/real has rating for parental guidance [1][2]
asf/avi/wav/id3 has rating in terms of personal popularity

maybe we can do the asf/avi/wav/id3 thing as GST_TAG_POPULARITY
and the mp4/real one as GST_TAG_AUDIENCE_RATING

[1] http://en.wikipedia.org/wiki/Motion_picture_rating_system
[2] http://service.real.com/help/library/guides/producer85/htmfiles/command.htm
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2008-08-01 13:29:15 UTC
Uploaded the wrong patch for tee. Will update the patch too and reupload.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2008-08-01 13:30:08 UTC
Args. Wrong bug nr. Sorry.
Comment 6 Thiago Sousa Santos 2010-03-19 18:31:59 UTC
Created attachment 156573 [details] [review]
tags: Add new _FAVOURITE_RANKING tag

Adds the new _FAVOURITE_RANKING tag so that users can
set rankings to a media based on how much they like
it.
Comment 7 Thiago Sousa Santos 2010-03-23 15:30:52 UTC
Created attachment 156883 [details] [review]
tags: Add new _USER_RATING tag

Updated with comments from IRC,
now we have _USER_RATING instead of _FAVOURITE_RATING
Comment 8 Tim-Philipp Müller 2010-03-23 17:37:57 UTC
Review of attachment 156883 [details] [review]:

Looks good to me.

::: gst/gsttaglist.c
@@ +326,3 @@
+  gst_tag_register (GST_TAG_USER_RATING, GST_TAG_FLAG_META, G_TYPE_UINT,
+      _("user rating"),
+      _("Rating attributed to a content by a user. The higher the rank, "

I'd drop the 'to a content' bit.

::: gst/gsttaglist.h
@@ +883,3 @@
+ * GST_TAG_USER_RATING
+ *
+ * Rating attributed to a content by a person (likely the application user).

Again, maybe drop the 'to a content'.

@@ +884,3 @@
+ *
+ * Rating attributed to a content by a person (likely the application user).
+ * The higher the rank the value, the more the user likes this media

Drop 'the rank'.
Comment 9 Benjamin Otte (Company) 2010-03-23 18:46:14 UTC
(Tiny comment: The bugzilla link in the patch is wrong.)

I think we should suggest a limit for the rating. Otherwise someone takes a rating from 1-5, others use 0-100 and then the ratings aren't comparable.
Comment 10 Thiago Sousa Santos 2010-03-23 18:57:58 UTC
(In reply to comment #9)
> (Tiny comment: The bugzilla link in the patch is wrong.)
Heh, git-bz added that when I added the wrong number, thanks for spotting that.

> 
> I think we should suggest a limit for the rating. Otherwise someone takes a
> rating from 1-5, others use 0-100 and then the ratings aren't comparable.

The docs says that is an uint from 0 to 100. I don't think we can programatically restrict it.
Comment 11 Thiago Sousa Santos 2010-03-24 18:33:57 UTC
Pushed this. Do we want to add _PARENTAL_RATING here too?

Module: gstreamer
Branch: master
Commit: e875577b0ff8d8fd06411059ad182e6cc55177e1
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=e875577b0ff8d8fd06411059ad182e6cc55177e1

Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk>
Date:   Fri Mar 19 15:10:07 2010 -0300

tags: Add new _USER_RATING tag

Adds a new tag for user favorite media rating.
User rating informs how much (from 0 to 100) a user
'likes' a media.
Having an percent uint range for this is easy to map into other scales,
like some players that allow users to attribute 'stars' to its
media.

API: GST_TAG_USER_RATING

Fixes #520697
Comment 12 Thiago Sousa Santos 2010-03-24 18:34:51 UTC
Comment on attachment 156883 [details] [review]
tags: Add new _USER_RATING tag

Obsolete this one, pushed an updated version with the comments.
Comment 13 Tim-Philipp Müller 2010-03-24 20:23:13 UTC
> Do we want to add _PARENTAL_RATING here too?

Nah, let's wait until someone requests this explicitly in a separate bug report.