Efficient streaming format
A streaming media system and streaming format that uses a streamlined JavaScript Object Notation (JSON) manifest to enable improved streaming performance over existing streaming formats. The JSON manifest includes global objects that define certain unique (e.g., non-redundant, non-duplicative) global parameters that can pertain to any or all of the audio/video segments, along with a corresponding unique identifier to refer to the global object. The JSON schema also includes respective local objects that define local parameters for each of the audio/video segments, including one or more parameters that refer to a global object using the unique identifier of the global object, as opposed to duplicating information of the global object within the audio/video information objects themselves. As such, the disclosed JSON manifest demonstrates a substantially smaller file size, substantially faster downloading and processing time, and substantially fewer objects being ingested during processing, relative to the manifests of other streaming formats.
1 . A playback device, comprising:
at least one memory configured to store a content player; and
at least one processor configured to execute stored instructions of the content player to perform actions comprising:
receiving a manifest associated with content, the manifest indicating audio/video segments of content to be played by the content player;
parsing the manifest to ingest a set of objects defining parameters of the content;
selecting a local audio segment information object from the set of objects, or a local video segment information object from the set of objects, or a combination thereof;
determining, at least one global object wherein the global object defines at least one parameter that is shared among a plurality of the audio/video segments along with a corresponding unique identifier of the global object associated with the selected local audio segment information object or associated with the selected local video segment information object via the unique identifier in the manifest;
selecting an audio segment of the content, a video segment of the content, or a combination thereof based on the determined at least one global object; and
presenting for playback the audio segment or the video segment by utilizing parameters defined by the at least one global object.
2 . The playback device of claim 1 , wherein the at least one processor is configured to determine the parameters defined by the at least one global object by:
determining, from the local audio segment information object or the local video segment information object, a digital rights management (DRM) information identifier;
determining, from the ingested set of objects, a global DRM information object associated with the DRM information identifier; and
utilizing the parameters defined by the global DRM information object to process the selected audio segment, or the selected video segment, or a combination thereof, for playback.
3 . The playback device of claim 2 , wherein the global DRM information object comprises:
the DRM information identifier;
a protection system specific header (PSSH); and
an encryption key identifier (KID).
4 . The playback device of claim 1 , wherein the at least one processor is configured to select the audio segment or the video segment of the content by:
determining a global audio timeline object, or a global video timeline object, or a combination thereof, from the ingested set of objects; and
selecting an audio segment identifier from a first array of audio segment identifiers of the global audio timeline object, or selecting a video segment identifier from a second array of video segment identifiers of the global video timeline object, or a combination thereof.
5 . The playback device of claim 4 , wherein the global audio timeline object comprises:
an audio timeline identifier that uniquely identifies the global audio timeline object; and
an array of audio segment identifiers, wherein each of the audio segment identifiers is associated with a respective local audio segment information object.
6 . The playback device of claim 4 , wherein the global video timeline object comprises:
a video timeline identifier that uniquely identifies the global video timeline object; and
an array of video segment identifiers, wherein each of the video segment identifiers is associated with a respective local video segment information object.
7 . The playback device of claim 1 , wherein the local audio segment information object comprises:
an audio segment identifier that uniquely identifies the local audio segment information object;
a DRM information identifier that refers to a global DRM information object that is associated with the local audio segment information object; and
an audio timeline identifier that refers to a global audio timeline object that is associated with the local audio segment information object.
8 . The playback device of claim 1 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
9 . The playback device of claim 1 , wherein the local video segment information object comprises:
a video segment identifier that uniquely identifies the local video segment information object;
a DRM information identifier that refers to a global DRM information object that is associated with the local video segment information object; and
a video timeline identifier that refers to a global video timeline object that is associated with the local video segment information object.
10 . A method, comprising:
receiving a manifest associated with content, the manifest indicating audio/video segments of content;
parsing the manifest to ingest a set of objects defining parameters of the content;
selecting a local audio segment information object from the set of objects, or a local video segment information object from the set of objects, or a combination thereof,
determining at least one global object wherein the global object defines at least one parameter that is shared among a plurality of the audio/video segments along with a corresponding unique identifier of the global object associated with the selected local audio segment information object or associated with the selected local video segment information object via the unique identifier in the manifest;
selecting an audio segment of the content, a video segment of the content, or a combination thereof based on the determined at least one global object; and
presenting for playback the audio segment or the video segment by utilizing parameters defined by the at least one global object.
11 . The method of claim 10 , comprising:
determining, from the local audio segment information object or the local video segment information object, a digital rights management (DRM) information identifier;
determining, from the ingested set of objects, a global DRM information object associated with the DRM information identifier; and
utilizing the parameters defined by the global DRM information object to process the selected audio segment, or the selected video segment, or a combination thereof, for playback.
12 . The method of claim 10 , wherein selecting the audio segment or the video segment of the content comprises:
determining a global audio timeline object, or a global video timeline object, or a combination thereof, from the ingested set of objects; and
selecting an audio segment identifier from a first array of audio segment identifiers of the global audio timeline object, or selecting a video segment identifier from a second array of video segment identifiers of the global video timeline object, or a combination thereof.
13 . The method of claim 10 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
14 . The method of claim 10 , wherein the local video segment information object comprises:
a video segment identifier that uniquely identifies the local video segment information object;
a DRM information identifier that refers to a global DRM information object that is associated with the local video segment information object; and
a video timeline identifier that refers to a global video timeline object that is associated with the local video segment information object.
15 . A method, comprising:
parsing a Dynamic Adaptive Streaming over HTTP (DASH) or HTTP Live Streaming (HLS) manifest associated with content to ingest objects respectively associated with audio segments of the content, video segments of the content, or a combination thereof;
identifying, within the ingested objects, at least one parameter that is redundantly defined for more than one of the audio segments or more than one of the video segments;
generating, in a schema, a global object defining the at least one parameter that is shared among a plurality of the audio segments of the content, the video segments of the content, or the combination thereof, along with a corresponding unique identifier of the global object;
generating, in the schema, at least one local object defining an identifier parameter that references the global object using the corresponding unique identifier of the global object; and
outputting the schema as a manifest for the content.
16 . The method of claim 15 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
17 . The method of claim 15 , wherein, prior to parsing, executing a streaming encoder on a source file of the content to generate the audio segments of the content, the video segments of the content, and either the DASH or HLS manifest of the content.
18 . The method of claim 15 , wherein generating the global object comprises:
generating, in the schema, a plurality of global objects and a plurality of corresponding unique identifiers, wherein relationships between the plurality of global objects and the plurality of corresponding unique identifiers are tracked to ensure that, within the schema, each of the plurality of corresponding unique identifiers refers to only one of the plurality of global objects.
19 . The method of claim 18 , wherein the plurality of global objects comprises one or more global timeline objects, one or more global digital rights management (DRM) objects, or a combination thereof, and wherein the plurality of corresponding unique identifiers comprises one or more audio timeline identifiers, one or more video timeline identifiers, one or more DRM information identifiers, or a combination thereof.
20 . A non-transitory, computer-readable medium storing instructions executable by a processor of a computing device, the instructions comprising instructions to:
parse a Dynamic Adaptive Streaming over HTTP (DASH) or HTTP Live Streaming (HLS) manifest associated with content to ingest objects respectively associated with audio segments of the content, video segments of the content, or a combination thereof;
identify, within the ingested objects, at least one parameter that is redundantly defined for more than one of the audio segments or more than one of the video segments, or both;
generate, in a schema, a common global object to be associated with the more than one of the audio segments or the more than one of the video segments, defining the at least one parameter that is redundantly defined for the more than one of the audio segments or the more than one of the video segments, or both, along with a corresponding unique identifier of the global object;
generate, in the schema, at least one local object defining an identifier parameter that references the global object using the corresponding unique identifier of the global object; and
output the schema as a manifest for the content.
21 . The non-transitory, computer-readable medium of claim 20 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
22 . The non-transitory, computer-readable medium of claim 20 , wherein, prior to parsing, the instructions comprise instructions to:
execute a streaming encoder on a source file of the content to generate the audio segments of the content, the video segments of the content, and either the DASH or HLS manifest of the content.
23 . The non-transitory, computer-readable medium of claim 20 , wherein the instructions to generate the global object comprise instructions to:
generate, in the schema, a plurality of global objects and a plurality of corresponding unique identifiers, wherein relationships between the plurality of global objects and the plurality of corresponding unique identifiers are tracked to ensure that, within the schema, each of the plurality of corresponding unique identifiers refers to only one of the plurality of global objects.
24 . The non-transitory, computer-readable medium of claim 23 , wherein the plurality of global objects comprises one or more global timeline objects, one or more global digital rights management (DRM) objects, or a combination thereof, and wherein the plurality of corresponding unique identifiers comprises one or more audio timeline identifiers, one or more video timeline identifiers, one or more DRM information identifiers, or a combination thereof.
25 . A device, comprising:
a memory; and
at least one processor coupled to the memory and configured to:
encode content to generate audio segments of the content, video segments of the content, or a combination thereof, from a source file; and
generate a manifest for the content based on information determined during the encoding, wherein the manifest comprises:
a global object defining at least one parameter that is shared with a plurality of the audio segments, the video segments, or the combination thereof along with a corresponding unique identifier of the global object; and
for each of the plurality of the audio segments, the video segments, or the combination thereof, at least one local object defining an identifier parameter that references the global object using the corresponding unique identifier of the global object.
26 . The device of claim 25 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
27 . The device of claim 25 , wherein the at least one processor is configured to generate the manifest by:
generating, within the manifest, a plurality of global objects and a plurality of corresponding unique identifiers, wherein relationships between the plurality of global objects and the plurality of corresponding unique identifiers are tracked to ensure that, within the manifest, each of the plurality of corresponding unique identifiers refers to only one of the plurality of global objects.
28 . The device of claim 27 , wherein the plurality of global objects comprises one or more global timeline objects, one or more global digital rights management (DRM) objects, or a combination thereof, and wherein the plurality of corresponding unique identifiers comprises one or more audio timeline identifiers, one or more video timeline identifiers, one or more DRM information identifiers, or a combination thereof.
29 . A method, comprising:
encoding content to generate audio segments of the content, video segments of the content, or a combination thereof, from a source file; and
generating a manifest for the content based on information determined during the encoding, wherein the manifest comprises:
a global object defining at least one parameter that is shared by a plurality of the audio segments, the video segments, or the combination thereof along with a corresponding unique identifier of the global object; and
for each of the plurality of the audio segments, the video segments, or the combination thereof, at least one local object defining an identifier parameter that references the global object using the corresponding unique identifier of the global object.
30 . The method of claim 29 , wherein the manifest is a JavaScript Object Notation (JSON) manifest.
31 . The method of claim 29 , wherein generating the manifest comprises:
generating, within the manifest, a plurality of global objects and a plurality of corresponding unique identifiers, wherein relationships between the plurality of global objects and the plurality of corresponding unique identifiers are tracked to ensure that, within the manifest, each of the plurality of corresponding unique identifiers refers to only one of the plurality of global objects.