LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2018, 01:33 PM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 177

Rep: Reputation: Disabled
Question Rhythmbox doesn't find all files


Hi there!

Rhythmbox has been my favourite player application for quite some years. So I want to go on using it.

But it finds only 611 of >1000 music files in my music directory.

Running Rhythmbox in a terminal gave no hint.

Where to look next for a solution?

TIA

Gregor

BTW: 'find -not -type d' finds all files, 'find -not -type d | grep bla' finds < 1000 files. WTF?!
 
Old 12-09-2018, 04:00 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by gregors View Post
Where to look next for a solution?
compare the files found with those not found.
maybe some pattern there? like, certain codecs are not recognized?

Quote:
BTW: 'find -not -type d' finds all files, 'find -not -type d | grep bla' finds < 1000 files. WTF?!
apparently less than 1000 files have the string "bla" in their filenames. what's weird about that?
 
Old 12-09-2018, 04:37 PM   #3
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
compare the files found with those not found.
maybe some pattern there? like, certain codecs are not recognized?
Except for some older files (all of them ogg) only recently added files are found.

Quote:
Originally Posted by ondoho View Post
apparently less than 1000 files have the string "bla" in their filenames. what's weird about that?
Sorry having asked this question. I have mixed some thins I'm working on. The real thing is:

Code:
/home/gszaktilla>locate mp3 | grep gszaktilla | wc -l
588
/home/gszaktilla>locate mp3 | wc -l
18185
To me that looks like the behaviour of grep has changed. Maybe that's some weird difference between Debian 7.11 and Slackware 14.2

Thanks!

Gregor
 
Old 12-09-2018, 06:35 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,746

Rep: Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925
locate mp3 will output any string in the mlocate database that contains the substring mp3 which is not necessarily a mp3 file. Could be a sub directory, library or any program name.

locate mp3 | grep gszaktilla will pipe the output of locate mp3 to grep which will filter the output more i.e. those strings that contain gszaktilla which may not be in the /home/gszaktilla directory.

If you want to count the number of files just in the /home/gszaktilla then use the command

/home/gszaktilla> ls *.mp3 | wc -l

To find just mp3 files use

locate .mp3

The contents of the mlocate database are only as good as the last time the updatedb comand was run which is via a cron job. Files recently deleted may still be in the database.

find searches the actual contents of directories versus using a database.

Last edited by michaelk; 12-09-2018 at 06:47 PM.
 
Old 12-09-2018, 08:35 PM   #5
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
... To find just mp3 files use

locate .mp3

...
Hm. Something still looks strange to me:

Code:
gszaktilla@mimi:~>locate .mp3 | wc -l
14346
gszaktilla@mimi:~>locate .mp3 | grep gszaktilla | wc -l
6927
gszaktilla@mimi:~>locate .mp3 | grep -v gszaktilla | wc -l
0
gszaktilla@mimi:~>
Gregor
 
Old 12-09-2018, 09:27 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,746

Rep: Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925
I don't know at the moment without see the actual output. To find all mp3 files in your home directory using the find command.

find /home/gszaktilla -iname "*.mp3" -print | wc -l
 
Old 12-09-2018, 09:45 PM   #7
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
I don't know at the moment without see the actual output.
Well, the complete thing is there: What I typed and what it returned.

Quote:
Originally Posted by michaelk View Post
To find all mp3 files in your home directory using the find command.
find /home/gszaktilla -iname "*.mp3" -print | wc -l
Uh, now I have a fourth number to think about. So far I have 14346, 6927, 14330 and 0 :-)

Life with Linux can be fun. I'm having fun since mid 90's.

Gregor

PS: The original problem still exists - rhythmbox only shows some 600 of >1000 mp3 files. The locate thing was a step in trying to build a playlist. rhythmbox shows <600 of that playlist :-/.

Last edited by gregors; 12-09-2018 at 10:03 PM.
 
Old 12-09-2018, 11:57 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
troubleshooting oneliners:
you need to remove the pipe and everything after it from these commands and see what they actually output.

rhythmbox:
- how do you measure "more than 1000"?
- how do you measure 611 (i guess rhythmbox told you so)

anyhoo, i don't see how we can help you here without additional information.
you need to compare the files in rhythmbox database to those actually present in your library (? your home directory?) and try to find a pattern.
 
Old 12-10-2018, 12:07 AM   #9
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
troubleshooting oneliners:
you need to remove the pipe and everything after it from these commands and see what they actually output.
Which post are you referring to?

Quote:
Originally Posted by ondoho View Post
rhythmbox:
- how do you measure "more than 1000"?
- how do you measure 611 (i guess rhythmbox told you so)
I don't have to measure ">1000". It is my music library. A playlist that I created before starting with Slackware has >1000 lines.

Quote:
Originally Posted by ondoho View Post
anyhoo, i don't see how we can help you here without additional information.
you need to compare the files in rhythmbox database to those actually present in your library (? your home directory?) and try to find a pattern.
The only pattern so far is: The files found are recently added files OR a file is of type ogg.

Please let me know what further information you need.

Gregor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Rhythmbox Needs an Overhaul, 100(or less) Papercuts for Rhythmbox Maybe? LXer Syndicated Linux News 0 09-29-2010 04:30 PM
mp3 player not getting all files from rhythmbox jogurnog Ubuntu 2 11-24-2008 05:23 AM
find all files in current folder and all subfolders and sort all by timestamp dlnlinux Linux - Newbie 2 06-03-2008 11:29 AM
Removing Rhythmbox and ONLY Rhythmbox. extrasolar Ubuntu 4 08-01-2006 02:42 PM
rhythmbox 0.5.4 doesn't play mp3s - ?location of codecs? jjisnow Linux - Newbie 1 03-23-2004 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration