Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Playback Statistics component (Read 203093 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Playback Statistics component

Reply #250
I have a large music collection (large in me eyes, I'm not doubting others have more) and I like to have it tidy and squeaky clean. There are some database managing methods fb2k uses that make me extra cautious. My main concern is that it does not remember files if they've been moved, renamed, etc., no matter what small thing happens fb2k will interpret it as deleted and add the same file as if it were a new one. This can cause great havoc if I have a particular track present in many playlists. As I said, I'm aware of it and so far haven't lost my database' order, most importantly the "date added" order which I treasure greatly.

The leads me to something I like very much about fb2k or specifically this plugin: to be able to modify the date added entry in the database. Well, that's not something done directly but I imagined if I modified it manually and then told foobar to import the statistics it would assign the desired "date added" date into the database re-ordering my music as I see fit. My reason for this is that I want all my music listed in a playlist that dates from my first MP3 obtained (according to the Date Created timestamp).

This finally leads me to the question I meant to ask since I started writing this post: what's the method for deciphering the "date added" tag stamped by fb2k? Believe it or not, I've read the entire thread and found no indication of how it's coded... except for [a href='index.php?act=findpost&pid=0']one post[/a]! I didn't understand it so that's why I'm posting here. Large introduction, I know. But on the other hand, the more I explain the more info I might get from the pros in the know here. 

Help plz?

Playback Statistics component

Reply #251
You're going the wrong way. To achieve what you want you have two possibilities:
1. Do all file operations inside fb2k, so you will not lose the added timestamp
2. If you have concerns, that you don't always doing file operations inside fb2k, write the added timestamp as tag to the files.

Playback Statistics component

Reply #252
You're going the wrong way. To achieve what you want you have two possibilities:
1. Do all file operations inside fb2k, so you will not lose the added timestamp
2. If you have concerns, that you don't always doing file operations inside fb2k, write the added timestamp as tag to the files.

I concur 100%.  If it makes you feel better Zhelkus, I am of much the same mindset.  I was very reluctant to do file operations inside fb2k, however now that I'm committed to it ...i've found that creating the move/rename script patterns has saved me tons of time.  Of course, it also keeps all the stats intact in the playback stats db, the file details in the main db and fixes any playslists where the files exist.

the more you commit to using the features of foobar2000, the more time you save and happier you'll be 


Playback Statistics component

Reply #253
You're going the wrong way. To achieve what you want you have two possibilities:
1. Do all file operations inside fb2k, so you will not lose the added timestamp
2. If you have concerns, that you don't always doing file operations inside fb2k, write the added timestamp as tag to the files.

@fbuser&mrinferno: Oh there's nothing to worry about. That's what I've been resorting too. I suppose I will get used to it in time. Truth is macros do make life easier.

But I think I forgot to mention something important: I haven't been using fb2k from the start, I'm a recent convert.  Thus my interest in setting the timestamp for all the files, they were disorganized since day one except for the ones I obtained after the day I started using fb2k.

If there's an internal plugin that can mass process the tags by reading the Date Created timestamp from the file's properties then that would be grand, otherwise I'll just look for a similar tool and try to automate it. But I still want to know how that serial number in the ADDED_TIMESTAMP is read. 

Playback Statistics component

Reply #254
But I still want to know how that serial number in the ADDED_TIMESTAMP is read. 

ADDED_TIMESTAMP is a number of 100-nanosecond intervals passed since January 1, 1601. This is how timestamps in Windows are internally stored.

Playback Statistics component

Reply #255
What is the format of PlaybackStatistics.dat and is there a way for me to programatically add values to this file?  I have two objectives:

1 - Import in my ratings from foo_custominfo
2 - Be able to export my ratings to text, say CSV

The above-mentioned features were one of the wonderful parts of foo_custominfo; Thank you for the information and consideration.

I'm also seeking the answer to this.
Everything I've learned about space, I've learned from psytrance.

Playback Statistics component

Reply #256
PlaybackStatistics.dat is proprietary format to Foobar.

If foo_custominfo can write to tags, write to the appropriate fields used by the playback stat component. You can then leave the info in tags or import into the .dat file.

There are multiple ways to export ratings to text. Included Foobar text tools or the extra copy text options from foo_utils.

terry

Playback Statistics component

Reply #257
What is the format of PlaybackStatistics.dat and is there a way for me to programatically add values to this file?  I have two objectives:

1 - Import in my ratings from foo_custominfo
2 - Be able to export my ratings to text, say CSV

The above-mentioned features were one of the wonderful parts of foo_custominfo; Thank you for the information and consideration.

I'm also seeking the answer to this.

I wrote a guide for this here, if you are reffering to (1)
Can't wait for a HD-AAC encoder :P

Playback Statistics component

Reply #258
I wrote a guide for this here, if you are reffering to (1)

Thank you, that works great.

To others: that thread discusses foo_customdb which is similar to foo_custominfo and fairly compatible with it, though it has some minor stability problems. I recommend people migrating from foo_custominfo to check out foo_customdb.
Everything I've learned about space, I've learned from psytrance.

Playback Statistics component

Reply #259
hi! how can i convert ADDED_TIMESTAMP file tag in date-time format to use in masstager?

Playback Statistics component

Reply #260
Try %added% instead of %added_timestamp%

terry

 

Playback Statistics component

Reply #261
there is no %added% tag in file tags, only standalone database.. but i have my own %added_date% tag which i was used  for many years already and want to copy in ADDED_TIMESTAMP playcounter tag if file doesnt contain one. SO, i need some function to convert ADDED_TIMESTAMP in date format.

Playback Statistics component

Reply #262
Is foo_playcount Case Sensitive? or the playlists?
I change the case of the path in explorer, and the tracks in playlists can still paly but Playback Statistics can't work with it。unless I re-add the items to the playlist.

Playback Statistics component

Reply #263
Quote
Is foo_playcount Case Sensitive? or the playlists?


Media library is case-sensitive, yes.

Playback Statistics component

Reply #264
Quote
Is foo_playcount Case Sensitive? or the playlists?


Media library is case-sensitive, yes.


Thanks for the reply.
First, excuse me for my English.
I know media library is case sensitive, but windows path is not.
When I change the case of the folders or files in the library, media library keep monitoring well. and the changed items in the playlists can play because the path is not case-sensitive. but foo_playcount doesn't work without telling.
So, the tracks are still in media library, can still play in lists, foo_playcount doesn't work. Should that be a bug?
The items invalid for foo_playcount in playlists should be replaced or removed. But it's hard to find all of them in every playlist for me.

Playback Statistics component

Reply #265
Quote
So, the tracks are still in media library

No, they aren't.
For example, you have c:\Music\test.mp3. It was played back 5 times so its %play_count% = 5.
Now you renamed it to c:\Music\Test.mp3; so test.mp3 was deleted from the Media library and Test.mp3 was added (with %play_count% = 0!)
But playlists still contain reference to test.mp3. It can be played but it is no more in the Media library. That's why foo_playcount doesn't work.

Quote
The items invalid for foo_playcount in playlists should be replaced or removed. But it's hard to find all of them in every playlist for me.

I added a column that contains the following code:
Code: [Select]
$ifequal(%added%,N/A,-,%play_count%)

It shows playcount for files that are in the Media library and '-' sign for files not in it.

Playback Statistics component

Reply #266
thanks, lvqcl. I catch your meaning.
I play "test.mp3" in the playlist exactly is the file "Test.mp3". So, "test.mp3" is not in the library.
But I always keep writing the Statistics to tags. The code doesn't work for me. 
Why fb2k doesn't correct it automatically, when the playlist items can play and the files are exactly in the media library? Or is there another way to find the items that are not in the library?

Playback Statistics component

Reply #267
hi

i love this component but its becoming a bit slow for me :S
i have a very big library (55k tracks >680GB) and over 15k plays in my playcount db.
every time a new tracks reaches 1:00 my foobar lags for a few seconds and memory usage goes up to 450MB.

i dont want to write the play stats to my tags.
is there a way to improve the speed?

thanks

Playback Statistics component

Reply #268
Do you have a lot of autoplaylists which need to be regenerated after each such update? Do you have any complex media library viewers visible in your layout?
Full-quoting makes you scroll past the same junk over and over.

Playback Statistics component

Reply #269
Do you have a lot of autoplaylists which need to be regenerated after each such update? Do you have any complex media library viewers visible in your layout?


I have an autoplaylist which uses playcount stats i'll try to remove that playlist and see if that helps.
i use facets to browse

tnx

Playback Statistics component

Reply #270
I'm confused over how foobar uses and displays info from the playback statistics db vs tags when they share the same field name, specifically %rating%.  I've been using quick tagger to set the rating of my files, mainly because I play my music on two computers and want the ratings accessible from both. I wasn't having any problems until I tried changing my rating scale (in an attempt to figure out a way to display half stars using a 1-10 rating scale)... long story short I doubled all my 1 to 5 ratings to the 10 scale via the properties dialog.

My problem is that wherever %rating% is used (autoplaylist, playlistview etc.), it's using my 1-10 scale, but it's capped at Playback Statistics' scale of 1-5, so everything rated over 5 is displayed as 5. The only place I can see the 1-10 rating from the tags is in the properties dialog. I would like to revert my ratings back to 1-5, but there is no way to sort the songs with ratings over 5 and thus no easy way to mass select all ratings of 10 and edit them back to 5... and so on.

Is there anyway to display the 1-10 ratings from the "rating" tag, rather than the capped "rating" from the db?

Secondly, are there any plans to enhance the rating scale of the playback statistics component to accommodate half stars, or a 1 to 10 scale?

Playback Statistics component

Reply #271
try

$meta(rating)

Playback Statistics component

Reply #272
Thanks Marc!

Playback Statistics component

Reply #273
Hi, I have a question regarding the usage of foo_playcount in conjunction with foo_customdb, foo_masstagger and foo_dop. I've configured foobar to have my songs' ratings in a customs sqllite database using foo_customdb, adding for every song the tag RATING_CD with a value between 0 and 5. This works wonders inside foobar, but I recently downloaded foo_dop and would like to be able to be able to synchronize ratings between my customdb and my ipod.

According the the foo_dop documentation, foo_dop can synchonize playback statistics determined by foo_playcount, so this could be a way of doing it. What I'd like to do would be to be able to copy all my RATING_CD tags (which, even though they are in a custom db, are accessible in queries and such) to the tag used by foo_playcount when you select the option 'Import Statistics from file tags'. To do this, I'm using masstagger to copy the value of the filed RATING_CD to the one of RATING, which I thought was the one read by foo_playcount when using the import from file tag feature, but it's not working (i.e. playback statistics doesn't recognise the value). In fact, the field name <RATING> doesn't event appear in the Properties dialog when I do this.

I realise this is not involving only foo_playcount, but maybe the people posting here could give me a hand in solving this.

Thanks!

Diego

Playback Statistics component

Reply #274
Question:
would it be possible to add possibility of rating files that are not (yet) in the media library? (i.e. writing it directly to the file, maybe availible only when user selects "synchronize data with file tags"?).