Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Sorting Database by disc number
« previous next »
  • Print
Pages: [1]

Author Topic: Sorting Database by disc number  (Read 1740 times)

Offline colonel32

  • Member
  • *
  • Posts: 4
Sorting Database by disc number
« on: August 17, 2010, 04:21:42 PM »
Rockbox 3.6
iPod 5g
240Gb disk
iTunes 6.0.5 OS X (PPC).

I use iTunes to sync my iPod, which works beautifully on v6, even when the iPod is booted into Rockbox. I am fixed on v6 for several reasons, not the least of which is that any later version has always given errors when syncing (while booted into the apple firmware) on second and subsequent times, ever since I bought the iPod 5 years ago.

I tag all of my albums using iTunes. Those albums with multiple discs are tagged (for example):

Track 1 of 3, Disc 1 of 2
Track 2 of 3, Disc 1 of 2
Track 3 of 3, Disc 1 of 2
Track 1 of 4, Disc 2 of 2
Track 2 of 4, Disc 2 of 2
Track 3 of 4, Disc 2 of 2
Track 4 of 4, Disc 2 of 2

When booted into the apple firmware, these albums play in the intended order. But when accessed through the Rockbox database, all the track 1s play first, followed by all the track 2s, etc.

As far as I can tell by reading around, Rockbox 3.6 should not be doing this, as the default sort string is set up for single digit disc numbers and double digit track numbers. Am I correct?

Which makes me think iTunes is not setting the same tags that Rockbox is looking for. Is there a program (either Mac or Windows) which will display the raw tags, including both the tag names and values? And what tag names should be set in order for the database to sort them properly?

This is purely a database issue, as File browsing does not really work with iTunes-synced content. As you may know, iTunes distributes music randomly into three character folders and four character files, e.g. F01/FECK.mp3, F03/ARSE.mp3 and so on.

Or am I on the wrong track? Should I instead be trying to set a custom sort string? Not at all sure how to do this without some help, though.
Logged

Offline colonel32

  • Member
  • *
  • Posts: 4
Re: Sorting Database by disc number
« Reply #1 on: September 06, 2010, 11:28:45 AM »
Does nobody have any advice about this? It seems very odd that I'm the only person hitting the problem.

I started to retag all my albums so they were single disc, but it's so destructive to the tags I'm really reluctant to do it.

Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Sorting Database by disc number
« Reply #2 on: September 06, 2010, 11:42:23 AM »
If you insert a multi-disc album that is tagged properly, it should populate the playlist in the order you expect.  You do not need to tag all as a single album.

I can't recommend a specific tagging application (since I don't use OSX), but all of the ones that are dedicated to this task have worked acceptably in my experience.  iTunes, in my experience, will sometimes write info to its iTunesDB rather than changing the metadata in the files themselves.  It's possible that you are running into this.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline colonel32

  • Member
  • *
  • Posts: 4
Re: Sorting Database by disc number
« Reply #3 on: September 28, 2010, 03:22:00 PM »
Thanks for the pointers Chronon. I've now established that iTunes is writing to the file's id3 tag rather than the iTunesDB, and it is apparently using a standard id3v2.2 tag.

Using ID3 Raw Tag Viewer I can see that the bad tag generated by iTunes uses the ID3v2.2 tag TPA, and looks like this:



Multi-disc albums with these style tags sort and display like this in the Rockbox database browser:

01. Disc One's First Track - mm:ss
01. Disc Two's First Track - mm:ss
02. Disc One's Second Track - mm:ss
02. Disc Two's Second Track - mm:ss
etc

If I re-tag copies of the same files with Tag & Rename, it looks like this in ID3 Raw Tag Viewer, it uses the good id3v2.3 tag TPOS:



And then displays and sorts properly, like this:

1.01. Disc One's First Track - mm:ss
1.02. Disc One's Second Track - mm:ss
2.01. Disc Two's First Track - mm:ss
2.02. Disc Two's Second Track - mm:ss
etc

As far as I can find, Rockbox claims to support both id3v2.2 and id3v2.3 tags. So what is happening here?

Is the TPA tag somehow malformed? Can anyone confirm or deny this from the hex example?

Or is it a valid tag but the Rockbox id3v2.2 parser can't cope with it?

Happy to supply example files on request if anyone wants to test themselves.

I really, really don't want to have to retag many thousands of existing files, and switch to using a different file tagger just because of this. Unless I absolutely have to after exhausting other possibilities!
« Last Edit: September 28, 2010, 03:25:51 PM by colonel32 »
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Sorting Database by disc number
« Reply #4 on: September 28, 2010, 03:40:21 PM »
Try build r28181. I've added support for TPA to the id3 parser.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline colonel32

  • Member
  • *
  • Posts: 4
Re: Sorting Database by disc number
« Reply #5 on: September 28, 2010, 04:30:14 PM »
Yes, r28181 has fixed the problem. Thanks torne, you are a star!

By the way I love your automated build system - new builds for every platform after every new revision: awesome!  8)
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Sorting Database by disc number
« Reply #6 on: September 28, 2010, 05:25:53 PM »
We thank you, rather, since your tests above showed exactly what was wrong and let us fix it for everyone. Also for testing it, since I didn't :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Sorting Database by disc number
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.079 seconds with 16 queries.