You are not logged in.

#1 2010-09-17 04:59:32

psyodin
Member
From: rocky mountains USA
Registered: 2008-11-13
Posts: 30

Output bitrates of large music collection to text file

Hello

Well as the title suggests I have a large music file and I am in the process of reripping my cd's to higher quality bitrates in anticipation of setting up a xmbc/mythtv setup in the future.

In the past I have used gmusicbrowser as my primary audio player however, now days i use MPD/ncmpcpp as my primary audio player.

Is there a way to list/output the music file data (esp bitrate) via cli or maybe a simple music file browser (not player) in the spirit of "do one thing and do it well"?

I just want to scroll through the music files bitrates (like gmusicbrowser can) without having to look at each file individually as ncmpcpp, sonata, smplayer, easytag all seem to do. Maybe a type of script that will produce a text file.

Any help would be appreciated to open my eyes for a solution. I may just be blind:p but google is not helping me all that much. In the end i can install gmusicbrowser, just trying to learn and improve my linux ablitlites.

Thank you for any help.


download>install>configure>enjoy, arch tastes good

Offline

#2 2010-09-17 06:43:38

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Output bitrates of large music collection to text file

If you have Mutagen installed:

find Music/Library -type f | while read file; do mutagen-inspect "$file" | egrep -oI '[0-9]+ bps' | (tr '\n' '\t'; echo "$file"); done | sort -n > Music_Bitrates.txt

But it is a bit slow.

Last edited by Wintervenom (2010-09-17 06:44:08)

Offline

#3 2010-09-21 06:20:31

psyodin
Member
From: rocky mountains USA
Registered: 2008-11-13
Posts: 30

Re: Output bitrates of large music collection to text file

cool, I will give it a try and post bak

thank you


---not so sure i under stand the script, even when altered it outputs an empty file, does it do one file at a time?

Last edited by psyodin (2010-09-21 07:15:49)


download>install>configure>enjoy, arch tastes good

Offline

Board footer

Powered by FluxBB