Storing RLE masks as box attributes is a nice way to deal with immutable masks in video sources because they are much more efficient to store and transmit.
Add a way for the video player to detect a box type has RLE attribute (likely a blob type) and display the mask in the image alongside the box.
Of note: the RLE attribute will be valid JSON, an example RLE encoded mask is
Storing RLE masks as box attributes is a nice way to deal with immutable masks in video sources because they are much more efficient to store and transmit.
Add a way for the video player to detect a box type has RLE attribute (likely a
blob
type) and display the mask in the image alongside the box.Of note: the RLE attribute will be valid JSON, an example RLE encoded mask is
where
A
is 0 andB
is 1. This allows the encoding to be stored in a UTF-8 compliant string.