Patent attributes
Methods and systems for advertisement insertion into streaming media content are described. In one method, an advertisement insertion tool receives a first indication of a start time of where an advertisement is to be inserted into media content and a second indication comprising at least one of an end time of the advertisement or a duration of the advertisement. The advertisement insertion tool inspects a first original slice of the media content that contains the media content at the start time to locate a first preceding key frame at or prior to the start time and a last frame before the start time. The advertisement insertion tool creates a first new slice comprising the media content of the first original slice up to the start time. The first new slice comprises the first preceding key frame, the last frame and any intervening delta frames between the first preceding key frame and the last frame. The advertisement insertion tool inspects a second original slice of the media content that contains the media content at the end time to locate a second preceding key frame at or prior to the end time, a last frame corresponding to the media content at the end time, and a first frame after the end time. The advertisement insertion tool creates a subsequent key frame with the first frame and creates a second new slice comprising the subsequent key frame and the media content of the second original slice after the first frame until an end of the second original slice. The advertisement insertion tool stores the first new slice and second new slice at a content server for streaming the media content with the advertisement inserted to a media player executing on a client computing system.