MPEGGroup / FileFormat

MPEG file format discussions
20 stars 0 forks source link

Encrypted and restricted SampleEntry classes #80

Open podborski opened 10 months ago

podborski commented 10 months ago

Currently the 8th edition lists Protected sample entry codes in Table 7 and Restricted sample entry codes in Table 8.

For text SimpleTextSampleEntry is mentioned as the sample entry class in both enct and rest.

For subtitles XMLSubtitleSampleEntry is mentioned encu and resu.

As I mentioned in this discussion https://github.com/MPEGGroup/FileFormatConformance/issues/64#issuecomment-1702018852 should this be more generic?

E.g. XMLSubtitleSampleEntry -> SubtitleSampleEntry and SimpleTextSampleEntry -> PlainTextSampleEntry?

cconcolato commented 6 days ago

We note that the tables have been renumbered (Table 13 and Table 14). Today's design is such that when you encounter an encrypted sample entry, from the 4CC you should know how many bytes you have to skip to start parsing "boxes" and find the OriginalFormatBox. An alternative may need sniffing the other boxes. We note that the encryption of metadata tracks points to the base sample entry type. We welcome contributions to address this issue, e.g. notes telling players how to behave or use the reserved in the base SampleEntry class to point to the OriginalFormatBox.