Open gitoss opened 1 year ago
Thanks for helping out with the markdown code, I was just about to rtfm :-)
We have now sub element also in the text/tree/etc views, it was not the case when we implemented this version, so should be easier now. But it still makes thing slightly different compared to other parts (1 element = 1 item).
Right now I think more to something like:
<Chapter time="01:02:03.000">02. The Quest for JSON</Chapter>
But does not resolve the issue with multiple languages.
Right now I think more to something like
This would be fine if you want to stick to the 1 element rule.
For a more regular xml structure with a tag for the chapter name and chapter time code, you can have a look at the help file of the scripting language I use - which happen to have a xml sample that covers multiple languages: https://jpsoft.com/help/f_xmlgetattr.htm
Personally, I don't use multiple languages and haven't encountered multi-language chapter names yet - the simple ogg or cue chapter format is probably popular for a reason. Alas, if you want complicated, have a look at the matroska spec: https://www.matroska.org/technical/chapters.html
One big adavantage of MediaInfo over for example ffprobe is the structured XML/JSON output.
Unfortunately, the format sems to be lacking concering chapters. An example of the current output (XML flavor, JSON is about the same):
I'm unable to count the chapters, query the time codes and names - because the time codes are the key names, i.e. I have to know them which makes the whole exercise rather useless.
A usable format would be something like the OverDrive MediaMarkers (custom xml tags embedded in mp3 files). This is a structure I can xml query the number of elements inside the , and query each individual and
You could adapt something similar for MediaInfo, maybe with the language added somewhere if there are multi-language chapter names - see https://github.com/MediaArea/MediaInfo/issues/226