Trying to solve bug 240409

Abhinandan Ramprasath abhiin1947 at gmail.com
Tue Feb 19 07:57:58 UTC 2013


This is what I've got so far,

1) mp4v2-2.0.0 supports chapters in mp4 files(mentioned on comment 2). The
format for chapter storage is specified between lines 2321 and 2375 under
src/mp4file.cpp (
http://code.google.com/p/mp4v2/downloads/detail?name=mp4v2-2.0.0.tar.bz2 ) .

2) comment 2 in https://bugs.kde.org/show_bug.cgi?id=240409 mentions that
the dependency was removed. Is it safe for me to add it back?

3) I cross checked the format of chapter storage with a simple cpp program
I wrote and got the titles of all chapters as output. But that was just
using a regex and I'm not too sure that would be accepted as a solution.

4) An Issue was filed for TagLib
https://github.com/taglib/taglib/issues/81 asking
to expand support for chapters in mp3 files, which sadly, hasn't been
solved yet. Unfortunately, I wasn't able to find anything similar for mp4.

On Tue, Feb 19, 2013 at 1:35 AM, Matěj Laitl <matej at laitl.cz> wrote:

> On 19. 2. 2013 Abhinandan Ramprasath wrote:
> > To solve the bug https://bugs.kde.org/show_bug.cgi?id=240409,
>
> Bug 240409 - be warned that it may turn out harder than expected, I dunno
> who
> marked it as a junior job. ;)
>
> > I was
> > thinking I could create a MultiTrack (Meta::MultiTrack) list with all the
> > chapters in a list one below the other and setting offsets to each
> chapter
> > in the m4b file(which I still haven't figured out how).
>
> I don't think MultiTrack would be necessary, see below.
>
> > 1) The supported filetypes does not include ".m4b" format listed, should
> I
> > add it to the list?
>
> Not needed, .m4b is just a different extension for the .m4a type and
> shares the
> same mime-type.
>
> > 2) Does the Meta::Track class have a base file, offset support(because I
> > couldn't find any)?
>
> No, and it shouldn't be need.
>
> > 3) How does the "bookmark" feature work? can I use those functions to
> > implement chapters?
>
> Definitely. I think the best approach is already outlined on the bug in
> comment
> #4: https://bugs.kde.org/show_bug.cgi?id=240409#c4
>
> The biggest problem seems to be reading the chapter offsets from the .m4b
> files,
> you may want to make some research how these are stored and how they can be
> read - Amarok uses TagLib exclusively for metadata extraction, so
> preferably
> TagLib-based solution could be found.
>
> If you don't find a feasible solution to read the chapters after reasonable
> time invested, you may want to consider picking another junior-job that is
> actually "junior".
>
I'm learning a lot, so I think I'll stick with this for a while ;)

>
>         Matěj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20130219/9817729c/attachment.html>


More information about the Amarok-devel mailing list