sandreas / tone

tone is a cross platform audio tagger and metadata editor to dump and modify metadata for a wide variety of formats, including mp3, m4b, flac and more. It has no dependencies and can be downloaded as single binary for Windows, macOS, Linux and other common platforms.
https://pilabor.com
Apache License 2.0
410 stars 17 forks source link

Incorrect Next track ID after import chapters #51

Open L2501 opened 1 year ago

L2501 commented 1 year ago

in movie header atom after tagging chapters to m4b file the Next track ID is incorrectly set to "2" but ID 2 is already in use.

mediainfo --Details=10 file.m4b | grep "k ID"

0000008C   Next track ID:                        2 (0x00000002)
000000AC    Track ID:                            1 (0x00000001)
008995BD    Track ID:                            2 (0x00000002)

Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-32947

sandreas commented 1 year ago

Thanks for reporting. I have to show this to the atldotnet maintainer, this may be fixed in a recent version.

sandreas commented 1 year ago

@L2501 Mmh I was not able to reproduce this. Could you help me out with a (smallish) file and the according command that produces this problem?

L2501 commented 1 year ago

import from the mp4v2 format, any file should do tone tag file.m4b --meta-chapters-file file.chapters.txt

L2501 commented 1 year ago

@sandreas https://mega.nz/file/UiAVnKyK#A8AvSDr_k8u5LsBljLy4UmFcOCZ7-kh02LUTlLd3o-s

sandreas commented 1 year ago

@L2501 Thanks, I'll take a look as soon as possible, but maybe we have to redirect this to atldotnet / @Zeugma440, I'll keep you up to date.