We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

How to make Media app see m4a, AAC files and meta Tags.

asked 2016-11-08 10:20:05 +0200

DarkTuring gravatar image

updated 2016-11-15 07:40:07 +0200

I have music on my external sdcard, how do i get the native Media player from Jolla to recognize the music?

Media Player

Music Collection SD Card

Updating the tracker doesnt do anything for the native Media app. The only files that show are music files opened in emails currently.

I have a symlink from my /home/nemo/Music folder directly to the SD card Music folder.

edit retag flag offensive close delete

Comments

Edit: sorry I didn't see the text below the final image.......however, on my device, this is how I get round such problems........

in terminal, type this; tracker reset -r

The command will finish quickly, but you will notice that nothing is updated immediately....give it a minute or less to do it's thing.

ALL of my music is on Sdcard and is all foldered....and is all present in Mediaplayer.

Spam Hunter ( 2016-11-08 22:10:57 +0200 )edit

@fmotl i am getting the following:

ot@localhost nemo]# tracker reset -r Found 0 PIDs… Setting database locations Checking database directories exist Checking database version Could not find database version file:'/root/.cache/tracker/db -version.txt' Current databases are either old or no databases are set up y et A reindex will be forced Creating version file '/root/.cache/tracker/db-version.txt' Checking database files exist Removing all database/storage files Removing database:'/root/.cache/tracker/meta.db' Removing db-version file:'/root/.cache/tracker/db-version.txt ' Removing db-locale file:'/root/.cache/tracker/db-locale.txt'

DarkTuring ( 2016-11-08 23:16:22 +0200 )edit

Waited and nothing has indexed for the Media Player. Do i need to delete some cash or index DB myself. Using QuasarMx works fine but then, with that app you can define the music source folder.

DarkTuring ( 2016-11-08 23:33:39 +0200 )edit

You shouldn't have to or need to delete anything, just run the command and let tracker reindex everything, beyond that I have no idea. I hate giving this as a reply, but 'it works okay for me!'.

Spam Hunter ( 2016-11-09 13:43:30 +0200 )edit

@fmotl i thought it might be the m4a files but they play fine when selected directly from the file explorer and i also changed one album to mp3 with no luck, my music folders are as follows:

/sdcard.../Music/Artist/Album/.m4a files and album cover .jpg

DarkTuring ( 2016-11-10 18:53:21 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-11-11 06:54:50 +0200

DarkTuring gravatar image

updated 2016-11-14 01:58:36 +0200

Ok i figured it out. Its more like a how to know but i can answer my question after playing around with the tracker and music files and formats.


  1. i had a .nomedia file in the sd card music folder so the tracker ignored it, upon delete of .nomedia i had four of each song, album, pkaylist etc detected by the tracker and displayed in the Media app,

  2. in tracker settings (download app) i had to exclude all symlink paths pointing to the external SD Card, i had three symlinks, one in /nemo/Music(symlink) on in /android_storage/External_SD-Card(symlink) you get the idea, it causes the tracker to do the same job multiple times as if there were three SD cards,

  3. With that accomplished the tracker finds all songs correctly now, including mp3 and m4a songs, Song List with Artist

  4. Only mp3 files correctly identify artist and the respective album, i have 50 plus albums but only 14 are identified out of which the music files are in m4a format, required to update all music tags for artist, album, CD, collection using music tag editor,

  5. make sure permissions of all sd card external music files are set so android can make the changes, after tagging you can change it back to +rwX,

[root@localhost nemo]# chmod -R a+rwx /media/sdcard/02acca7a-3b1f-41d4-99b5-e05be52fc9ca/Music

  1. Purchase AutomaTag which automatically applies tags to MP3 or m4a files, it worked very well and at 3sec a song it took about 6 hours to auto tag my entire library, (btw this is somewhat strange because my iTunes library had fully tagged songs but apparently didnt save the tags in the actual music file)

  2. After completion run and wait a little bit:

[nemo@localhost ~]$ devel-su Password: [root@localhost nemo]# chmod -R a+rwX /media/sdcard/02acca7a-3b1f-41d4-99b5-e05be52fc9ca/Music

  1. Re-run tracker from utilities or command: tracker reset -r apparently adding tag information didnt work since m4a file tags are not recognized, so next step is to convert all m4a to mp3 using m4a to mp3 converter

Media player not reading tags properly

compared to Flowplayer from Warehouse:

Flowplayer correctly reading mp3 and m4a tags

Finally:

  1. Went to iTunes converted AAC to mp3 reimportet and Media native Sailfish app now detects Album and Artist meta tags correctly:

Native Media app sucess with mp3 file format only!

Happy now though:

Album List with art properly displayed.

edit flag offensive delete publish link more

Comments

I'd quite like to get indexing working for m4a/aac files if possible. Could you send me a sample please?

Andy Branson ( 2016-11-14 09:41:23 +0200 )edit

@Andy Branson what do you want a sample of?

DarkTuring ( 2016-11-15 07:41:13 +0200 )edit

One of the m4a files that you had to convert to mp3. Tracker should really detect m4a/aac files, unless they're DRMed of course.

Andy Branson ( 2016-11-15 09:08:54 +0200 )edit

There something in tracker "extractor" of m4a files so that it does not like iTunes files, if there is m4a file that indexes correctly it would be interesting to see one.

beeki ( 2016-11-15 16:42:22 +0200 )edit

@beeki ill ad a m4a sample album in this post as a zipped file

DarkTuring ( 2016-11-16 18:19:33 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-11-08 10:20:05 +0200

Seen: 1,124 times

Last updated: Nov 15 '16