This document relates to video coding devices and systems, and to timeline strategies employed in conjunction with such devices.
Digital-based electronic media formats have become widely accepted. Digital compact discs (CDs) and audio files, such as MP3s (MPEG Audio—layer 3), are now commonplace. Video media, however, has been slower to transition to digital storage and digital transmission formats than audio media. One reason for the slower integration of digital video media formats into the marketplace is the volume of information required to accurately produce video of an acceptable quality from a digital representation. Additionally, encoding and decoding video in a digital format consumes substantial system resources and requires systems capable of processing information at high speeds. Further, the large amounts of information used to represent digital video also necessitate high-bandwidth transmission systems and high-capacity storage systems.
The development of faster computer processors, high-density storage media, and efficient compression and encoding algorithms have led to more widespread implementation of digital video media formats in recent years. The Digital Versatile Disc (DVD) has rapidly replaced video cassettes as the primary storage media for video due to its high image quality, very high audio quality, convenience, and added functionality. Further, the digital Advanced Television Standards Committee video transmission system is in the process of replacing the analog National Television Standards Committee transmission system.
Computer systems have been using various digital video formats for a number of years. Specifically, computer systems have employed many different methods for compressing and encoding or decompressing and decoding digital video. A video compression/decompression method, implemented using hardware, software, or a combination of hardware and software, is commonly referred to as a CODEC. A number of popular digital video compression and encoding systems have been developed based on the standards propounded by the Moving Picture Experts Group (MPEG), including the MPEG-1, MPEG-2, and MPEG-4 standards. Video CDs and early consumer-grade digital video editing systems use the MPEG-1 digital video encoding format. DVDs, video games, and some direct broadcast satellite systems are encoded in accordance with the MPEG-2 standard. MPEG-4 is now being used to deliver DVD (MPEG-2) quality video at lower data rates and smaller file sizes, and thus enables digital video playback on products ranging from satellite television systems to wireless devices.
The MPEG standards set forth methods for compressing a series of images, such as frames or fields, and for encoding the compressed images into a digital bit stream. When a video image is encoded in an MPEG system, the video image is divided into multiple pixel arrays, such as 8×8 pixel blocks or 16×16 pixel macroblocks. Each pixel array can then be independently compressed and encoded.
When performing compression using an MPEG coder, such as a coder that is in compliance with the MPEG-1, MPEG-2, or MPEG-4 standard, images may be encoded using three picture types. Specifically, images may be encoded using I-pictures, P-pictures, and B-pictures. I-pictures are encoded with reference only to the information within the picture, and thus may be decoded without reference to any other pictures. P-pictures are encoded with reference to preceding pictures, and thus permit the use of motion compensation to provide for a greater degree of compression. B-pictures are encoded with reference to succeeding pictures, and also permit the use of motion compensation. Because B-pictures are decoded using succeeding pictures, however, some reordering of the sequence of decoded pictures is required prior to display.
Digital video systems have also been developed based on standards other than those published by MPEG. For example, similar standards have been circulated by other organizations, such as the H.261-H.264 standards developed by the International Telecommunication Union. Additionally, proprietary codecs have been developed by other organizations and individuals. For example, Compression Technologies, Inc. produces digital video compression tools based on the Cinepak codec and DivXNetworks produces a variety of applications based on the DivX codec. These standard and proprietary codecs represent only a few of the many different ways to compress and encode digital video information.
The present inventors recognized a need to implement timeline strategies that will permit the use of pictures predicted or interpolated from future pictures—that is, pictures that appear later in the display order—for video compression and decompression. Accordingly, the methods and apparatus described here implement techniques for using independent decode and display timelines in the decoding and display of a media sequence comprised of one or more tracks of digital video information that can include pictures predicted or interpolated from future pictures.
In general, in one aspect, the techniques can be implemented to include generating a first timeline identifying a decode order associated with a sequence of video images and a second timeline identifying a display order associated with the sequence of video images, wherein the sequence of video images comprises one or more samples; correlating the first timeline with the second timeline based on an offset, wherein the offset corresponds to a period of time by which decoding precedes display; and playing the sequence of video images in accordance with the correlated first timeline and second timeline.
The techniques also can be implemented such that the decode order identified in the first timeline differs from the display order identified in the second timeline. The techniques further can be implemented such that a decode time and a decode duration are associated with one or more samples included in the sequence of video images. Additionally, the techniques can be implemented such that a decode duration associated with a first sample included in the sequence of video images differs from a decode duration associated with a second sample included in the sequence of video images.
The techniques also can be implemented such that a display time and a display offset are associated with one or more samples included in the sequence of video images. The techniques further can be implemented such that a display offset associated with a sample included in the sequence of video images comprises a negative value. Additionally, the techniques can be implemented to include setting the offset equal to the magnitude of the largest negative display offset associated with a sample included in the sequence of video images.
The techniques also can be implemented such that a first sample included in the sequence of video images is associated with a first format and a second sample included in the sequence of video images is associated with a second format. The techniques further can be implemented such that a first sample included in the sequence of video images is associated with a first frame rate and a second sample included in the sequence of video images is associated with a second frame rate. Additionally, the techniques can be implemented to include determining a revised offset between the first timeline and the second timeline after the sequence of video images has been edited and correlating the first timeline with the second timeline based on the revised offset. The techniques also can be implemented such that each of the samples comprising the sequence of video images is associated with a common data store.
In general, in another aspect, the techniques can be implemented to include generating a first timeline identifying a decode order associated with a sequence of video images and a second timeline identifying a display order associated with the sequence of video images, wherein the sequence of video images comprises one or more samples; determining a decode end time and a display end time associated with the sequence of video images; and extending a decode duration associated with a last sample identified in the first timeline such that the decode end time equals the display end time.
In general, in another aspect, the techniques can be implemented to include processor electronics configured to generate a first timeline identifying a decode order associated with a sequence of video images and a second timeline identifying a display order associated with the sequence of video images, wherein the sequence of video images is comprised of one or more samples; correlate the first timeline with the second timeline based on an offset, wherein the offset represents a period of time by which decoding precedes display; and play the sequence of video images in accordance with the correlated first timeline and second timeline.
The techniques also can be implemented such that the decode order identified in the first timeline differs from the display order identified in the second timeline. Further, the techniques can be implemented such that a decode time and a decode duration are associated with one or more samples included in the sequence of video images. Additionally, the techniques can be implemented such that a decode duration associated with a first sample included in the sequence of video images differs from a decode duration associated with a second sample included in the sequence of video images.
The techniques also can be implemented such that a display time and a display offset are associated with one or more samples included in the sequence of video images. Further, the techniques can be implemented such that a display offset associated with a sample included in the sequence of video images comprises a negative value. Additionally, the techniques can be implemented such that the processor electronics are further configured to set the offset equal to the magnitude of the largest negative display offset associated with a sample included in the sequence of video images.
The techniques also can be implemented such that a first sample included in the sequence of video images is associated with a first format and a second sample included in the sequence of video images is associated with a second format. Further, the techniques can be implemented such that a first sample included in the sequence of video images is associated with a first frame rate and a second sample included in the sequence of video images is associated with a second frame rate. Additionally, the techniques can be implemented such that the processor electronics are further configured to determine a revised offset between the first timeline and the second timeline after the sequence of video images has been edited and correlate the first timeline with the second timeline based on the revised offset. The techniques also can be implemented to include a common data store to store the sequence of video images.
The techniques described in this document may be implemented to realize one or more of the following advantages. For example, the techniques can be implemented to combine samples encoded using different source timing relationships in a common media sequence. As such, the techniques allow the combining of sequences comprised only of I-pictures or I-pictures and P-pictures, with sequences comprised of I-pictures, P-pictures, and B-pictures in essentially any combination. The techniques also can be implemented to combine samples with different rates into a single media sequence. Additionally, the techniques can be implemented to permit the specification of a negative display offset from the decode time associated with a sample in a media sequence. Further, the techniques can be implemented to permit the editing of a video sequence without reference to buffering requirements during decoding. The techniques also can be implemented to lock the relationship between the decode times associated with samples included in the media sequence and the display times associated with the samples included in the media sequence prior to decoding.
These general and specific techniques can be implemented using an apparatus, a method, a system, or any combination of an apparatus, methods, and systems. The details of one or more implementations are set forth in the accompanying drawings and the description below. Further features, aspects, and advantages will become apparent from the description, the drawings, and the claims.
Like reference symbols indicate like elements throughout the specification and drawings.
The track 12 of digital video information represents the movie timescale and the image segments 14 and 16 included in the track 12 are sequentially ordered with respect to time. Therefore, the first image segment 14 in the track 12 is temporally ordered such that it precedes the second image segment 16. During forward play, the first image segment 14 will thus be displayed prior to the display of the second image segment 16. As with the image segments 14 and 16, each of the empty segments 18 included in the track 12 is temporally ordered with respect to the other segments.
The order of the image segments 14 and 16 and the empty segments 18 included in the track 12 is defined in an edit list 20. For each image segment and empty segment included in the track 12, there is a corresponding entry, or edit, in the edit list 20. Each edit defines parameters associated with the image segment or the empty segment to which it corresponds. For example, an edit may identify the point in the movie timescale at which the corresponding image segment or empty segment is to begin. The edit also may identify the duration, expressed in terms of the movie timescale, over which the corresponding image segment or empty segment will be played. Further, with respect to image segments, an edit identifies the rate at which the corresponding image segment is to be played back. A playback rate of 1.0 can be associated with the first image segment 14 to indicate that playback should occur at a rate equal to the timing information associated with the first image segment 14. Similarly, a playback rate of 2.0 can be associated with the second image segment 16 to indicate that playback should occur at a rate equal to twice the timing information associated with the second image segment 16.
The one or more samples comprising each of the image segments included in the track 12 are contained in the media 22. If the edit list 20 is modified to insert an additional image segment into the track 12 after the media 22 has been populated, the samples comprising the newly added image segment also are entered into the media 22. It is also possible to delete an image segment from the track 12 during editing, but the samples comprising the deleted image segment are not removed from the media 22. Once a sample has been added to the media 22, its intrinsic properties cannot be modified and the sample cannot be removed from the media 22. The media 22 thereby ensures that every sample associated with an image segment previously identified in the edit list 20 will be available if it is ever required in connection with the track 12.
The media 22 also incorporates the concept of a media timescale, which is a positive integer. The media can be subdivided into X units of media time, where X is a positive integer. The duration of each unit of media time can then be determined to be X÷(media timescale). As described above, the media 22 contains every sample associated with an image segment that has previously been inserted into the track 12. Therefore, the media 22 can be ordered as a sequential list of samples 24, wherein each sample is assigned a unique sample number. For example, the first sample 26 in the list of samples 24 can be assigned sample number S1. A sample duration 28 also is associated with each sample in the list of samples 24, indicating how long, in media time, a given sample will be displayed. Sample durations, which are expressed as positive integers, may differ among different samples in the media 22. The media duration 30, in turn, is equal to the sum of the sample durations for all of the samples included in the media 22.
The first sample 26 included in the media 22 has a sample time of zero, which also represents the zero point of the media timescale. The second sample 32 included in the media 22 has a sample time equal to the first sample duration 28, because the sample time of the first sample 26 is zero. Each subsequent sample included in the list of samples 24 has a sample time equal to the sum of the sample time of the preceding sample and the duration of the preceding sample. Therefore, the samples included in the media 22 partition the media time for the entire media duration 30 without any gaps.
The structure of the list of samples 24 as represented in
The track 52 also can include one or more empty segments 58, which are not associated with any video information and during which no video information is presented. In another implementation, the media sequence 50 can include two or more tracks of video information, and each of the tracks of video information can include one or more image segments. In such an implementation, an empty segment included in a first track can correspond temporally to an image segment included in a second track. In addition to the track 52 of digital video information, the media sequence 50 also can include one or more tracks of audio information and one or more tracks of text information (not shown).
Also as discussed above, the track 52 of digital video information represents the movie timescale and the image segments included in the track 52, such as the first image segment 54 and the second image segment 56, are sequentially ordered with respect to time. Further, the digital video information included in the track 52 can be encoded in a compressed format in order to reduce the amount of information that must be stored and to reduce the amount of bandwidth required to transmit the information. For example, the digital video information can be represented using only I-pictures, a combination of I-pictures and P-pictures, or a combination of I-pictures, P-pictures, and B-pictures.
The order of the image segments and the empty segments included in the track 52 is defined in the edit list 60. For each image segment and empty segment included in the track 52, there is a corresponding entry, or edit, in the edit list 60. Each edit defines parameters associated with the image segment or empty segment to which it corresponds. For example, an edit identifies the point in the movie timescale at which the corresponding image segment or empty segment is to begin. The edit also identifies the duration, expressed in terms of the movie timescale, over which the corresponding image segment or empty segment will be played. Further, with respect to image segments, an edit identifies the rate at which the corresponding image segment is to be played back. A playback rate of 1.0 can be associated with the first image segment 54 to indicate that playback should occur at a rate equal to the timing information associated with the first image segment 54. Similarly, a playback rate of 2.0 can be associated with the second image segment 56 to indicate that playback should occur at a rate equal to twice the timing information associated with the second image segment 56.
The media 62 incorporates the concept of a media timescale, which is a positive integer and is independent of the movie timescale associated with the track 52. The media can be subdivided into X units of media time, where X is a positive integer. The duration of each unit of media time can then be determined to be X÷(media timescale).
The one or more samples comprising each of the image segments presently or previously included in the track 52 are contained in the media 62. Unlike the media sequence 10 described with reference to
Once a sample has been added to the media 62, the sample cannot thereafter be removed from the media 62. The media 62 thereby ensures that every sample previously identified in the edit list 60 will be available if it is ever required in connection with the track 52. Further, once a sample has been added to the media, none of the intrinsic values associated with the sample can be modified. There is, however, one exception to this rule. If the sample is the last sample in the media, the sample decode duration corresponding to that sample can be increased by the amount required to make the media decode end time equal the media display end time.
The multiple timeline schema is based on the decode order of the samples included in the media 62, not the display order of the samples. As such, a sample decode duration is associated with each sample. The sample decode duration, which is always a positive value, indicates the difference between the start of the decode time of the associated sample and the start of the decode time of the next sample. For example, a first sample decode duration 72 is associated with the first sample 70 identified in the decode list of samples 66. Therefore, the sample decode duration indicates the period of the first sample 70 expressed in media time. The sample decode duration 72 does not, however, identify the amount of time required to decode the first sample 70. Sample decode durations associated with the samples identified in the decode list of samples 66 are not required to be identical.
The media decode duration 78, or media decode end time, is equal to the sum of the sample decode durations for every sample included in the media 62. The first sample 70 included in the media 62 has a sample decode time of zero, which also represents the zero point of the media timescale. The second sample 76 included in the media 62 has a sample decode time equal to the first sample decode duration 72, because the sample decode time of the first sample 70 is zero. Each subsequent sample identified in the decode list of samples 66 has a sample decode time equal to the sum of the sample decode time of the preceding sample and the sample decode duration of the preceding sample. Therefore, the samples included in the media 62 partition the media time for the entire media decode duration 78 without any gaps.
Each sample included in the media 62 also has a sample display offset, which can be a positive value, zero, or a negative value. The display time of a sample can therefore be derived by summing the sample decode time and the sample display offset associated with that sample. Additionally, the display time associated with a sample cannot be negative. Therefore, if the sample display offset is a negative value, the magnitude of the sample display offset can be no greater than the sample decode time. The media display end time 80 is derived by summing the display time associated with the last sample included in the media 62 with the decode duration associated with the last sample included in the media 62.
The display duration of a sample is not an intrinsic property associated with that sample, but is instead determined with reference to other samples. If a sample with a subsequent display time exists in the media 62, the display duration of the present sample can be determined as the difference between the display time of the present sample and the display time of the subsequent sample. If no sample with a subsequent display time exists in the media 62, the display duration of the present sample can be set equal to a placeholder value, such as the sample decode duration associated with the sample. Further, because a fixed display duration is not associated with the samples included in the media 62, the display duration associated with a sample is subject to change if one or more additional samples with subsequent display times are added to the media 62.
As can be seen in
Because B-pictures provide for a greater degree of compression and flexibility, it is advantageous to compress and encode a media sequence using a combination of I-pictures, P-pictures, and B-pictures. In the event the media sequence 50 includes one or more B-pictures, however, the ordering of the samples in the display list of samples 64 and the ordering of the samples in the decode list of samples 66 will differ as a result of the reordering that is required between decode and display.
The reordering necessitated by the use of B-pictures is further illustrated by the vectors used to logically associate the samples identified in the decode list of samples 116 with the corresponding samples identified in the display list of samples 114, such as the first vector 118. As illustrated by the first vector 118, the first sample 120 identified in the decode list of samples 116 will be decoded prior to the decoding of any other samples included in the media 112, but it will not be immediately displayed. Therefore, decoding of the samples included in the media 112 must begin at some point in time prior to the display of those samples. As such, an advance decode time is also associated with the media 112. The advance decode time is set to equal the magnitude of the largest negative display offset associated with a sample identified in the display list of samples 114. It is possible for the advance decode time to be zero under certain circumstances, such as when the samples included in the media 112 are encoded as I-pictures and P-pictures.
The advance decode time represents the period by which the sample decode time associated with the first sample 120 identified in the decode list of samples 116 precedes the display time associated with the sample 122 identified in the display list of samples 114 as the sample to be displayed first. Therefore, the advance decode time can be used to correlate the decode timeline with the display timeline. As described above, the display time associated with the sample 122 identified in the display list of samples 114 as the sample to be displayed first can be determined by summing the sample decode time and the sample display offset associated with the sample 122. If a track is edited after the advance decode time has been determined, the advance decode time must be recalculated before the media sequence can be displayed.
In order to properly display the media sequence 100, the decode timeline 152 must be shifted backward in time with respect to the display timeline 150 by a period equal to the advance decode time. The vector 164 associated with the eleventh sample 126 identified in the display list of samples 114 in
As discussed above, the only intrinsic value associated with a sample included in the media that can be modified is the sample decode duration associated with the last sample in the media.
For example, the imperfectly finished image segment 200 includes an I-picture represented by a first vector 206, a B-picture represented by a second vector 208, and an additional B-picture represented by a third vector 210. These samples are properly aligned. The imperfectly finished image segment 200 also includes a P-picture represented by a fourth vector 212. The sample decode duration associated with the P-picture represented by the fourth vector 212 terminates at a point in time 211 prior to the display time 213 associated with the P-picture. Therefore, if a separate image segment is subsequently inserted into the media sequence following the imperfectly finished image segment 200, the display times of two or more samples may collide. Thus, it is necessary to extend the sample decode duration associated with the P-picture represented by the fourth vector 212 in order to permit the P-picture to be properly displayed. The sample decode duration associated with the P-picture represented by the fourth vector 212 is extended by adding to it the amount of time necessary to make the media decode end time equal the media display end time. In another implementation, it may be necessary to extend the sample decode duration associated with the last sample in the media if an image segment with a different frame rate is subsequently inserted into the media sequence.
In
A number of implementations have been disclosed herein. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the claims. Accordingly, other implementations are within the scope of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
6084637 | Oku et al. | Jul 2000 | A |
6201925 | Brewer et al. | Mar 2001 | B1 |
6271774 | Kato | Aug 2001 | B1 |
6393204 | Setoguchi et al. | May 2002 | B2 |
6597858 | Linzer | Jul 2003 | B1 |
6611624 | Zhang et al. | Aug 2003 | B1 |
6654541 | Nishi et al. | Nov 2003 | B1 |
6678332 | Gardere et al. | Jan 2004 | B1 |
6952521 | Kelly et al. | Oct 2005 | B2 |
7027516 | Anderson et al. | Apr 2006 | B2 |
7558465 | Fuchie | Jul 2009 | B2 |
20020012400 | Nishi et al. | Jan 2002 | A1 |
20020087976 | Kaplan et al. | Jul 2002 | A1 |
20030175011 | Nagai et al. | Sep 2003 | A1 |
20040105499 | Kawa et al. | Jun 2004 | A1 |
20050117891 | Suzuki | Jun 2005 | A1 |
20060034375 | Ward | Feb 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060222320 A1 | Oct 2006 | US |