Mid-Roll Insertion of Digital Media
First Claim
1. A method, comprising opening, and reading into memory, structural information from a first media stream;
- opening, and reading into memory, structural information from a second media stream, wherein both the first and second media streams comprise one or more chunks and each of the chunks comprise one or more media samples;
identifying a nearest prior key frame in the second media stream corresponding to an insertion time;
identifying a chunk and a media sample corresponding to the identified key frame;
splitting the identified chunk into first and second chunks so that the second chunk begins with the media sample corresponding to the identified key frame, wherein this splitting occurs if the media sample corresponding to the identified key frame is not at the beginning of the identified chunk;
adjusting the structural information for the first and second media streams to effect insertion of the first media stream into the second media stream before the second chunk; and
writing onto an output media stream the adjusted structural information for the first and second media streams.
17 Assignments
0 Petitions
Accused Products
Abstract
An example embodiment of the present invention provides a process for inserting a source media stream into a target media stream, which media streams might be in container file format. The process opens and reads into memory structural information from a target media stream and structural information from a source media stream. The process then finds the nearest prior key frame to an insertion time and splits a chunk of media samples if the key frame'"'"'s sample is not at the beginning of a chunk. The process adjusts the structural information for both streams in order to effect the mid-roll insertion of the source media stream into the target media stream. The process then writes onto an output media stream the adjusted structural information for the source and target media streams and then pipes onto the output media stream the media data for the source and target media streams.
-
Citations
20 Claims
-
1. A method, comprising
opening, and reading into memory, structural information from a first media stream; -
opening, and reading into memory, structural information from a second media stream, wherein both the first and second media streams comprise one or more chunks and each of the chunks comprise one or more media samples;
identifying a nearest prior key frame in the second media stream corresponding to an insertion time;
identifying a chunk and a media sample corresponding to the identified key frame;
splitting the identified chunk into first and second chunks so that the second chunk begins with the media sample corresponding to the identified key frame, wherein this splitting occurs if the media sample corresponding to the identified key frame is not at the beginning of the identified chunk;
adjusting the structural information for the first and second media streams to effect insertion of the first media stream into the second media stream before the second chunk; and
writing onto an output media stream the adjusted structural information for the first and second media streams. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An apparatus comprising logic encoded in one or more persistent storage media for execution and when executed operable to
open, and read into memory, structural information from a first media stream; -
open, and read into memory, structural information from a second media stream, wherein both the first and second media streams comprise one or more chunks and each of the chunks comprise one or more media samples;
identify a nearest prior key frame in the second media stream corresponding to an insertion time;
identify a chunk and a media sample corresponding to the identified key frame;
split the identified chunk into first and second chunks so that the second chunk begins with the media sample corresponding to the identified key frame, wherein this splitting occurs if the media sample corresponding to the identified key frame is not at the beginning of the identified chunk;
adjust the structural information for the first and second media streams to effect insertion of the first media stream into the second media stream before the second chunk; and
write onto an output media stream the adjusted structural information for the first and second media streams. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification