sandreas / m4b-tool

m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
MIT License
1.12k stars 78 forks source link

Embed subtitles into m4b #220

Closed kanjieater closed 1 year ago

kanjieater commented 1 year ago

I was wondering if it's possible to embed a transcript of the audio into the m4b file using m4b-tool. I have an audiobook with corresponding SRT subtitle file that I would like to combine if possible.

sandreas commented 1 year ago

Interesting idea. There are several ways to achieve this, but unfortunately this feature is not integrated m4b-tool. I would try to go for Synchronized Lyrics, where you need the timestamp in the file and the according line in the text.

tone may have support for similar metadata (I would need to check) but definitely not via SRT file, this would have to be converted.

I'm still pretty sure that there are not many players supporting this kind of integration. What would you need this for?

kanjieater commented 1 year ago

Honestly it's not too much trouble to just have a srt file unembedded - so no pressure to implement something highly specific like this.

I use this for language learning with synchronized texts & audiobooks. MPV as well as players that allow for mp3s to play with sub files support this type of functionality already (animebook, absplayer, memento, etc)

I'll close this for now, as it was out of curiosity - but if someone else thinks this is worth discussing more we can open it.