TheMetalCenter / m4b-mp3-chapters-from-cuesheets

merge audiobooks or podcasts without re-encoding (remuxing only) to single m4b with quicktime/nero chapters or mp3 with id3v2 chapters using cuesheets; also allows for renaming/editing chapters
23 stars 0 forks source link

MP3 files with other 50 chapters and/or 90000000 in ffmetadata will lose chapters upon editing metadata #1

Closed TheMetalCenter closed 2 years ago

TheMetalCenter commented 2 years ago

Found a mp3 that has over 50 chapters, but only up to 4.9 x 10^7, so suggests it has to do with being over 9 x 10^7 than number of chapters

TIMEBASE=1/1000 START=48513001 END=49101010 title=Chapter 57

TheMetalCenter commented 2 years ago

Tested with 64 chapter but still in 4e7 range, still removed chapters and other metadata. So something about my ffmpeg method makes 50+ chapters not work.

TheMetalCenter commented 2 years ago

ffmpeg -i input.mp3 -f ffmetadata -i metadata.txt -map_metadata 0 -id3v2_version 3 -map_chapters 1 -c copy output.mp3

Need more testing to confirm but this seems to solve the issue, switching to id3v2.3 tags.

TheMetalCenter commented 2 years ago

Confirmed with a 62 chapter, 63 hour book. No issues with metadata being removed and chapter read by audiobook player.