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
| | |-+  Bookmark (.bmark) file format
« previous next »
  • Print
Pages: [1]

Author Topic: Bookmark (.bmark) file format  (Read 2281 times)

Offline alewbail

  • Member
  • *
  • Posts: 3
Bookmark (.bmark) file format
« on: November 10, 2009, 04:34:01 PM »
Is there a description of the '.bmark' file format somewhere?  I want to build a '.bmark' file using my own home-built utility, but can't find a description.  I can see that each line describes one bookmark, and have been able to figure out some of the entries on the line.  Each line is of the form

<a>;<b>;<c>;<d>;<e>;<f>;<g>;<h>;<i>

where

<a> is the item number in the playlist (starting from zero)
<b> is ?
<c> is ?
<d> is ?
<e> is the timestamp of the bookmark, in milliseconds
<f> is ?
<g> is ?
<h> is the playlist name or folder path
<i> is the filename

I'm looking for help with the remaining "?" items.  Thanks.

[P.S. Is there documentation showing the format of all the various RockBox-related files?  Is it all in one place?  I know there are such descriptions of the '.cfg' and '.wps' files in the User's Manual, but I'm wondering about the more obscure ones, like '.m3u8', '.bmark', and '.tcd'.]
Logged
Al Lewis

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Bookmark (.bmark) file format
« Reply #1 on: November 10, 2009, 05:05:38 PM »
m3u8 is a utf8 encoded m3u file, and is a standard playlist format.

The others aren't documented that I know of, except for in the code.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline mc2739

  • Developer
  • Member
  • *
  • Posts: 262
Re: Bookmark (.bmark) file format
« Reply #2 on: November 10, 2009, 11:24:25 PM »
Quote from: alewbail on November 10, 2009, 04:34:01 PM
Is there a description of the '.bmark' file format somewhere?

If you want to look at the code, you might try apps/bookmark.c around line 208.
Logged

Offline alewbail

  • Member
  • *
  • Posts: 3
Re: Bookmark (.bmark) file format
« Reply #3 on: November 11, 2009, 11:02:11 AM »
After reviewing "bookmark.c" and a couple other routines, here is an updated definition:

<a>;<b>;<c>;<d>;<e>;<f>;<g>;<h>;<i>

where

<a> is the item number in the playlist or folder (starting from zero)
<b> is the "resume offset": bookmark 'time' in bytes
                                     (bytes from the beginning of the file)
<c> is the "resume seed": (?)
<d> is the "resume first index": (?)
<e> is the timestamp of the bookmark, in milliseconds
<f> is the repeat mode flag (0=no,1=?,2=?,...)
<g> is the shuffle flag (0=no,1=yes)
<h> is the playlist name or folder path
<i> is the filename

Although there are still a couple items I don't understand ("resume seed", "resume first index"), this should give me enough information to proceed.

Thanks for the help.
Logged
Al Lewis

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Bookmark (.bmark) file format
« Reply #4 on: November 11, 2009, 11:18:44 AM »
Resume seed will be the seed value used for the shuffle, so that the playlist remains in the same shuffled order on resume.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline alewbail

  • Member
  • *
  • Posts: 3
Re: Bookmark (.bmark) file format
« Reply #5 on: November 11, 2009, 01:30:02 PM »
And I suppose "resume first index" might be the track on which the shuffled playlist started?  Just a guess.
Logged
Al Lewis

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bookmark (.bmark) file format
« Reply #6 on: November 11, 2009, 05:30:35 PM »
what do you actually want to do?
you can probably get away with c,d being 0's as long as shuffle mode is off...
the repeat mode order will be the same as in the setting


edit: .m3u8 is just a m3u saved in utf-8 encoding.
.tcd is magic... I think there is some documentation on the wiki thugh for it.. otherwsie apps/tagcache.c
« Last Edit: November 11, 2009, 05:32:19 PM by JdGordon »
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Bookmark (.bmark) file format
« Reply #7 on: November 12, 2009, 08:07:09 AM »
"Resume first index" is no longer used and is always saved as 0.

And no, I don't know what it was used for. :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Bookmark (.bmark) file format
 

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

Page created in 0.1 seconds with 16 queries.