Method and apparatus for signaling CMAF switching sets in ISOBMFF
Method, apparatus, and system for encoding or decoding media are provided. The process may include obtaining a track group entry box from an ISO base media file format (ISOBMFF) track associated with a video data. It may also include obtaining a first track among the one or more tracks in the CMAF switching set associated with the video data that has a first alternative group parameter and obtaining a second track associated with the video data that has a second alternative group parameter. The second alternative group parameter and the first alternative group parameter may have a same value. The process may also include decoding the video data based on the first track or the second track in the CMAF switching set.
1. A method for decoding media, the method being performed by at least one processor, the method comprising:
obtaining, from an ISO base media file format (ISOBMFF) track associated with a video data, a track group entry box,
wherein the track group entry box indicates one or more tracks in a common media application format (CMAF) switching set associated with the video data,
wherein the CMAF switching set indicates one or more tracks comprising alternative representations of the video data, and
wherein the track group entry box comprises one or more CMAF switching set characteristics associated with the video data;
obtaining a first track among the one or more tracks in the CMAF switching set associated with the video data,
wherein the first track comprises a first alternative group parameter indicating which CMAF switching set the first track belongs to;
obtaining a second track among the one or more tracks in the CMAF switching set associated with the video data,
wherein the second track comprises a second alternative group parameter, and
wherein the second alternative group parameter and the first alternative group parameter have a same value; and
decoding the video data based on the first track or the second track in the CMAF switching set.
2. The method of claim 1 , wherein the one or more CMAF switching set characteristics in the track group entry box comprise:
a first track group id parameter that indicates an id of the track group entry box,
wherein the first track group id parameter is used to determine the one or more tracks in the CMAF switching set;
wherein a value of the first track group id parameter is same as the value of respective alternative group parameters for the one or more tracks in the CMAF switching set;
a track number parameter that indicates a total number of tracks in the CMAF switching set; and
a principal id that indicates a track id containing a principal header for the CMAF switching set.
3. The method of claim 2 , wherein the one or more CMAF switching set characteristics in the track group entry box further comprise:
an alignment parameter that indicates whether the one or more tracks in the CMAF switching set are time aligned;
a structural band parameter that indicates a CMAF structural band the one or more tracks in the CMAF switching set belong to; and
a media profile band parameter that indicates a CMAF file band of a media profile the one or more tracks in the CMAF switching set belong to.
4. The method of claim 1 , wherein each track in the one or more tracks in the CMAF switching set has a respective alternative group parameter equal to a first track group id parameter of the CMAF switching set the one or more tracks belong to.
5. The method of claim 1 , wherein the second track comprises a preselection box, and the method further comprising:
obtaining a third track associated with the video data,
wherein the third track is a track in a preselection track set, and
wherein the third track comprises the preselection box indicating that the third track is one of a plurality of preselection tracks; and
wherein the decoding the video data is based on the plurality of the preselection tracks and the CMAF switching set.
6. The method of claim 5 , wherein the decoding the video data based on the plurality of the preselection tracks and the CMAF switching set comprises decoding based on the first track and the third track or the second track and the third track.
7. The method of claim 6 , wherein each track among the plurality of the preselection tracks comprises a preselection track box, and wherein each track among the plurality of the preselection tracks has a same value of a second track group id parameter.
8. An apparatus for decoding media, the apparatus comprising:
at least one memory storing computer code; and
at least one processor configured to access the computer code and operate as instructed by the computer code, the computer code including:
first obtaining code configured the cause the at least one processor to obtain, from an ISO base media file format (ISOBMFF) track associated with a video data, a track group entry box,
wherein the track group entry box indicates one or more tracks in a common media application format (CMAF) switching set associated with the video data,
wherein the CMAF switching set indicates one or more tracks comprising alternative representations of the video data, and
wherein the track group entry box comprises one or more CMAF switching set characteristics associated with the video data;
second obtaining code configured the cause the at least one processor to obtain a first track among the one or more tracks in the CMAF switching set associated with the video data,
wherein the first track comprises a first alternative group parameter indicating which CMAF switching set the first track belongs to;
third obtaining code configured the cause the at least one processor to obtain a second track among the one or more tracks in the CMAF switching set associated with the video data,
wherein the second track comprises a second alternative group parameter, and
wherein the second alternative group parameter and the first alternative group parameter have a same value; and
first decoding code configured the cause the at least one processor to decode the video data based on the first track or the second track in the CMAF switching set.
9. The apparatus of claim 8 , wherein the one or more CMAF switching set characteristics in the track group entry box comprise:
a first track group id parameter that indicates an id of the track group entry box,
wherein the first track group id parameter is used to determine the one or more tracks in the CMAF switching set;
wherein a value of the first track group id parameter is same as the value of respective alternative group parameters for the one or more tracks in the CMAF switching set;
a track number parameter that indicates a total number of tracks in the CMAF switching set; and
a principal id that indicates a track id containing a principal header for the CMAF switching set.
10. The apparatus of claim 9 , wherein the one or more CMAF switching set characteristics in the track group entry box further comprise:
an alignment parameter that indicates whether the one or more tracks in the CMAF switching set are time aligned;
a structural band parameter that indicates a CMAF structural band the one or more tracks in the CMAF switching set belong to; and
a media profile band parameter that indicates a CMAF file band of a media profile the one or more tracks in the CMAF switching set belong to.
11. The apparatus of claim 9 , wherein the second track comprises a preselection box, and wherein the computer code further comprises:
fourth obtaining code configured the cause the at least one processor to obtain a third track associated with the video data,
wherein the third track is a track in a preselection track set, and
wherein the third track comprises the preselection box, indicating that the third track is one of a plurality of preselection tracks; and
wherein the first decoding code comprises decoding the video data is based on the plurality of the preselection tracks and the CMAF switching set.
12. The apparatus of claim 11 , wherein the first decoding code comprises decoding the video data based on the first track and the third track or the second track and the third track.
13. The apparatus of claim 12 , wherein each track among the plurality of the preselection tracks comprises a preselection track box, and wherein each track among the plurality of the preselection tracks has a same value of a second track group id parameter.
14. The apparatus of claim 8 , wherein each track in the one or more tracks in the CMAF switching set has a respective alternative group parameter equal to a first track group id parameter of the CMAF switching set the one or more tracks belong to.
15. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause the at least one processor to:
obtain, from an ISO base media file format (ISOBMFF) track associated with a video data, a track group entry box,
wherein the track group entry box indicates one or more tracks in a common media application format (CMAF) switching set associated with the video data,
wherein the CMAF switching set indicates one or more tracks comprising alternative representations of the video data, and
wherein the track group entry box comprises one or more CMAF switching set characteristics associated with the video data;
obtain a first track among the one or more tracks in the CMAF switching set associated with the video data,
wherein the first track comprises a first alternative group parameter indicating which CMAF switching set the first track belongs to;
obtain a second track associated with the video data,
wherein the second track comprises a second alternative group parameter, and
wherein the second alternative group parameter and the first alternative group parameter have a same value; and
decode the video data based on the first track or the second track in the CMAF switching set.
16. The non-transitory computer-readable medium of claim 15 , wherein the one or more CMAF switching set characteristics in the track group entry box comprise:
a first track group id parameter that indicates an id of the track group entry box,
wherein the first track group id parameter is used to determine the one or more tracks in the CMAF switching set;
wherein a value of the first track group id parameter is same as the value of respective alternative group parameters for the one or more tracks in the CMAF switching set;
a track number parameter that indicates a total number of tracks in the CMAF switching set; and
a principal id that indicates a track id containing a principal header for the CMAF switching set.
17. The non-transitory computer-readable medium of claim 16 , wherein the one or more CMAF switching set characteristics in the track group entry box further comprise:
an alignment parameter that indicates whether the one or more tracks in the CMAF switching set are time aligned;
a structural band parameter that indicates a CMAF structural band the one or more tracks in the CMAF switching set belong to; and
a media profile band parameter that indicates a CMAF file band of a media profile the one or more tracks in the CMAF switching set belong to.
18. The non-transitory computer-readable medium of claim 15 , wherein each track in the one or more tracks in the CMAF switching set has a respective alternative group parameter equal to a first track group id parameter of the CMAF switching set the one or more tracks belong to.
19. The non-transitory computer-readable medium of claim 15 , wherein the second track comprises a preselection box, and the instructions further cause the at least one processor to:
obtain a third track associated with the video data,
wherein the third track is a track in a preselection track set, and
wherein the third track comprises the preselection box indicating that the third track is one of a plurality of preselection tracks; and
wherein the decoding the video data is based on the plurality of the preselection tracks and the CMAF switching set.
20. The non-transitory computer-readable medium of claim 19 , wherein the decoding the video data based on the plurality of the preselection tracks and the CMAF switching set comprises decoding based on the first track and the third track or the second track and the third track.