The present invention relates generally to multimedia files and more specifically to the indexing of information within a multimedia file.
In recent years, the playback of multimedia files has become an integrated part of the average consumer's daily life. Cellular telephones, DVD players, personal computers, and portable media players are all examples of devices that are capable of playing a variety of multimedia files. While each device may be tailored to a particular multimedia format, the extensive proliferation of these devices encourages a certain level of interoperability amongst the different device classes and categories. Likewise, there are certain features such as fast-forward, reverse, start, stop, play, and pause which are expected to behave similarly across all device categories, despite their performance capabilities and use-case application.
One of the most common features of media playback devices is the support for random access, fast-forward and reverse playback of a multimedia file, which is sometimes referred to as “trick play”. Performing trick play functionality generally requires displaying the video presentation at a higher speed in forward and reverse direction, and resuming the overall presentation from a position close to where the viewer terminated the video trick play activity. The audio, subtitle, and other elements of the presentation are typically not used during trick play operations, even though that can be subject to a device's operating preference. In accommodating trick play functionality, multimedia files typically contain an index section used to determine the location of all frames, and specifically the video frames which can be independently decoded and presented to the viewer. When all index information is stored in a single location within a file and linearly references the multimedia information within the file, a player must seek to a specific index entry in order to be able to play a file. For example, a player that is instructed to play a multimedia presentation at the half-way point of the presentation typically processes the first half of the index data before being able to determine the set of data points required to commence playing.
The index section has many other potential applications as well: it may be a necessary element in basic playback of multimedia files that exhibit poor multiplexing characteristics; the index section may also be used to skip over non-essential information in the file; also, an index is often required for the resumption of playback after the termination of trick play functions.
Embodiments of the invention utilize indexes that can increase the efficiency with which a player can perform a variety of functions including trick play functions. In several embodiments, the index is a hierarchical index. In many embodiments, the index is a reduced index and, in a number of embodiments, the index is expressed using bit field flags and associated data fields.
Turning now to the drawings, multimedia files including indexes in accordance with embodiments of the invention are described. In a number of embodiments, the index is a hierarchical index. A hierarchical index is a representation of index information in a form that provides a coarse index to a few predetermined locations within the multimedia file followed by a further refined representation of the portions of the multimedia file. In many embodiments, the lowest level of the index is sufficiently granular as to identify every frame in the multimedia file. When a hierarchical index is used, a player need only request a small amount of relevant index information in order to commence playing a multimedia file. As such, the hierarchical index lowers the memory footprint needed by playback devices to effectively seek and perform trick-play operations on a multimedia file. Additionally, file load times for playback are reduced and trick-track load performance enhanced. In one embodiment, the hierarchical index has index information that includes offsets into cue points within a multimedia file with timestamps allows lookups to be fast and efficient.
In several embodiments, the multimedia file includes a reduced index. Players in accordance with embodiments of the invention can utilize a reduced index to rapidly move between accesses or key-frames when performing trick play functions. The reduced index can be in conjunction with a hierarchical index. However, reduced indexes can be included in multimedia files that do not include a hierarchical index. A reduced index only provides the location of the accesses or key-frames within a multimedia file, along with a time-stamp value to indicate their corresponding time within the multimedia presentation. In a number of embodiments, bit field flags and associated data fields are used to represent index information. Such a representation can be used in accordance with embodiments of the invention to express index information, a hierarchical index and/or a reduced index.
A multimedia file containing a hierarchical index in accordance with an embodiment of the invention is shown in
In many embodiments, the index information 14 interleaved amongst the audio/video data 16 lists the location of encapsulated audio, video, subtitle, and/or other similar data. Typically, each block of interleaved index information lists the encapsulated media immediately following the block of interleaved index information. In several embodiments, the index information 14 contains information that describes the absolute or relative location of the start of each piece of encapsulated media. In a number of embodiments, the interleaved index information 14 includes the size of each indexed piece of encapsulated media, in addition to information indicating whether the indexed piece of encapsulated media can be used as an access or key-frame, its presentation time value, and other information, which may be helpful to a decoding device.
Each layer in the hierarchical index includes references to the interleaved index information 14 within the multimedia file 10. The implementation of the hierarchy structure can be inclusive or exclusive, meaning that the data in each layer can be repeated in the other layers or each layer may contain unique position information. In addition, the number of elements at each layer of a hierarchy and the total number of layers can be pre-determined, limited based on pre-determined values, or unbounded.
Although a specific implementation of a hierarchical index is shown in
A player attempting to decode a multimedia file that includes a hierarchical index in accordance with an embodiment of the invention typically uses the hierarchical index as necessitated by the functions the player is requested to perform. When trick play functions are requested, the player can locate an index in the hierarchy corresponding to a specific speed and decode each of the frames indicated by the index. The manner in which a specific frame is located using the index depends upon the nature of the index. In embodiments where each index in the hierarchy points directly to video frames, then the process is simple. In embodiments where the index points to additional index information within the multimedia file, the additional index information is accessed and used to locate a desired frame.
Many multimedia files in accordance with embodiments of the invention use reduced index information. Reduced indexes can be used in conjunction with a hierarchical index or in multimedia files that do not include a hierarchical index. A reduced index does not include information concerning every piece of multimedia information within a multimedia file. A reduced index typically is restricted to information concerning the location of access or key-frames and the time stamp of the access or key-frames. Access frames are generally video frames that can be independently decoded, although the reduced index can be used to point to any other type of key-frame for other streams stored in the multimedia file. The reduced index can enable a player to rapidly skip between key frames when performing trick play functions.
In a number of embodiments, a reduced index is only provided for a single or primary data type and offsets are provided for each of the other streams of data contained within the file which may be related to the primary data type. The offsets can be used by a player to facilitate synchronized playback of different media. In several embodiments, each piece of index information also includes the size of the access or key-frame and the data-type of the access or key-frame. A player decoding a multimedia file that contains a reduced index in accordance with an embodiment of the invention can use the reduced index to perform trick play functions in a similar fashion to the way in which a player uses a hierarchical index. The player can sequence through the reduced index inspecting the Timestamps of access or key frames to ascertain which frames to render in order to achieve a desired speed.
Multimedia files in accordance with a number of embodiments of the invention utilize bit field flags and associated data fields to express index information. In many embodiments, the bit field flags are used to signal the presence of a set of corresponding variable length data fields that contain index information. Bit field flags 31 and data fields 32 that can be used to express index information concerning a piece of multimedia information in accordance with an embodiment of the invention are shown in
The number of flags that can be represented via the structure shown in
Index information represented using the two relative offset values 41a,b is shown in
Through a set of pre-determined rules, structures similar to those described above can be applied for the representation of hierarchical indexing in accordance with embodiments of the invention. For example, the “Primary Offset” value 50 can point to a specific index position, along with the Timecode value 52 indicating the exact time-stamp of the index. An additional bit-field 39, the “Subindex”, can point to a relative offset from the position indicated by the “Primary Offset”. This “Subindex” position 54 is a refinement from the beginning of a larger index cluster. Use of various values to construct a hierarchical index in accordance with an embodiment of the invention is shown in
Bit field flags and associated data fields can also be used to represent a reduced index structure pointing to a series of access or key frames for a particular stream in a file. A reduced index in accordance with an embodiment of the invention is shown in
It is important to note that the use of flexible bit field flags enables the implementation of multiple data structures which may appear in the hierarchical, reduced, and conventional indexing schemes. The use of bit fields as flags indicating variable length data can help optimize the size of an overall index because not all members are in general required by all frames.
Referring now to
The devices are configured with client applications that can request portions of media files from the media server 192 for playing. The client application can be implemented in software, in firmware, in hardware or in a combination of the above. In many embodiments, the device plays media from downloaded media files. In several embodiments, the device provides one or more outputs that enable another device to play the media. When the media file includes an index, a device configured with a client application in accordance with an embodiment of the invention can use the index to determine the location of various portions of the media. Therefore, the index can be used to provide a user with “trick play” functions. When a user provides a “trick play” instruction, the device uses the index to determine the portion or portions of the media file that are required in order to execute the “trick play” function and requests those portions from the server. In a number of embodiments, the client application requests portions of the media file using a transport protocol that allows for downloading of specific byte ranges within the media file. One such protocol is the HTTP 1.1 protocol published by The Internet Society or BitTorrent available from www.bittorrent.org. In other embodiments, other protocols and/or mechanisms can be used to obtain specific portions of the media file from the media server.
Referring to
The Hierarchical Index is small enough for many low memory playback devices, e.g., low level consumer electronic devices, to hold the entire Index in memory and thus avoiding a complex caching scheme. In cases, where the Index is too large to store in memory or generally more feasible, no loss in seek accuracy occurs. With the Index being a lookup table or mechanism into the cues or defined seek points for each of the tracks and not the actual seek points, the dropping of portions of the Index can cause a few additional reads when searching the cues for a desired seek point. The playback device accesses the bit stream packets or frames of the transmitted media file to play the audio, video, and/or subtitles of the media file (114).
Upon a user request, e.g., a trick-play request, the playback device searches the loaded or cached Hierarchical Index to find an entry or hierarchical point equal to or nearest and preceding to the desired time or seek point (115). In one embodiment, the particular hierarchical point is located based on the presentation time or timestamp of the content being played and the user request, e.g., the speed and/or direction of trick-play function. In the illustrated case,
Utilizing the located cue, the playback device retrieves an offset value to seek and find the desired cluster (119). A block in the desired cluster that has a corresponding timestamp as the desired timestamp, e.g., 610, is located and decoded (120) for display by the playback device. The process continues until a user request stops playback of the media file.
This concept is further clarified in
The multimedia data within a Cluster 160 may be stored as a Block Group 163, where individual Blocks of data corresponding to one or more access units of the elementary audio, video, subtitle, or other multimedia information exist. As such, Clusters contain block groups but can also contain only simple blocks. In the absence of a Block Group, it may be possible that a Cluster can host individual Blocks or a Simple Block. The corresponding Cluster Position 155 from the Cue Point 152 is used to locate the Cluster 160 and the desired Block 161 can be identified based on its time stamp (Block Time 162). In case where an exact time stamp is not matched, the Block with the closest time stamp can be identified.
The procedure for locating a Block according to a particular time may be repeated for multiple tracks of multimedia data such that all of the data in the corresponding Blocks are presented in a synchronized manner.
While the above description contains many specific embodiments of the invention, these should not be construed as limitations on the scope of the invention, but rather as an example of one embodiment thereof. Accordingly, the scope of the invention should be determined not by the embodiments illustrated, but by the appended claims and their equivalents.
This application is a continuation of U.S. patent application Ser. No. 16/199,223, entitled “Systems and Methods for Playing Back Multimedia Files Incorporating Reduced Index Structures” to Soroushian et al., filed Nov. 26, 2018, which is a continuation of U.S. patent application Ser. No. 15/229,030, entitled “Systems and Methods for Playing Back Multimedia Files Incorporating Reduced Index Structures” to Soroushian et al., filed Aug. 4, 2016 and issued on Nov. 27, 2018 as U.S. Pat. No. 10,141,024, which is a continuation of U.S. patent application Ser. No. 13/560,884, entitled “Hierarchical and Reduced Index Structures for Multimedia Files” to Soroushian et al., filed Jul. 27, 2012, which is a continuation of U.S. patent application Ser. No. 12/272,631, entitled “Hierarchical and Reduced Index Structures for Multimedia Files” to Soroushian et al., filed Nov. 17, 2008 and which issued on Jul. 31, 2012 as U.S. Pat. No. 8,233,768, which application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application No. 60/988,513, entitled “Hierarchical and Reduced Index Structures for Multimedia Files” to Soroushian et al., filed Nov. 16, 2007. The disclosures of application Ser. Nos. 16/199,223, 15/229,030, 13/560,884, 12/272,631, and 60/988,513 are incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
60988513 | Nov 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16199223 | Nov 2018 | US |
Child | 17157801 | US | |
Parent | 15229030 | Aug 2016 | US |
Child | 16199223 | US | |
Parent | 13560884 | Jul 2012 | US |
Child | 15229030 | US | |
Parent | 12272631 | Nov 2008 | US |
Child | 13560884 | US |