Patent attributes
Systems, methods, and computer-readable media are disclosed for dynamically inserting secondary content into a live stream or a video on demand (VOD). The secondary content can include, for example, a public service announcement or warning, censoring content, live or prerecorded commentary, an advertisement, or any other type of content to be integrated with or inserted into the main content. Example methods may include receiving a content stream including a first fragment having a first duration and a second fragment having the first duration. Certain methods may include determining an increased quality of service associated with encoding the content stream into fragments having a second duration. Certain methods may include generating, based at least in part on the increased quality of service, a third fragment having the second duration, and sending the content stream having the third fragment to a user device.