Dynamic shortening in playing replacement content helps align the end of the replacement content with the end of the content it replaces

By determining and addressing delays in media content replacement, the client ensures timely and seamless playback of replacement content, resolving user experience issues in media stream transitions.

JP7547573B2Active Publication Date: 2024-09-09ROKU INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023113670
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-11-07
Filing Date
2023-07-11
Publication Date
2024-09-09
Estimated Expiration
2039-06-07

AI Technical Summary

Technical Problem

Media clients face challenges in dynamically replacing media content, such as advertisements, due to unpredictable transition times between streams, leading to potential user experience issues like late start or extended playback of replacement content.

Method used

The client determines the delay in starting replacement content and strategically shortens its playback to align with the original content's end time, using techniques like seeking forward or removing frames to ensure timely completion.

Benefits of technology

This approach ensures that replacement content starts and ends at the correct time, maintaining seamless playback and avoiding abrupt transitions, thus enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547573000008
    Figure 0007547573000008
  • Figure 0007547573000003
    Figure 0007547573000003
  • Figure 0007547573000002
    Figure 0007547573000002
Patent Text Reader

Abstract

To provide a method for a device to play out replacement content in place of a portion of an underlying media stream.SOLUTION: When a device is playing out a media stream, the device determines a target time at which the device is to start playing out replacement content in place of a portion of the media stream. However, the device then detects that a starting time when the device starts playout of the replacement content is delayed from the target time by a delay period of duration P. In response, the device then reduces its playout of the replacement content by duration P, to help playout of the replacement content end at a desired time. For instance, the device could seek forward in playout of the replacement content by duration P and / or could remove one or more other portions of the replacement content to total a reduction of duration P.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Patent Application No. 16 / 183,266, filed November 7, 2018, and U.S. Provisional Patent Application No. 62 / 765,276, filed August 17, 2018, each of which is incorporated by reference in its entirety.

[0002] This application is also related to U.S. Patent Application No. 16 / 183,185, filed November 7, 2018, which is incorporated by reference in its entirety. [Background technology]

[0003] A typical media client operates to receive and play (e.g., output for playback) analog or digital media streams representing media content, such as video and / or audio content, and to output and / or transmit the media content streams to present the content on a user interface, such as a display screen and / or audio speakers. Examples of such clients include televisions, computer monitors, projection systems, speakers, headphones, set-top boxes (e.g., cable or satellite TV receivers), digital video recorders, radios, personal computers, game consoles, streaming media players, etc.

[0004] As one example, a media client may be a television that can receive a media stream (e.g., an over-the-air broadcast stream, a media stream output from a set-top box, a media stream played from a digital storage medium, an Internet stream, or another such stream) and present the media content of the stream to a user. As another example, a media client may be a set-top box or a digital video or audio recorder that can receive a broadcast stream from a multi-channel video program distributor and / or data storage and output the media content of the stream via a High-Definition Multimedia Interface (HDMI®) cable or other interface to a television and / or audio / video receiver for playback. As yet another example, a media client may be a speaker or headphones that can receive an audio stream from a radio, computer, or other receiver or audio storage device and present the audio content of the stream to a user. Many other examples are possible. Summary of the Invention [Problem to be solved by the invention]

[0005] In some situations, it may be useful for a media client to replace portions of the media content of a stream while the stream is being played. For example, it may be useful for a client to dynamically replace advertisements or other segments of media content with replacement advertisements or other replacement content, such that as the content is being presented to a user, the user receives the replacement advertisements in place of the advertisements originally included.

[0006] Additionally, it may be desirable for a client to perform such content replacement at a particular point in the media stream - for example, if the client is dynamically replacing an existing advertisement with a replacement advertisement, it may be desirable for the client to place the replacement advertisement at the point in the media stream where the existing advertisement begins.

[0007] In particular, such media streams may define a sequence of frames, such as video and / or audio frames, and thus it may be desirable for a client to perform content replacement starting from a particular frame of the media stream. For example, in an advertisement replacement, it may be desirable for a client to insert a replacement advertisement in place of an existing advertisement, starting from the first frame of the existing advertisement.

[0008] To facilitate such content replacement, a client can learn a specific point in a media stream at which to begin content replacement, and can learn what replacement content to begin playing at the indicated time. The client can transition from playing the existing media stream to playing the replacement content as the replacement media stream at the desired content switch point. Furthermore, the client can transition back to playing the original (e.g., ongoing) media stream once the replacement media stream has finished playing.

[0009] One technical difficulty with this process is that it may take some time for the client to transition from playing the first stream to playing the second stream, for example to initiate content replacement, or to switch back to the original stream when content replacement is complete. This may be the case as the client may need to engage in several processing- and memory-intensive steps before it can begin playing the second stream. For example, the client may need to clear its cache, receive and decode at least a first portion of the content of the second stream, and read this decoded content into a memory buffer for rendering.

[0010] In fact, this stream transition process can take much longer than the time equivalent to one frame. For example, if the media in question is video with a frame rate of 30 frames per second, then each frame spans 1 / 30th of a second, or approximately 33.3 milliseconds (ms). Moreover, the transition from one video stream to another can take on the order of hundreds of milliseconds, thus spanning the equivalent of many video frames.

[0011] Although a client may act to account for this timing by initiating its stream transition process well before the desired content switch point, the actual time the transition process takes may be unpredictable for a variety of reasons, and therefore it may be unclear exactly how early the client should initiate the transition process.

[0012] Unfortunately, if a client starts the transition process too late, the playback of the second stream may start too late, and ultimately finish too late, causing user experience problems as the process may not be completed in time for the desired content switch.

[0013] For example, in an ad replacement scenario where a client uses a replacement ad in place of an original ad for the same period in a linear broadcast feed, if the client starts playing the replacement ad too late, the client may end up playing part of the original ad before suddenly switching to playing the replacement ad. Furthermore, if the client plays the replacement ad for the entire period, the replacement ad may continue beyond the end of the original ad, potentially cutting off some of the content after the original ad in the underlying broadcast feed. [Means for solving the problem]

[0014] To help address this issue, the present disclosure allows a client to detect when it plans to begin playing replacement content too late and determine how long this delay period is from the desired start point, and then the client can strategically shorten the playing of that replacement content to finish on time.

[0015] For example, the client may automatically seek forward in the replacement content by the determined delay period and begin playing the replacement content there. Alternatively, the client may automatically truncate the end of the replacement content to remove the determined delay period from the end, or may selectively remove one or more frames (e.g., duplicate frames and / or intermediate frames, if applicable) from within the replacement content. Additionally, the client may perform combinations of these and / or other such operations. For example, the client may remove portions of the replacement content from the beginning, middle, and end such that the overall length is shortened by the determined delay period.

[0016] Additionally, to aid in the playback process of the replacement content that begins after the start of the base content it replaces, the client may strategically play some transitional frames in place of this base content until the replacement content is ready to begin playback.

[0017] These and other aspects, advantages and alternatives will become apparent to those skilled in the art upon reading the following detailed description, with reference, as appropriate, to the accompanying drawings. Moreover, it is to be understood that this summary and the following description illustrate the invention by way of example only and not by way of limitation. [Brief description of the drawings]

[0018] [Figure 1] FIG. 1 is a simplified block diagram of a system in which the disclosed features can be implemented. [Diagram 2] FIG. 13 illustrates an advertisement replacement scenario in which the replacement advertisement is delayed in starting playback. [Diagram 3] FIG. 3 illustrates seeking forward within the replacement advertisement of FIG. 2 to reduce the play time by a delay period. [Figure 4] FIG. 4 illustrates the results of the mechanism shown in FIG. 3. [Diagram 5] FIG. 13 illustrates terminating the playback of a replacement advertisement early by a delay period. [Figure 6] FIG. 6 illustrates the results of the mechanism shown in FIG. 5. [Figure 7] 1 is a flow chart illustrating a method that may be performed in accordance with the present disclosure. [Figure 8] 4 is another flow chart illustrating a method that may be performed in accordance with the present disclosure. [Figure 9] 1 is a simplified block diagram illustrating components of an example media client capable of operating in accordance with the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Referring now to the drawings, Figure 1 is a simplified block diagram of an example system to which various disclosed principles may be applied. It will be appreciated, however, that this and other configurations and processes described herein may take a variety of other forms. For example, elements and operations may be rearranged, distributed, substituted, combined, omitted, added, or otherwise modified. It will be appreciated that operations described herein as being performed by one or more entities may also be performed by those entities and / or by one or more processing units executing program instructions on behalf of those entities through hardware, firmware, and / or software.

[0020] As shown in FIG. 1, the example system includes a media client 12 configured to receive a media stream in real-time from a media source 14 .

[0021] The media client 12, as described above, may be configured to operate to receive analog or digital media streams representing media content, such as video and / or audio content, from a media source 14 and to output and / or forward the media content streams to present the content on a user interface, such as a display screen and / or audio speakers. The media client may take any of the forms described above, among other possibilities.

[0022] The media source 14 may take a variety of forms, possibly depending on the form of the media client 12. As an example, if the media client 12 is a television, the media source 14 may be a local set-top box (e.g., a cable or satellite receiver) or a streaming media server configured to output selected media streams for presentation by the television, or the media source 14 may be a broadcast television station, among other possibilities. Also, if the media client is a computer, the media source may include an Internet streaming media server or other media provider. Alternatively, the media source 14 may be data storage integrated into the media client 12 and / or that the media client 12 may access locally to receive (e.g., retrieve) the media stream for playback, such as during playback or transfer for playback. Other examples are contemplated.

[0023] 1, media client 12 may have a communications interface with a network (e.g., the Internet or a private network) 16 that enables communication with one or more servers 18. Servers 18 may include file servers, media servers, and / or other types of content servers, etc. Additionally, while media source 14 is shown separate from server 18, it may also be included or integrated with one or more servers 18 and accessed via network 16.

[0024] As discussed above, when a media client, such as client 12, is receiving and playing (e.g., outputting for playback) a media stream, it may be useful to replace portions of the stream with replacement content that defines a replacement stream. Further, as discussed above, it may be desirable for the client to do this at particular points in the media stream. For example, if the stream defines a sequence of frames, such as video and / or audio frames, it may be desirable for the client to perform content replacement starting from a particular frame of the sequence.

[0025] Indeed, the client may learn (determine) the specific target point in the media stream where content replacement should begin in a variety of ways.

[0026] For example, a client may be provided with or receive, along with or in association with a media stream, a data set that identifies or timestamps each frame in the media stream (e.g., timestamps are embedded in the media stream or are otherwise provided through intra-stream signaling), and data that specifies the identifiers or timestamps of frames at which content replacement should begin. Based on this data, the client can then determine a particular point in time within the media stream at which content replacement should begin.

[0027] Alternatively, as the client receives and plays the media stream, it can cooperate with the network server to learn the point in the media stream at which to begin content replacement as the desired content switch point. For example, the server can first identify the media stream that the client is playing. Once the server identifies the media stream, it can determine a particular point in the media stream at which the client should begin content replacement and notify the client of the determined point.

[0028] The client (or an attached device) can generate digital fingerprint data representing the media content in real time as it receives the stream so that the server can easily identify the media stream the client is playing, and the server can compare this fingerprint data with reference fingerprint data representing the media content of known media streams and, if the fingerprints match, indicate that the media stream the client is playing is a known media stream.

[0029] The server may establish or otherwise obtain reference fingerprint data representative of the known media stream. For example, the server or an associated watching station or other entity may receive a broadcast of the known media stream and in the course of doing so generate a reference digital fingerprint sequence representative of frames of the known media stream. The server or another entity may establish these reference fingerprints by programmatically analyzing frames of the known media stream, receiving a copy of the known media stream as input, and applying a now known or later developed media fingerprinting process or algorithm to generate the reference fingerprints. Alternatively, the server may otherwise establish or be provided with a reference fingerprint sequence representative of this known media stream. The server may then store the reference fingerprints in association with an identifier for the known media stream.

[0030] Additionally, as the client plays a media stream, the client may generate query fingerprints in real-time that represent frames of the stream and send them to the server for analysis. The client may generate these query fingerprints using the same fingerprinting process or algorithm that is or was applied to establish the reference fingerprints to facilitate fingerprint comparison. The client may also generate query fingerprints at a particular frame rate and send these fingerprints in batches to the server. For example, for a media stream that includes 30 frames of video per second, the client may generate query fingerprints at a low frame rate of about 2 frames per second to help conserve resources, and send an updated set of query fingerprints to the server every 1.5 seconds or so. Other examples are contemplated.

[0031] When the server receives the query fingerprint data from the client, the server can compare the query fingerprint data to reference fingerprint data of known media streams, and if the comparison determines with sufficient confidence that the query fingerprint data matches the reference fingerprint data, the server can conclude that the media stream being played by the client is a known media stream.

[0032] The server may perform this fingerprint comparison on a frame-by-frame basis. For example, considering video content, the server may perform an analysis for each video frame that compares the query fingerprint of the frame with the reference fingerprint of the frame. This comparison process may take any of a variety of forms depending on the structure of the fingerprints. For example, the comparison may include calculating the maximum deviation between the fingerprints and determining whether the maximum deviation falls within a predetermined tolerance. Furthermore, if the fingerprints are binary values, this determination may be a Boolean determination or may involve calculating the Hamming distance (as the number of mismatches between respective bit positions of the fingerprints). If the fingerprints are more complex values ​​such as decimal values ​​or vectors (e.g., gray values ​​per video frame region), this determination may include determining the distance between the values ​​or vectors. Many other examples are possible.

[0033] The server may also perform this fingerprint comparison process at a desired tolerance level. For example, the comparison may be coarse, with a relatively large tolerance for differences between the fingerprints, such as a tolerance that allows for a larger number of differences and / or a tolerance that allows for differences of a larger size. As an example, when comparing two 32-bit fingerprints to each other, a coarse comparison may consider the fingerprints to roughly match each other even if two or another specified number of bits do not match. Alternatively, the comparison may be more fine-grained, with a smaller tolerance for such differences and / or focusing the comparison on particular fingerprint components that are believed to represent particular portions of the underlying media.

[0034] This allows the server to find one or more matches through a comparison of the client-generated query fingerprint with reference fingerprints of known media streams. For example, the server may find one or more cases where the query fingerprint of a frame of the media stream being played by the client matches a respective reference fingerprint of a frame of the known media stream. This match may then prove or support a conclusion that the media stream being played by the client is a known media stream.

[0035] Alternatively, the server may identify the media stream in question in other ways. For example, if a media stream includes watermark data that corresponds to the identity of the media stream, the client may read or otherwise extract this watermark data and report the watermark data to the server. The server may then use the reported watermark data as a basis to identify the media stream that the client is receiving. For example, the server may consult reference data that correlates various watermark data to particular known media streams to determine that the watermark data reported by the client matches a particular known media stream.

[0036] Once the server has identified the media stream that the client is playing, it can determine the point in the media stream where content replacement should occur. For example, the server can reference reference data that specifies the point in the known media stream where content replacement should begin. The server can then send a command to the client indicating this point.

[0037] The replacement point specified by the server's reference data can be defined in a form that the client can understand. For example, if the client is provided with data that timestamps each frame of a media stream along a "real-time" timeline defined in the media stream, the replacement point that the server has can be the real-time timestamp of the next frame in the media stream. The server can then provide this real-time timestamp to the client as an indication of when the client should begin replacing the content.

[0038] Furthermore, the client can map this real-time timestamp to a "client time" determined according to the client's internal clock so that the client can determine when on its own clock the content replacement should begin. For example, the client can (i) calculate the difference between the real-time timestamp of the current frame and the current time on the client's clock, and (ii) apply this difference to the indicated real-time timestamp of the next frame to be replaced to determine the client time point at which the content replacement should begin.

[0039] Alternatively, the replacement points specified by the server's reference data may be defined in a way that is not understandable to the client. For example, the server may have replacement points that are timestamps defined according to a real-time timeline in a known media stream, but the client may not have the context or perspective of real-time. In this case, the server may go through a process of establishing a mapping or "synchronization lock" between real-time and client time, after which the server may map the real-time points at which content replacement should occur to the corresponding client time points and provide the client with the client.

[0040] As a non-limiting example of this, consider a media stream that defines ad pods that may appear within a television broadcast. An ad pod includes a sequence of advertisements, such as a television commercial. In this example, the client may be a television receiving and playing a linear broadcast feed of a particular television channel, and an ad pod may appear at any moment within this feed. The time at which an ad pod will appear within such a feed may not be predictable, particularly in a live broadcast such as a sporting event, or the ad pod may appear at a specifically scheduled time.

[0041] In this example, replacement of a particular advertisement in an ad pod (e.g., replacing an advertisement with a different advertisement or other replacement content) may be a desirable content replacement. For example, if an ad pod is the sequence of advertisements A1, A2, A3, A4, replacing advertisement A3 may be a desirable content replacement.

[0042] In this situation, the ad pod may define an internal timeline that starts at time T=0 and continues to the end of the ad pod, and ad A3 may begin at time TA3 on this timeline. However, the client may not have the context of this timeline. The client may have its own internal clock with a timeline that defines the client time (e.g., the time of day or other internal time reference). However, without advanced knowledge of where the ad pod timeline lies within the client time, the client cannot initiate ad replacement at the desired time, given only the value TA3 as the desired content modification time.

[0043] The client may timestamp the query fingerprints it sends to the server so that the server can establish a synchronization lock between the real time and the client time in this context. Specifically, the client may timestamp each query fingerprint with a current client time value as it plays back the media stream to generate the query fingerprints. If the server detects one or more matches between the query fingerprint and the time-stamped reference fingerprints of known media streams, it may use these matches as a basis to map the real time to the client time. For example, the server may determine a mapping between (i) the real time timestamp of the matching reference fingerprint and (ii) the client time timestamp of the matching query fingerprint based on at least one such detected match.

[0044] Once the server has established a synchronization lock, it can use the established synchronization lock to convert the real-time point at which the content replacement should occur to a corresponding client time point at which the content replacement should occur, and the server can send this determined client time point to the client so that the client can initiate the content replacement at the desired point in the media stream that the client is playing.

[0045] Additionally, in another implementation, the process of establishing and applying a synchronization lock to determine the client time point at which content replacement should occur may be performed by the client rather than the server.

[0046] For example, once the server has identified the media stream that the client is receiving, it can send the client some reference data that defines a reference fingerprint and a real-time timestamp of the next portion of the known media stream. The client can then perform a fingerprint match between the query fingerprint and the reference fingerprint to find one or more matches, and establish a synchronization lock between the real-time and the client time by similarly correlating the timestamp of at least one match. Once the client has established a synchronization lock, it can use this synchronization lock as a basis to convert the provided real-time point at which content replacement should occur to a corresponding client-time point at which content replacement should occur.

[0047] In addition to determining a target point in the media stream where content replacement should begin, the client can also learn which content replacement to perform starting from that point in a variety of ways.

[0048] As an example, a client may be provided with details of the content replacement to be initiated in advance when an instruction is given, such as an instruction to substitute particular content for existing content in a media stream. Alternatively, a client may receive details of the content replacement to be performed from a server or other entity. For example, when a server sends an instruction to a client informing the client of the point in the media stream at which the client should initiate content modification, the server may include details of the content replacement to be performed in the instruction (or provide it separately).

[0049] In practice, the specification of the content replacement to be performed may include a pointer to the replacement content that the client should obtain and insert in place of or as a complement to the existing content in the media stream. For example, as described above, the specification may include a Universal Resource Locator (URL) that defines or correlates to a network address of a streaming media server or file server, etc., from which the client can request and receive the replacement content. Alternatively, the specification may indicate in another manner where and / or how the replacement content should be obtained, so as to facilitate initiation of the content replacement at the indicated point in the media stream. Additionally, the specification may indicate the duration of the replacement content, so as to inform the client for how long the replacement content should be played in place of the original content.

[0050] The client can switch from playing the existing media stream to playing the replacement content as the replacement media stream when the indicated content replacement should begin, and can switch back to playing the original (e.g., ongoing) media stream when the content replacement is finished.

[0051] As a non-limiting example, consider again the ad pod discussed above. In effect, the server can be provided with time-stamped reference fingerprints that represent and correspond to frames of the ad pod. Additionally, the server can obtain an indication that a particular one of the ads in the ad pod should be replaced, and information to facilitate this ad replacement. For example, the server can be provided with an indication of the actual time of the first frame of the existing ad, the URL of the replacement ad, and an indication of the replacement period.

[0052] As the client receives and plays a linear broadcast feed that may include this ad pod, the client may generate, either continuously or in response to one or more other triggers, time-stamped query fingerprints of the broadcast feed and report these time-stamped query fingerprints to the server for analysis. The server may detect that the client is playing an ad pod sequence by comparing such query fingerprints to reference fingerprints that represent frames of the ad pod sequence.

[0053] When the server determines that the client is playing an ad pod sequence, it can convert the actual time of the frame at which the advertisement replacement should begin to a corresponding client time instant, e.g., in the manner described above, and can send instructions to the client specifying the client time instant and including a pointer to the replacement advertisement that should substitute for frames of the media stream starting at that client time instant, instructing the client to perform the indicated content replacement, such that the client can obtain the indicated replacement advertisement and substitute it for frames of the media stream starting at the indicated client time instant.

[0054] Additionally, the server may inform the client of the duration of the ad replacement or the client time point at which the ad replacement should end, or this duration may be a standard or pre-established duration, and the client may then switch from playing the replacement ad back to playing the ongoing broadcast feed (e.g., the remaining ad pod sequence) upon completion of the ad replacement.

[0055] As discussed above, a technical challenge that may arise in this process is that it may take some time for a client to transition from playing one stream to playing another, such as from playing an ad pod sequence in a linear broadcast stream to playing a replacement ad stream. Specifically, as discussed above, the client must engage in various processes, such as clearing caches, receiving and decoding content, loading into memory buffers, etc., to facilitate initiating playback of the replacement stream.

[0056] The start of this stream transition process can be defined in various ways. For example, if the client receives the second stream content from a streaming media server, the start of the stream transition process can be when the client sends an initial Transmission Control Protocol (TCP) handshake message to initiate the establishment of a TCP session with the server, or when the client sends a Real-Time Streaming Protocol (RTSP) SETUP request or the like to initiate the establishment of a Real-Time Transport Protocol (RTP) session with the server, among other possibilities. Alternatively, if the client receives the second stream content differently or from another source, the start of the process can be defined in other ways. The end of the process can be defined as when the client has buffered a sufficient amount of the second media stream to begin playing the stream, taking into account jitter and / or other issues. Other examples are also possible.

[0057] As mentioned above, the stream transition process can take on the order of hundreds of milliseconds from start to finish. Furthermore, because resource constraints and other factors change over time, the actual time it will take a client to transition from one stream to another at any given stage cannot be predicted.

[0058] The minimum and maximum expected stream transition durations for a client (or for a representative client) can be determined empirically. For example, tests may show that it takes a client approximately 300 ms to 500 ms to transition from playing a first stream to playing a second stream (e.g., when the client is ready to start playing the second stream). Thus, a client may have a minimum expected switching duration of 300 ms and a maximum expected transition duration of 500 ms, with an uncertainty range of 200 ms, among other possibilities.

[0059] A client may determine these minimum and maximum expected stream transition periods by tracking stream transition periods over a period of time and aggregating the tracked periods to establish statistical measures of minimum and maximum values, and / or may be otherwise provided with representative values ​​of the expected transition periods.

[0060] Given this uncertainty range, the client can be configured to begin its switching process a time equal to the maximum expected switching duration before the desired content switch time, thus, theoretically speaking, the client should eventually start playing the second stream somewhere within this uncertainty range before the desired content switch start time.

[0061] Unfortunately, when the client is ready to play the second stream, it may no longer be able to play the first stream because it may now be buffering the second stream content for playback rather than the first stream content. Thus, if the client is ready to play the second stream before the end of the maximum expected switching period has elapsed, it may begin playing the second stream earlier than desired, which may cause user experience issues. Furthermore, in the case of content replacement, such as advertising replacement, this premature start of playing the second stream may cause user experience issues associated with the end of the replacement period when the client switches from playing the second stream back to playing the first stream.

[0062] One way to help avoid having the client begin playing the second stream earlier than desired is to instead configure the client to begin its switching process less than the maximum expected switching period before the desired content switch time. For example, the client could begin the switching process less than the maximum expected switching period but greater than or equal to the minimum expected switching period before the desired content switch time.

[0063] As an example, a client may begin its switching process prior to the desired content switch time by a time that is an average expected switching period, such as halfway between the minimum expected switching period and the maximum expected switching period. Thus, using the example values ​​above, for example, with a minimum expected switching period of 300 ms and a maximum expected switching period of 500 ms, a client may begin its switching process 400 ms prior to the desired content switch time.

[0064] However, this solution is not optimal, since the client may ultimately take longer than this average expected switching period to prepare to play the replacement content. Thus, the client may not be able to complete its content switching preparation until the desired content switching time has passed. As a result, as described above, the client may degrade the user experience by suddenly switching to playing the replacement content after having ended up playing a portion of the base content that was to be replaced. Furthermore, as described above, if the client starts playing the replacement content too late and plays the replacement content for the entire duration, the playback of the replacement content may continue beyond the end of the content that was to be replaced, cutting off the beginning of the subsequent content of the base media stream.

[0065] This disclosure provides mechanisms that help address the technical challenge of replacement content starting playback too late, and therefore finishing too late.

[0066] In accordance with the present disclosure, when a client initiates or begins playing the replacement content with some delay after a desired content switch time, the client specifies how long this delay is. For example, the client can specify how much time has elapsed or will elapse from the desired content switch time to when the replacement content has or will begin playing. And, as described above, the client strategically shortens the playback of the replacement content to finish on time. And, as described above, the client can also strategically play some transitional frames in place of the base content until the replacement content is ready to start playing, to aid in the playback process of the replacement content starting after the start of the base content to be replaced.

[0067] This process assumes that the content being replaced (the original content) and the replacement content span the same duration D as each other, and the goal is to start playing the replacement content exactly when the original content would have started if there was no delay, and to end playing the replacement content exactly when the original content would have ended. For example, in an advertisement replacement scenario, the original and replacement advertisements may each be 30 seconds or another typical advertisement duration, and the goal may be to start playing the replacement advertisement exactly when the original advertisement would have started playing, and to end playing the replacement advertisement exactly when the original advertisement would have ended.

[0068] Furthermore, this process assumes that the client's start of playing the replacement content is, has been, or will be delayed by a delay period P seconds (perhaps only tens of milliseconds, possibly multiple frames spanning less than a second) after the time the original content would have started, i.e., the desired content switch time. The client can detect the existence of such a delay by detecting that it has not, or will not, start playing the replacement content by the time the desired content switch time occurs. The client can calculate the length of the delay by programmatically running a stopwatch from the time the desired content switch time occurs to the time the client starts playing the replacement content.

[0069] Since it is desirable for the client to finish playing the replacement content exactly at the point where the original content would have ended, the period of time left for the client to play the replacement content is reduced to DP (i.e., the difference between the duration of the entire advertisement D and the delay period P).

[0070] If the duration of the replacement content is D, then the client may facilitate playing the replacement content within the shortened period DP by removing P seconds from the replacement content, i.e., by not playing the replacement content for P seconds. In accordance with this disclosure, the client may do this by removing the first P seconds of the replacement content, removing the last P seconds of the replacement content, or removing one or more portions of the replacement content totaling P seconds.

[0071] As an example of this process, if the client determines that playback of the replacement content is delayed by P seconds, it may accordingly seek ahead in the replacement content (i.e., jump ahead in the replacement content stream) P seconds and begin playing the replacement content at P seconds. In this way, the client's playback of the remaining replacement content should take only DP seconds and therefore finish on time. In this example, because the client begins playing the replacement content at a point later than the actual start of the replacement content, a fade-in (e.g., a dissolve) may also be added to the playback of the replacement content so that the start of playback of the replacement content does not appear too abrupt.

[0072] The client may perform this seek operation beginning just at the beginning of the replacement content, or the client may begin the seek ahead at a point (perhaps slightly later) after the beginning of the replacement content, also jumping forward P seconds in the playback of the replacement content.

[0073] As another example of this process, if the client determines that the playback of the replacement content is delayed by P seconds, the client may accordingly end the playback of the replacement content P seconds early. That is, the client may start playing the replacement content when the replacement content begins, but rather than playing the replacement content for the entire D second period, the client may stop playing the replacement content (and switch back to the basic media stream) once it has played DP seconds of the replacement content. Thus, because the replacement content only takes DP seconds to play, it should also end on time. Additionally, in this example, because the client ends the playback of the replacement content early, the client may also add a fade-out from the replacement content back to the basic media stream so that the end of the replacement content playback does not seem too abrupt.

[0074] As yet another example of this process, if the client determines that the playback of the replacement content is delayed by P seconds, the client may responsively perform a process of selectively removing frames from within the replacement content to reduce the total playback duration of the replacement content to DP seconds.

[0075] For example, when playing back the substitute content, the client may look at the next frame of the substitute content that is stored in the buffer for playback for a frame that can reasonably be removed and therefore not played.

[0076] As an example, if the media in question includes video, preferably without accompanying audio, the client may search for cases where images of two or more consecutive frames are identical or sufficiently similar. The client may perform this analysis by generating fingerprints of the consecutive frames and comparing them through pattern matching and / or some other method. The client may discard one or more duplicate frames whenever it finds such repeated frames. Alternatively or additionally, the client may also look for intermediate frames of the video (e.g., P-frames or B-frames) and similarly remove these frames, also preferably without accompanying audio. Furthermore, if the media in question includes audio, the client may search for silence frames, possibly repeating silence frames, and similarly discard these frames.

[0077] Alternatively, the client may apply one or more other processes to selectively remove frames from the substitute content to help reduce the duration of the substitute content by the delay period P.

[0078] The client can be more sophisticated in removing a total of P seconds of frames, possibly by selectively performing this frame removal process at multiple different points in the replacement content, such that the resulting playback duration of the replacement content is exactly DP seconds, and therefore ends on time. Alternatively, if the client has not been able to remove enough frames of the replacement content when the replacement content playback approaches DP seconds, the client can end playback of the replacement content early enough to reduce the total playback duration of the replacement content to DP seconds, also to end on time.

[0079] Further, as described above, if the client is about to start playing the replacement content with a delay of P seconds, the client may also play some transition frames in place of the original content during this delay period. To facilitate this, the client may determine that it is not yet ready to start playing the replacement content when it detects that the desired content switch time has arrived. In response, the client may generate and begin playing transition frames in place of the original content until it is ready to start playing the replacement content. The client may switch from playing the transition frames to playing the replacement content once it is ready to start playing the replacement content. Additionally, the client may also add fading (e.g., a dissolve) between playing the transition frames and playing the replacement content to help smooth the transition.

[0080] In practice, transition frames can take a variety of forms based on the type of media in question. For example, if the media includes video (and possibly audio), the transition frame can include a black frame and / or a copy of the frame immediately preceding the transition. As an example, the client can play a black frame for the transition period (until transitioning to playing the replacement content). Alternatively, the client can play a frame that is a copy of the most recent frame of the first stream for some time before the transition period, and then fade this image to a black frame for the remainder of the transition period. On the other hand, if the media includes audio (and possibly video), the transition frame can be a silence frame. In particular, the client can present a silence frame for the transition period. Other examples are possible.

[0081] Figures 2-6 show examples of some of the processes described above, particularly in an advertisement replacement scenario. Each of these figures shows the playback of content along a timeline, with time progressing from left to right.

[0082] 2 illustrates a problem scenario in which a client is playing an ad pod in linear stream 20 and replacement ad 22 should be used in place of ad AD2 in the linear stream, but replacement ad 22 starts playing late. As shown, AD2 spans a period D, and replacement ad 22 also spans a period D. Further, as shown along the timeline, at the start of AD2, T DESIRED-START The replacement ad starts playing exactly at T DESIRED-END The ultimate goal is to end the playback of the replacement ad exactly at the time the T DESIRED-START Time T P seconds after READY The replacement ad starts P seconds late because the replacement content is ready to start playing at that time. As a result, in this scenario, the client may suddenly switch to playing the replacement ad after playing AD2 for P seconds. Furthermore, the client's playback of the replacement ad may be extended P seconds past the start of the next ad, AD3, potentially cutting off the start of the next ad.

[0083] Figure 3 illustrates one mechanism that can help a client overcome these technical challenges. Specifically, Figure 3 illustrates that a client can seek forward P seconds into the replacement advertisement 22 and begin playing the replacement advertisement at that point. To facilitate this in practice, the client can apply an inherent seek function to jump forward in the replacement advertisement stream, or otherwise discard the first P seconds of the replacement advertisement's frames. This results in the client playing only the last DP seconds of the replacement advertisement by beginning playback of the replacement advertisement P seconds into the replacement advertisement.

[0084] An example result of this seeking process is now shown in FIG. 4. As shown in FIG. 4, the client's playback of the DP seconds at the end of the replacement advertisement begins at time T READY Starts at time T DESIRED-END, so that the end of the client's playback of the replacement advertisement will desirably be optimally aligned with the end of AD2 in base linear stream 20. (Though not shown, the client should take steps to account for the delay in switching from playback of replacement advertisement stream 22 back to playback of base linear stream 20 at or near the end of this playback of the replacement advertisement. For example, the client could handle this situation by playing a transition frame and possibly seeking ahead an appropriate period in the playback of AD3.)

[0085] As further shown in FIG. 4 and in accordance with the above description, the client may also add transition frames 24 that include a fade period to help account for the delay in the start of the replacement advertisement. In one implementation, the client may generate these transition frames to avoid playing the start of AD2, which is to be replaced by the replacement advertisement, for at least (T DESIRED-START From T READY The client may also extend the playback of the transition frame over a fade period 26 after the delay period to help smooth the transition, fading from the playback of the transition frame to the playback of the replacement advertisement throughout the fade period 26.

[0086] 5 illustrates another mechanism that can help a client overcome problems associated with delays in starting playback of a replacement advertisement. Specifically, FIG. 5 illustrates how playback of a replacement advertisement can be delayed until time T DESIRED-END indicates that the client may end playback of the replacement ad P seconds early so that the replacement ad does not extend beyond DP seconds. To facilitate this in practice, the client may play only the first DP seconds of the replacement ad and discard the last P seconds of the replacement ad. For example, if the client starts playback of the replacement ad P seconds late, it may continue playback of the replacement ad for DP seconds.

[0087] Next, an example result of this alternative process is shown in FIG. 6. As shown in FIG. 6, the client's playback of the first DP second of the replacement advertisement begins at time TREADY Starts at time T DESIRED-END , so that the end of the client's playback of the replacement ad will desirably be optimally aligned with the end of AD2 in the base linear stream 20. (Again, the client will need to take measures such as fading to account for the delay in switching from playing the replacement ad stream back to playing the base linear stream at or near the end of this playback of the replacement ad.)

[0088] 7 is a flow chart illustrating a method that may be performed in accordance with the present disclosure, which may be performed by a device, such as a media client or other playback device, to facilitate playback of replacement content in place of a portion of a base media stream, where the replacement content and the portion of the base media stream span an equal duration D. As noted above, in some implementations, the portion of the base media stream may be an advertisement in an ad pod, and the replacement content may be a replacement advertisement. Alternatively, the content may take other forms.

[0089] 7, the device determines a target time at which to begin playing the replacement content while playing the primary media stream, at block 70. For example, the client may determine this target time by receiving a command from a server or other entity specifying the target time and / or by performing an evaluation independently to determine the target time.

[0090] Next, in block 72, the device detects that the start time to begin playing the replacement content is after the determined target time by the delay period P. For example, the device may measure how much time has elapsed from the desired start time to the time at which playing of the replacement content is scheduled, has begun, or is scheduled to begin.

[0091] In block 74, in response to detecting this delay, the device shortens the playback of the replacement content by a period P to facilitate aligning the end of the playback of the replacement content with the end of the base media stream. As described above, this shortening operation may include seeking forward in the replacement content by the period P to a new point in time within the replacement content and beginning playback of the replacement content at the new point in time. Alternatively, or in addition, this shortening may include ending playback of the replacement content by the period P early. Further, alternatively, or in addition, this shortening may include removing one or more intermediate frames from the replacement content to facilitate shortening the total duration of playback of the replacement content to DP.

[0092] Additionally, as discussed above, instead of playing an initial portion of the portion of the base media stream, the device may play a transition frame during the delay period P. The device may also fade from playing the transition frame to playing the replacement content.

[0093] Also, as noted above, if the media in question includes video, the transition frames may include black frames and / or frames that are copies of frames played at the end of the first media stream, and if the media in question includes audio, the transition frames may include silence frames.

[0094] FIG. 8 is another flow chart illustrating a method that may be performed according to the present disclosure. As shown in FIG. 8, in block 80, the device determines a target time during playback of a media stream at which to begin playing replacement content in place of a portion of the media stream. In block 82, the device detects that the start time at which to begin playing the replacement content is a delay period P after the determined target time. In block 84, in response to the detection, the device seeks forward in the replacement content by a period P to shorten the playback of the replacement content by the period P. In the context of this method, the various features described above may apply, and vice versa. For example, the media stream may be an ad pod and the replacement content may be a replacement advertisement. Additionally, the device may play transition frames (e.g., black frames or silence frames, etc.) during the delay period P, or may add fading to smooth the transition.

[0095] Finally, Figure 9 is a simplified block diagram of an example media client illustrating some components that may be included in such a device to facilitate performance of the operations described above. In accordance with the above description, the client may take a variety of forms. For example, the client may be a television, computer monitor, or other device operable to receive and render video content, and / or a speaker, headphones, or other device operable to receive and render audio content. Many other examples are possible.

[0096] As shown in FIG. 9, an example client includes a media input interface 90, a network communication interface 92, a media presentation interface 94, a processing unit 96, and non-transitory data storage 98, some or all of which may be integrated together or communicatively coupled to each other by a system bus, network, or other connection mechanism 100 as shown.

[0097] The client may receive media streams for presentation using a media input interface 90 and / or a network communication interface 92. Any of these interfaces may include one or more wired and / or wireless interfaces for establishing communication with and receiving media content in analog or digital form from a receiver, server, or other device or system. For example, the media input interface may include one or more interfaces conforming to protocols such as DVI, HDMI, VGA, USB, BLUETOOTH, WIFI, among others, and the network communication interface may include a wired or wireless Ethernet interface for local or wide area packet-based communication for interacting with one or more servers and / or other devices or systems.

[0098] The media presentation interface 94 may include one or more components that facilitate the presentation of media content. By way of example, the media presentation interface may include a user interface, such as a display screen and / or a speaker, and one or more drivers or other components for processing received media content to facilitate the presentation of the content on the user interface.

[0099] The processing unit 96 may include one or more general purpose processors (e.g., microprocessors) and / or one or more special purpose processors (e.g., application specific integrated circuits), and the non-transitory data storage 98 may include one or more volatile and / or non-volatile storage elements, such as optical, magnetic, or flash storage.

[0100] Additionally, as shown, data storage 98 may store program instructions 102 that processing unit 96 may execute to cause the client to perform various operations described herein. For example, these operations may include determining a target time at which the client should begin playing substitute content in place of a portion of the base media stream while playing the base media stream. Additionally, these operations may include the client detecting that a start time at which to begin playing (e.g., has started, is starting, or will start) the substitute content is a delay period P after the determined target time. The operations may include shortening the playing of the substitute content by the period P in response to this detection. Again, the various operations described above may be applied in this context, and vice versa.

[0101] Although exemplary embodiments have been described above, those skilled in the art will appreciate that changes and modifications can be made to these embodiments without departing from the true scope and spirit of the present invention.

Claims

1. 16. A method for an apparatus to play substitute content in place of a portion of a primary media stream, wherein the substitute content and the portion of the primary media stream have equal duration D, the method comprising: determining a target time at which the device should begin playing the replacement content while playing the primary media stream; detecting a start time at which the device will begin playing the replacement content that is a delay period P after the determined target time; said device, in response to said detection, shortening playback of said replacement content by a period P to facilitate aligning an end of the playback of said replacement content with an end of said portion of said base media stream; Including, a shortening of the playback of the replacement content by a period P includes: (i) detecting one or more duplicate frames in the replacement content; and (ii) in response to detecting one or more duplicate frames in the replacement content, not playing the one or more duplicate frames when playing the replacement content.

2. the portion of the base media stream is an advertisement in an advertisement pod and the replacement content is a replacement advertisement. The method of claim 1.

3. shortening the playback of the replacement content by a period P includes seeking forward within the replacement content by a period P to a new point in time within the replacement content and commencing playback of the replacement content at the new point in time. The method of claim 1.

4. shortening the playback of the replacement content by a period P includes ending the playback of the replacement content early by a period P. The method of claim 1.

5. and wherein the device further comprises playing a transition frame during the delay period in lieu of playing an initial portion of the portion of the base media stream. The method of claim 1.

6. the apparatus further comprising fading from the playback of the transition frame to the playback of the replacement content. The method according to claim 5.

7. the elementary media stream comprises video and the transition frames comprise black frames; The method according to claim 5.

8. the elementary media stream comprises audio and the transition frames comprise silence frames. The method according to claim 5.

9. A media client, A processing unit; Non-transient data storage; program instructions stored in the non-transitory data storage and executable by the processing unit to cause the media client to perform operations; and the operation comprises: determining a target time at which the media client should begin playing substitute content in place of a portion of the primary media stream while the media client is playing the primary media stream; Detecting a start time at which the media client will begin playing the replacement content is a delay period P after the determined target time; in response to said detecting, shortening playback of said replacement content by a period P to facilitate aligning an end of the playback of said replacement content with an end of said portion of said base media stream; Including, and (ii) in response to detecting one or more duplicate frames in the replacement content, not playing the one or more duplicate frames when playing the replacement content.

10. shortening the playback of the replacement content by a period P includes seeking forward within the replacement content by a period P to a new point in time within the replacement content and commencing playback of the replacement content at the new point in time. The media client of claim 9.

11. the operations further include playing a transition frame during the delay period in lieu of playing an initial portion of the portion of the base media stream. The media client of claim 9.

12. the operations further comprising fading from the playback of the transition frame to the playback of the replacement content. The media client of claim 11.

13. the elementary media stream comprises video and the transition frames comprise black frames; The media client of claim 11.

14. the elementary media stream comprises audio and the transition frames comprise silence frames. The media client of claim 11.

15. the device is a television, The method of claim 1.

16. The device is a set-top box. The method of claim 1.

17. the portion of the base media stream is an advertisement in an advertisement pod and the replacement content is a replacement advertisement. The media client of claim 9.

18. a non-transitory data storage device storing program instructions executable by a processing unit to cause a media client to perform an operation, The operation includes: determining a target time at which the media client should begin playing substitute content in place of a portion of the primary media stream while the media client is playing the primary media stream; Detecting a start time at which the media client will begin playing the replacement content is a delay period P after the determined target time; in response to said detecting, shortening playback of said replacement content by a period P to facilitate aligning an end of the playback of said replacement content with an end of said portion of said base media stream; Including, and (ii) in response to detecting one or more duplicate frames in the replacement content, not playing the one or more duplicate frames when playing the replacement content.

19. the portion of the base media stream is an advertisement in an advertisement pod and the replacement content is a replacement advertisement.

20. The non-transitory data storage of claim 18.

20. and wherein the operations further include playing a transition frame during the delay period in lieu of playing an initial portion of the portion of the base media stream.

20. The non-transitory data storage of claim 18.

Citation Information

Patent Citations

  • Recording apparatus and recording method, reproducing apparatus and reproducing method, and storage medium

    JP2000057749A

  • Streaming distribution system and streaming distribution method

    JP2008028893A

  • A system and method for managing the system during commercial breaks.

    JP2010528560A

  • Insertion of target-specific advertisements using interface device-assisted switching.

    JP2010530714A

  • Method and system for inserting advertisement into media stream

    JP2014086087A