Skip to main content

Topic: Embed Rating on file (Read 5862 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
Embed Rating on file
When I put a rating in a file, does the rating gets embedded in it? Could I play it in another media player and be shown the exact same rating? Thanks

  • 2E7AH
  • [*][*][*][*][*]
Embed Rating on file
Reply #1
i suppose you are using playback statistics component

if you wish to embed the rating and other statistics go to

pref. > advanced > tools > playback statistics

and check on auto sync

Embed Rating on file
Reply #2
Thanks, it did the trick

Embed Rating on file
Reply #3
You also could use the Quick Tag plugin from the official components side that anyway only adds tags to the file - you also can tag information like Album Rating with it.
german support forum: www.foobar-users.de / user: qwert73

  • start78
  • [*][*][*]
Embed Rating on file
Reply #4
You also could use the Quick Tag plugin from the official components side that anyway only adds tags to the file - you also can tag information like Album Rating with it.

I testet both and the playback statistics component (foo_playcount) seems more reliable to me. At least rating with foo_quicktag seems to interfere with foo_playcount in a strange way.

Here is what i did:
I made a custom column in the DUI playlist view schowing the rating.
Rating a not rated file with foo_playcount caused an instant and correct change in that column.
So did the rating with foo_quicktag.

But when i tried to change a rating=5 made with foo_playcount into a rating=1 with foo_quicktag the rating column showed "3". The properties dialogue showed rating=1 and mp3tag also showed rating=1. But the "rating"-column insisted on rating=3. Even restarting foobar2000 didn't help.

Rating a playcount-5 to a quicktag-2 also resulted in "3". Playcount-5 to quicktag-3 resulted in "4"......

Re-rating with foo_playcount solves the problem.

Seems to me that foo_quicktag somehow creates a second %rating% tag that neither the properties dialogue nor mp3tag can "see". But the plalist view reads both and interpolates (?) them.

  • smkk
  • [*][*][*][*][*]
Embed Rating on file
Reply #5
$meta(rating) solves the above bug/issue. I don't think the quicktagger is responsible for this, it's probably playback statistics. It seems to "follow" the rating set by quicktagger but sometimes it gets bugged for some reason and stores a different value than which is actually stored in %rating%. At least that's how i experience it.

  • Yirkha
  • [*][*][*][*][*]
  • Moderator
Embed Rating on file
Reply #6
The official Playback statistics component stores rating by default in its separate database (together with added/first/last played timestamps), not in tags of the file itself. If there is another RATING tag in the file, %rating% can apparently give confusing results.
Full-quoting makes you scroll past the same junk over and over.

  • start78
  • [*][*][*]
Embed Rating on file
Reply #7
The official Playback statistics component stores rating by default in its separate database...

I activated "pref. > advanced > tools > playback statistics > auto sync", so foo_playcount should write the rating to the file instantly.

Quote
$meta(rating) solves the above bug/issue.

Worth a try.

Since the %rating%-field is commonly used/accepted for rating i wonder why two components available from the from the official components side can cause such a mess!?

  • rawgue_
  • [*]
Embed Rating on file
Reply #8
The official Playback statistics component stores rating by default in its separate database (together with added/first/last played timestamps)
Where is this database stored?

What is the "right" way to make sure my file ratings are secure and can be restored any time i move my collection and/or install foobar again?
Also, what is the way to have the ratings show up in other media players?

I searched a bit here and i found this

"Open properties, right-click on the comment field, choose format from other fields, enter $if2($mul(%rating%,20),00). " posted by Frank Bicking
This could be a solution but not the best, i feel.

  • _oao
  • [*][*][*]
Embed Rating on file
Reply #9
Since the %rating%-field is commonly used/accepted for rating i wonder why two components available from the from the official components side can cause such a mess!?

Maybe it's because you're giving the components an incorrect use...

If you have already foo_playcount set to write ratings to tags why use foo_quicktag to do the same job?

edit:
@rawgue_: check the second post...
  • Last Edit: 05 February, 2009, 07:41:01 PM by _oao

  • Yirkha
  • [*][*][*][*][*]
  • Moderator
Embed Rating on file
Reply #10
Where is this database stored?
PlaybackStatistics.dat in your user profile ("C:\Documents and Settings\username\Application Data\foobar2000" - WinXP, "C:\Users\username\AppData\Roaming\foobar2000" - Vista) or next to foobar2000.exe in "Program Files", depends on location of configuration files as set in Preferences/General.

That said, that file remembers the values by file name and it's for foobar2000 only. If you want to see the ratings from another application or move the files around, synchronizing statistics with the files as described above is needed.
Full-quoting makes you scroll past the same junk over and over.

  • rawgue_
  • [*]
Embed Rating on file
Reply #11
That said, that file remembers the values by file name and it's for foobar2000 only. If you want to see the ratings from another application or move the files around, synchronizing statistics with the files as described above is needed.
I checked the "automatically sync file tags with statistics" and then rated a song with Playback Statistics. The <RATING> tag is there, with the right value. But when i play the same file with winamp or media player the rating does not show. Am i doing something wrong here or i just misunderstood the result?

  • Yirkha
  • [*][*][*][*][*]
  • Moderator
Embed Rating on file
Reply #12
Well, I looked on the the Internet and it seems that:

- Windows Media Player does not support ID3v2.4 tags, which foobar2000 writes by default. (But it might show the artist, album, etc. fine, because that info is written also in older ID3v1 tag for compatibility.) You might try enabling the ID3v2.3 compatibility mode, search this forum for details. ETA: Wouldn't work either, the tag would have to be called "RATING WMP" instead.

- Winamp is storing the rating somewhere in its database/media library and can't read it from file tags. Or so it seems (last post from a month ago).

That's kind of scary, hopefully someone with more knowledge about those two programs will prove me wrong.
  • Last Edit: 05 February, 2009, 08:51:10 PM by Yirkha
Full-quoting makes you scroll past the same junk over and over.

  • rawgue_
  • [*]
Embed Rating on file
Reply #13
That's kind of scary, hopefully someone with more knowledge about those two programs will prove me wrong.
Exactly my thoughts. I'm almost finished organizing my, pretty large, music library and i'm just starting to rate stuff. It really sucks that you can't somehow keep your ratings no matter what.
_Scary_ indeed.
  • Last Edit: 06 February, 2009, 04:12:17 AM by rawgue_

  • Joffi
  • [*]
Embed Rating on file
Reply #14
My foo_playcount problem that if I change an existing %rating% using foo_playcount on a file with %play_count% of 5 or greater, the %play_count% gets either changed (reduced) or stripped completely.

Someone more cognitive may be able to see more of a pattern to it, but that is best I can see.  I have autosync on and foo_quicktag is long gone with settings purged.

Very irritating when I use the %play_count% in autoplaylists and in keeping tabs on my favourite tracks over time.