HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: sauronnikko on 2009-01-01 22:29:47

Title: Embed Rating on file
Post by: sauronnikko on 2009-01-01 22:29:47
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
Title: Embed Rating on file
Post by: 2E7AH on 2009-01-01 23:45:59
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
Title: Embed Rating on file
Post by: sauronnikko on 2009-01-02 01:09:50
Thanks, it did the trick
Title: Embed Rating on file
Post by: q-stankovic on 2009-01-02 15:40:14
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.
Title: Embed Rating on file
Post by: start78 on 2009-01-03 08:48:32
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.
Title: Embed Rating on file
Post by: smkk on 2009-01-03 19:52:12
$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.
Title: Embed Rating on file
Post by: Yirkha on 2009-01-03 22:57:56
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.
Title: Embed Rating on file
Post by: start78 on 2009-01-04 11:39:09
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!?
Title: Embed Rating on file
Post by: rawgue_ on 2009-02-06 00:16:28
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.
Title: Embed Rating on file
Post by: _oao on 2009-02-06 00:38:33
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...
Title: Embed Rating on file
Post by: Yirkha on 2009-02-06 00:52:02
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.
Title: Embed Rating on file
Post by: rawgue_ on 2009-02-06 01:12:58
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?
Title: Embed Rating on file
Post by: Yirkha on 2009-02-06 01:47:22
Well, I looked on the the Internet and it seems that:

- Windows Media Player does not support ID3v2.4 tags (http://forum.dbpoweramp.com/showpost.php?p=86605&postcount=2), 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 (http://forums.winamp.com/showthread.php?threadid=246869) (last post from a month ago).

That's kind of scary, hopefully someone with more knowledge about those two programs will prove me wrong.
Title: Embed Rating on file
Post by: rawgue_ on 2009-02-06 09:11:01
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.
Title: Embed Rating on file
Post by: Joffi on 2009-02-18 09:31:09
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.