Indexing of metadata in flac files

Support for Tonido on the Desktop including Windows/Mac/Linux
xmikew
Rookie Tonidoid
Rookie Tonidoid
Posts: 5
Joined: Wed Mar 08, 2017 7:47 pm

Indexing of metadata in flac files

Postby xmikew » Wed Mar 22, 2017 9:31 am

hello,

From what I can tell, tonido uses libtag to look at audio file metadata. However, when it comes to flac files (and I assume by extension ogg files (dont have anymore ogg files)), it appears the metadata is not indexed?

My files are stored like:

":artist/:album/:track_number :song_title"

When I view them in the music app, none of the metadata is there. It appears to try to intuit the information from the file names? If I click "Artists" for example in the app, it shows Albums. Songs shows songs but no other metadata is really used (genre/artist etc).

I tested a couple of my flac files to make sure they were ripped properly. I downloaded the example program from libtags repo, compiled it and ran it against my flac files. All the metainformation is properly stored:

Program Listing:
https://github.com/taglib/taglib/blob/m ... reader.cpp

Example output:

Code: Select all

$ ./a.out /media/storage/music/SNMNMNM/Power\ Pack\ Horse\ Crunch/01\ Number\ 10.flac
******************** "/media/storage/music/SNMNMNM/Power Pack Horse Crunch/01 Number 10.flac" ********************
-- TAG (basic) --
title   - "Number 10"
artist  - "SNMNMNM"
album   - "Power Pack Horse Crunch"
year    - "2003"
comment - ""
track   - "1"
genre   - "Alternative"
-- TAG (properties) --
ALBUM       - "Power Pack Horse Crunch"
ARTIST      - "SNMNMNM"
CATEGORY    - "misc"
CDID        - "8909420b"
DATE        - "2003"
GENRE       - "Alternative"
TITLE       - "Number 10"
TRACKNUMBER - "1"
-- AUDIO --
bitrate     - 985
sample rate - 44100
channels    - 2
length      - 3:28


So that is all working right. Is tonido not using libtag like I suspected? I see libtag in the /usr/local/tonido subdir.

Thanks for any assistance in getting the metadata indexed!

- Mike

xmikew
Rookie Tonidoid
Rookie Tonidoid
Posts: 5
Joined: Wed Mar 08, 2017 7:47 pm

Re: Indexing of metadata in flac files

Postby xmikew » Wed Mar 22, 2017 12:32 pm

My guess here is that the index was getting used somehow?
Not sure but I was running my tonido out of my users home directory. I would start it as my user as /usr/local/tonido/tonido.sh start

I then moved to a system level approach by downloading the tonido init.d script and following the instructions for running tonido at boot.
This means that tonido is using data out of /root. I'm sure I could munge it to drop privs to the user etc and do a standard /etc/sysconfig/tonido type setup but I didn't instead I recovered my account, re-ran the setup, and then ran "index now".

After an index now, seems like metadata is all fixed up.

- Mike


Return to “Tonido Software”

Who is online

Users browsing this forum: No registered users and 15 guests