Method, device, and computer program for dynamically encapsulating media content data
A method for encapsulating media data, the method comprising: identifying, according to a parameter independent from the encapsulation, a portion of the media data or a set of items of information related to a portion of the media data, and encapsulating the portion of media data or the set of items of information as entities in a media file, the entities being grouped into a set of entities associated with a first indication representative of the parameter, wherein the media file comprises a second indication signalling to a client that the set of entities is to be parsed only if the client has knowledge about the first indication.
1 . A method for encapsulating media data comprising a plurality of samples, the method being carried out by a file generating device and comprising:
generating at least one track including the plurality of samples;
generating a first sample group description describing a processing order of 1) at least one transformation and/or 2) at least one second sample group description, the at least one transformation and/or the at least one second sample group description being applied before or after processing or decoding at least one sample of the at least one track, the first sample group description being associated with the at least one track; and
encapsulating the at least one track and the first sample group description in a media file,
wherein the media file comprises an indication signalling to a file reading device that the at least one track is not to be processed in a case where the file reading device does not recognize the second sample group description.
2 . The method of claim 1 , wherein the processing order is described as an ordered list of values comprising a type value of the at least one transformation and/or second sample group description.
3 . The method of claim 2 , wherein the ordered list further comprises a value indicating the position of a decoding process in a transformation chain comprising the at least one transformation and/or the at least one second sample group description.
4 . The method of claim 3 , wherein the ordered list further comprises a value indicating the position of a content protection removal in the transformation chain.
5 . The method of claim 2 , wherein when the ordered list does not comprise a value indicating the position of a decoding process, all of the at least one transformation and/or at least one second sample group description apply to decoded samples.
6 . The method of claim 2 , wherein each value in the ordered list of values is a four-character code.
7 . The method of claim 1 , wherein the first sample group description is associated with an indication signalling to the file reading device that the at least one track is not to be processed in a case where the file reading device does not recognize the first sample group description.
8 . The method of claim 1 , wherein the media file is described with a MIME type having a parameter comprising a type value of at least one of the transformations and/or second sample group descriptions.
9 . A method for processing encapsulated media data comprising at least one track including a plurality of samples, the method being carried out by a file reading device and comprising:
obtaining the at least one track to be processed;
obtaining, from the encapsulated media data, a first sample group description describing a processing order of 1) at least one transformation and/or 2) at least one second sample group description, the at least one transformation and/or the at least one second sample group description being applied before or after processing or decoding at least one sample of the at least one track, the first sample group description being associated with the at least one track;
obtaining, from the encapsulated media data, the first sample group description;
determining that the encapsulated media data comprises an indication signalling that the at least one track is to be processed in a case where the file reading device recognizes the second sample group description, and
in a case where the file reading device does not recognize the second sample group description, ignoring the at least one track when processing the encapsulated media data.
10 . The method of claim 9 , wherein the processing order is described as an ordered list of values comprising a type value of the at least one transformation and/or second sample group description.
11 . The method of claim 10 , wherein the ordered list further comprises a value indicating the position of a decoding process in a transformation chain comprising the at least one transformation and/or the at least one second sample group description.
12 . The method of claim 11 , wherein the ordered list further comprises a value indicating the position of a content protection removal in the transformation chain.
13 . The method of claim 10 , wherein when the ordered list does not comprise a value indicating the position of a decoding process, all of the at least one transformation and/or at least one second sample group description apply to decoded samples.
14 . The method of claim 9 , wherein the first sample group description is associated with an indication signalling to the file reading device that the at least one track is not to be processed in a case where the file reading device does not recognize the first sample group description.
15 . The method of claim 9 , wherein the media file is described with a MIME type having a parameter comprising a type value of at least one of the transformations and/or second sample group descriptions.
16 . A non-transitory computer-readable storage medium storing instructions of a computer program for implementing the method according to claim 1 .
17 . A file generating device comprising a processing unit configured for carrying out a method for encapsulating media data comprising a plurality of samples, the file generating device comprising:
at least one processor; and
at least one memory in communication with the at least one processor, the at least one memory including computer-readable instructions stored thereon that, when executed by the at least one processor, cause the generating device to:
generate at least one track including the plurality of samples;
generate a first sample group description describing a processing order of 1) at least one transformation and/or 2) at least one second sample group description, the at least one transformation and/or the at least one second sample group description being applied before or after processing or decoding at least one sample of the at least one track, the first sample group description being associated with the at least one track; and
encapsulate the at least one track and the first sample group description in a media file,
wherein the media file comprises an indication signalling to a file reading device that the at least one track is not to be processed in a case where the file reading device does not recognize the second sample group description.
18 . A file reading device comprising a processing unit configured for carrying out a method for processing encapsulated media data comprising at least one track including a plurality of samples, the file reading device comprising:
at least one processor; and
at least one memory in communication with the at least one processor, the at least one memory including computer-readable instructions stored thereon that, when executed by the at least one processor, cause the file reading device to:
obtain the at least one track to be processed;
obtain, from the encapsulated media data, a first sample group description describing a processing order of 1) at least one transformation and/or 2) at least one second sample group description, the at least one transformation and/or the at least one second sample group description being applied before or after processing or decoding at least one sample of the at least one track, the first sample group description being associated with the at least one track;
obtain, from the encapsulated media data, the first sample group description;
determine that the encapsulated media data comprises an indication signalling that the at least one track is to be processed in a case where the file reading device recognizes the second sample group description,
in a case where the file reading device does not recognize the second sample group description, ignoring the at least one track when processing the encapsulated media data.