toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
483 stars 36 forks source link

MP3 with chapters - encode to tags with chapters #174

Open henryk86 opened 6 months ago

henryk86 commented 6 months ago

It seems that some mp3 contains chapters. If I encode such mp3, it would be great I the taf had the same chapter structure too. Currently it’s a single track taf.

in the www I found the following regards mp3s and chapters…

ffmpeg -i <input.mp3> -f ffmetadata <output.txt>

if I remember correctly, teddycloud uses ffmpg also to encode the files? So would it be possible to enhance the encoder to that?

I can provide an example mp3 later.

SciLor commented 6 months ago

This may be a bit complicated, as the browser is used as decoder on the frontend, if using the cli ffmpeg

henryk86 commented 2 months ago

This might be a very specific implementation for only mp3 files. There could be additional problems as the 99 chapter limit by the box can be broken or the message to much chapters is appearing very late in the process… But in general it should be possible using special libraries which can parse the mp3 file.