Library file count differs from Rhythmbox
  • Hello,

    I just installed Guayadeque after hearing about it on Hacker Public Radio. One of the issues that has prevented me from switching away from Rhythmbox is that other players show me a different file count than Rhythmbox, and I don't know which player is correct or why the counts differ. This is the reason I uninstalled Banshee within ten minutes of installing it; well, that, and the fact it was crashing ;-)

    For example, right now my Rhythmbox library file count is 28,113 files. Guayadeque, after scanning my library, says I have 27,982 files, a difference of 131 files.

    If Rhythmbox is correct, how could I determine which files are not being accepted by Rhythmbox?
    What kinds of issues would make the counts different between the two players?

    Has anyone else ever dealt with this issue?
  • That is interesting. You can use for example
    find . -name "*.mp3" | wc
    To check how many mp3 files you have. The first number is the line count. Can you check how much files it gives for every format you have ?

    Thanks for your help
  • Be careful because Rhythmbox sometimes adds non-music files to the library.
    For instance I just noticed that it added 2 .ico files.
    After removing those Rhythmbox shows 18516 files and Guayadeque 18515.
    I will try to find that one file of difference.
  • Also sometimes files with bad encoding characters cant be read by Guayadeque.
    Happened for me and had to rename the files with proper name to get it read correctly.

    Thanks for your help
  • After an extensive search on my library I found two problems:

    The first one is in Rhythmbox, it contains the first song of an album, but I can't get it to import the rest of it. However, the total song count includes the missing songs.

    The other one was in Guayadeque. I found 2 repeated songs. This is not the first time that this happens, I remember to have reported duplicate songs on the Ubuntu forum, but it is very rare. It may have happened because I edited the songs while the update was running.

    The question is what to do with this problem. Do you just ignore it because it's quite rare or do you do a check that most of the times will be unnecessary.
    Is it something that can be checked quickly or not? (a simple query looking for duplicates on the path comes to my mind).
    Maybe a good compromise is to check it on rescan, which takes long anyway, but not on update.

    Other than that all music files were imported by both Rhythmbox and Guayadeque.
  • Hello,

    Thanks for your replies. I started running the suggested find command a couple of times then realized I had no idea how many different extensions I may have in the library. Here is the output from a couple of those:

    find ./ -name "*.mp3" | wc
    27223 272034 3187813

    find ./ -name "*.m4a" | wc
    337 2395 35342

    Then I did a total for all file types:

    find ./ -type f | wc
    28030 278357 3275763

    Then I looked around online for a way to determine how many different file types were present in the library; I found this forum post, with a command that would also sum those file types that were found:

    http://serverfault.com/questions/183431/get-all-extensions-and-their-respective-file-count-in-a-directory

    So then I ran this command and got the following output:

    find ./ -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n
    1 .mpc
    1 .tqd
    15 .txt
    28 .ogg
    37 .wma
    115 .aac
    254 .jpg
    337 .m4a
    + 27223 .mp3
    ------------
    28011
    27742 (minus txt and jpg)

    So the wc and grep versions of the find command don't agree on the total of files, but the grep version seemed to agree with running the individual instances of
    find ./ -name "*.extension" | wc

    I reinstalled Banshee for a fuller comparison, and these are the file counts given by each player:

    Banshee count: 28,087 (Banshee 1.8.1 from PPA)
    Rhythmbox count: 28,089 (Rhythmbox 0.13.1 from PPA)
    Guayadec count: 27,972 (Guayadec 0.2.7-1227 from PPA)

    This is odd because before connecting my external drive, the counts for Banshee and Rhythmbox were not so close:

    Banshee count: 27,776
    Rhythmbox count: 27,743
    Guayadec count: 27,636

    Please keep in mind that the single folder that I select for my library in each application, and from where the find commands were run, contains a symlink to an additional folder on the external drive, rather than me try to add the folder separately in various applications.

    I hope this info is useful in some way.

    Thanks again
  • Oh incidentally, I have approximately 3,500 subdirectories in the library, would anyone have a suggestion on how I could isolate the files that have bad encoding characters (if any), such as a bash command or something?
  • Thanks for the detail, zintrigue. This is getting really interesting.
    I installed other players and compared the results on arch linux.

    clementine (0.6-4): 10175
    guayadeque (0.2.8-1487): 10198
    rhythembox (0.13.3-1): 10208
    exaile (0.3.2.0-3): 11330
    banshee (1.8.0-2): 11352

    Then I ran
    find ./ -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n
    and got 78 extensions in the result. I tried to sum up and compare the figure but couldn't decide which ones to include.
    Anon, do you have a full list of all supported extensions?
    Thanks
  • I think that the supported formats depend on the gstreamer codecs you've installed.
  • @zintrigue
    I see that you are using revision 1227.
    I suggest you to remove the guayadeque package and install guayadeque-svn which is more up to date.
  • tamalet said:

    I think that the supported formats depend on the gstreamer codecs you've installed.


    I have most of gstreamer codecs installed but they don't say anything about the formats.
    On arch linux there is a 'flac' package but that's only one out of many formats and I have no clue about other packages.
    Another thing is that I have so many formats like .mid, .mpg, .wmv, .gp3, .gp4, .gp5, .flv, .swf, .rm, etc.
    Not sure if they all count.

  • Anon, do you have a full list of all supported extensions?
    Thanks



    That is

    .mp3
    .flac
    .ogg
    .oga
    .mp4
    .m4a
    .m4b
    .m4p
    .wma
    .aac
    .ape
    .wav
    .aif
    .wv
    .tta
    .mpc
    .rmj

  • Thanks for the list, anonbeat.

    Summing up all the supported extensions in my music folder I got 10213.
    The difference for guayadeque is 10213 - 10198 = 15 songs missing.
    Those 15 songs are probably incorrectly encoded since I have a lot of asian music ;)

  • Since the newest updates to 0.3.5 the play counts from Rhythmbox and guayadeque don't differ too much, at least on my system. Rhythmbox shows 30835 tracks and guayadeque claims 30838. The three "missing" files are just duplicates.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

In this Discussion