n10v / id3v2

🎵 ID3 decoding and encoding library for Go
https://pkg.go.dev/github.com/bogem/id3v2/v2
MIT License
337 stars 52 forks source link

add ChapterFrame type for CHAP frames #40

Open cnt0 opened 5 years ago

cnt0 commented 5 years ago

Add CHAP frames parser according to id3v2 documentation. It recognizes only one TIT2 embedded subframe and treats it like a title, which is enough to parse titles added by ffmpeg (example from ffmpeg documentation).

There's also one issue: this parser uses 2 functions, writeFrame and parseFrameHeader, with synchSafe parameter. From what I see there's no way to correctly determine its value when parsing subframe.

n10v commented 5 years ago

Hello @cnt0! Thank you for your PR, but the implementation is not quite correct. As it said in documentation, there could be many embedded subframes in CHAP. The main goal of this library is not a cooperation of ffmpeg, but correct full implementation of id3 spec.

And also tests lack, that is very important.