-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saving image to m4b removes chapter marks #45
Comments
Can you share a file to reproduce the issue? |
The file I was doing this on is copyrighted and rather large. I will try to chop a piece off and create a small dummy/test for you later today. What is the best way to share it? I can also provide the steps I was using to create the file. I am converting audio book cd's to m4b via an ffmpeg script I wrote and inserting the chapter marks/titles also via ffmpeg then was going to use your program to insert the cover art via command line since ffmpeg has an outstanding bug where it wont insert cover art last I checked and the suggestion was to use your program as a workaround. |
Sounds good. If the M4A file is the output of ffmpeg, you can also just send me the ffmpeg command to run. The original audio source shouldn't matter much except you're using |
Sure Create file: When inserting the album art via tageditor I've tried both with the gui and using tageditor -s cover=cover.jpg --max-padding 100000 -f book.m4b Both methods insert the cover art and kill the chapter marks. |
Just to be sure I tried this with another audio file and a new metadata file and cover art and it still did the same thing. |
Ok, I'll do some tests when I have time. |
i don't get |
I tried it on 3 different files the 2nd one did not generate the warning but did kill the chapters. Just to be sure it wasn't size or tons of chapters I just created a small file tried again with the same results. I have attached this file with chapters. Insert any 500x500 jpg for the art. I did notice I am getting this diagnostic message Parsing chapters is not implemented for the container format of the file. parsing chapters |
I can not reproduce the issue with your exact file. The diagnostic message 'Parsing chapters is not implemented for the container format of the file.' is only info-level and can be ignored. It just means the chapters can not be displayed within the tag editor but of course they should still be preserved like every other aspect of the file which is unknown to the implementation. |
I am loading it up into iTunes. Before hand there is a chapters menu and i can jump around chapters. Afterwards no menu and chapters are not displayed nor can I select them. I have not tried it on my iPhone but I expect the results to be the same. |
I don't use iTunes. Strange that it can not display the chapters of a file processed by the tag editor while VLC, Media Info and ffprobe still can. Seems like a limitation in iTunes too me. What happens if you remove the cover again? If iTunes shows then the menue again we know that no information is lost when the tag editor applies changes and only iTunes can not handle such files. What happens if your add the cover using iTunes itself? It shouldn't produce a file it can not handle itself so we would know what the expected file structure is. |
Removing the cover art does not make the chapters work again. Adding the cover art via iTunes works and keeps the chapters intact. I also tested on my iPhone and after adding cover art via tageditor chapters no longer work on it either. I see what you mean about ffprobe though. I do see them listed both before and after... |
Can you share that "intact" file produced by iTunes to know what we're aiming for? |
River2.zip |
Thanks for providing that file. Apparently the I also noticed that the order of the atoms |
Does the following file work in iTunes? RiverTagged.zip If it does I have a fix :-) |
It shows a cover but no chapters. Is there a new version I should try? |
Then there's likely also some other element missing.
You would have to build the application with commit Martchus/tagparser@2d306b1 yourself if you wanted to test it yourself. |
Maybe it is the order of the elements. Does the following file work in iTunes? RiverTagged2.zip |
Maybe it helps with Martchus/tageditor#45
No same thing. Unfortunately no way for me to build or I'd try it locally. |
Developing this is a little bit trail and error. So does the following file work in iTunes? RiverTagged3.zip I've noticed that the tag editor discards a certain atom due to a bug. Maybe iTunes does not like that, too. By the way, the bug I've found know is not limited to the iTunes and chapters. So thanks for reporting - it already helps me to improve.
Likely not worth the effort anyways (unless you really want to help me coding C++). |
No sadly still the same results. I "sorta" gave up on C++ I sucked at pointers sadly (and played too many games in school lol) more of a C# dabbler but very much a hobby. I do appreciate you looking at this and I'm willing to try as many versions as needed just unfortunate our time zones only permit 1 try a day usually. |
Provides iTunes any parsing errors/warnings? And is something else broken with the file, e.g. track durations not shown or tracks completely missing? Because the only difference I still see is that the tag editor uses a newer version of the I could let the tag editor write version 0 as well for better compatibility (unless version 1 is required). |
HHG.zip You might be on to something I noticed when I edited some tracks in mp3tag that several fields were not where I was expecting after updating first in iTunes then in mp3tag... meaning the tags all showed up with what I had edited into each but only in the fields I had entered in each one (program) its possible iTunes was using one version of the tag and mp3tag another. |
Seems like my tag editor sets the wrong track type for those chapter tracks. This is actually visible in MediaInfo as well. But the following file should be fixed - at least considering MediaInfo: RiverTagged4.zip Does it also work in iTunes? |
We have a winner! That one works. Chapters and cover art show up. |
Any eta on a release with the fix? |
v3.2.1 which was released 2 days ago should have the fix. |
Oops forgot to recheck ha! New version seems to do the trick. Loaded up a full chapterized book, put in the metadata and cover art and it kept the chapters and performs as expected. Thanks for all the work! |
M4b with chapter marks in it has them removed when using tageditor to save cover art to it. I don't know if the warning I get has anything to do with it but I get this
Warning 02:49:59 making mdhd atom: Assigned language "" is of an invalid format and will be ignored.
If I resort to adding the artwork via iTunes it works fine and chapters are retained.
The text was updated successfully, but these errors were encountered: