The present invention relates to methods and apparatuses for preparing time related sequences of media data for transmission, and more particularly to packetized transmission of such media data.
There are various different file structures used today to store time-based media: audio formats such as AIFF, video formats such as AVI, and streaming formats such as RealMedia. One reason that such file structures are different is their different focus and applicability. Some of these formats are sufficiently relatively widely accepted, broad in their application, and somewhat simple to implement, and thus, may be used not only for content delivery but also as interchange formats. Foremost among these general formats is the QuickTime file format. It is used today in the majority of web sites serving time-based data; in the majority of authoring environments, including professional ones; and on the majority of multimedia CDROM titles.
The QuickTime media layer supports the efficient display and management of general multimedia data, with an emphasis on time-based material (video, audio, etc.). The media layer uses the QuickTime file format as the storage and interchange format for media information. The architectural capabilities of the layer are generally broader than the existing implementations, and the file format is capable of representing more information than is currently demanded by the existing QuickTime implementations.
In contrast to formats such as AVI, which were generally designed to support local random access of synchronized media, QuickTime allows systems to manage the data, relationships and timing of a general multimedia presentation. In particular, the QuickTime file format has structures to represent the temporal behavior of general time-based streams, a concept which covers the time-based emission of network packets, as well as the time-based local presentation of multimedia data.
The existing QuickTime file format is publicly described by Apple Computer in the May 1996 File format specification, which may be found at the QuickTime site, <http://.www.apple.com/quicktime>.
One aspect of the QuickTime file format is the concept that the physical structure of media data (the layout in disk records) is independent of, and described by, a logical structure for the file. The file is fully described by a set of “movie” meta-data. This meta-data provides declarative, structural and temporal information about the actual media data.
The media data may be in the same file as the description data, (the “movie” meta-data), or in other file(s). A movie structured into one file is commonly called “flat”, and is self-contained. Non-flat movies can be structured to reference some, or all, of the media data in other files.
As such, the format is generally suited for optimization in different applications. For example, when editing (compositing), data need not be rewritten as edits are applied and media is re-ordered; the meta-data file may be extended and temporal mapping information adjusted. When edits are complete, the relevant media data and meta-data may be rewritten into a single, interleaved, and optimized file for local or network access. Both the structured and the optimized files are valid QuickTime files, and both may be inspected, played, and reworked.
The use of structured (“non-flat”) files enables the same basic media data to be used and re-used in any number of presentations. This same advantage applies when serving, as will be seen below.
In both editing and serving, this also permits a number of other files to be treated as part of a movie without copying the media data. Thus editing and serving may be done directly from files such as Sun Microsystem's “au” audio format or the AVI video format, greatly extending the utility of these formats.
The QuickTime file is divided into a set of objects, called atoms. Each object starts with an atom header, which declares its size and type:
The size is in bytes, including the size and type header fields. The type field is four characters (usually printable), to permit easy documentation and identification. The data in an object after the type field may be fields, a sequence of contained objects, or both.
A file therefore is simply a sequence of objects:
The two important top-level objects are the media-data (mdat) and the meta-data (moov).
The media-data object(s) contain the actual media (for example, sequences of sound samples). Their format is not constrained by the file format; they are not usually objects. Their format is described in the meta-data, not by any declarations physically contiguous with them. So, for example, in a movie consisting solely of motion-JPEG, JPEG frames are stored contiguously in the media data with no intervening extra headers. The media data within the media data objects is logically divided into chunks; however, there are no explicit chunk markers within the media data.
When the QuickTime file references media data in other files, it is not required that these ‘secondary’ files be formatted according to the QuickTime specification, since such media data files may be formatted as if they were the contents of a media object. Since the QuickTime format does not necessarily require any headers or other information physically contiguous with the media data, it is possible for the media data to be files which contain ‘foreign’ headers (e.g. UNIX “.au” files, or AVI files) and for the QuickTime meta-data to contain the appropriate declarative information and reference the media data in the ‘foreign’ file. In this way the QuickTime file format can be used to update, without copying, existing bodies of material in disparate formats. The QuickTime file format is both an established format and is able to work with, include, and thereby bring forward, other established formats.
Free space (e.g. deleted by an editing operation) can also be described by an object. Software reading a file that includes free space objects should ignore such free space objects, as well as objects at any level which it does not understand. This permits extension of the file at virtually any level by introducing new objects.
The primary meta-data is the movie object. A QuickTime file has exactly one movie object which is typically at the beginning or end of the file, to permit its easy location:
The movie header provides basic information about the overall presentation (its creation date, overall timescale, and so on). In the sequence of contained objects there is typically at least one track, which describes temporally presented data.
The track header provides relatively basic information about the track (its ID, timescale, and so on). Objects contained in the track might be references to other tracks (e.g. for complex compositing), or edit lists. In this sequence of contained objects there may be a media object, which describes the media which is presented when the track is played.
The media object contains declarations relating to the presentation required by the track (e.g. that it is sampled audio, or MIDI, or orientation information for a 3Dscene). The type of track is declared by its handler:
Within the media information there is likewise a handler declaration for the data handler (which fetches media data), and a data information declaration, which defines which files contain the media data for the associated track. By using this declaration, movies may be built which span several files.
At the lowest level, a sample table is used which relates the temporal aspect of the track to the data stored in the file:
The sample description contains information about the media (e.g. the compression formats used in video). The time-to-sample table relates time in the track, to the sample (by index) which should be displayed at that time. The sync sample table declares which of these are sync (key) samples, not dependent on other samples.
The sample-to-chunk object declares how to find the media data for a given sample, and its description given its index:
The sample size table indicates the size of each sample. The chunkoffset table indicates the offset into the containing file of the start of each chunk.
Walking the above-described structure to find the appropriate data to display for a given time is fairly straightforward, generally involving indexing and adding. Using the sync table, it is also possible to back-up to the preceding sync sample, and roll forward ‘silently’ accumulating deltas to a desired starting point.
The QuickTime file format has a number of advantages, including:
Scalable, or layered, codecs can be handled in a number of ways in the QuickTime file format. For a streaming protocol which supports scalability, the samples may be tagged with the layer or bandwidth threshold to be met for transmitting the samples.
Tracks which form a set of alternatives (e.g. different natural language sound tracks) can be tagged so that only one is selected for playback. The same structure can be used to select alternatives for streaming (e.g. for language selection). This capability is described in further detail in the QuickTime file format.
When QuickTime displays a movie or track, the appropriate media handler accesses the media data for a particular time. The media handler must correctly interpret the data stream to retrieve the requested data. For example, with respect to video media, the media handler typically traverses several atoms to find the location and size of a sample for a given media time. The media handler may perform the following:
It is often desirable to transmit a QuickTime file or other types of time related sequences of media data over a data communication medium, which may be associated with a computer network (e.g. the Internet). In many computer networks, the data which is transmitted into the network should generally be in a packet form. Normally, time related sequences of media data are not in the proper packetized format for transmission over a network. For example, media data files in the QuickTime format are not in a packetized format. Thus, there exists a need to collect the data, sometimes referred to as streaming data, into packets for transmission over a network.
One prior approach to address the problem of transmitting time related sequences of media data over a network is to send the media file over the network using a network or transmission protocol, such as the Hypertext Transfer Protocol (HTTP). Thus, the media file itself is sent from one computer system over the network to another computer system. However, there may be no desire to retain the media file at the receiving computing system. That is, when the media file is received and viewed or listened to at the receiving computer system, there may be no desire by the user of that receiving computer system to store a copy of the file, for example, if the receiving computing system is a network computer or a computer with low storage capacity.
Another alternative approach to solving the problem of how to collect data for transmission by packets over a network is to prepare a file which contains the network protocol data units in the file for a particular transmission protocol. In a sense, such a file may be considered a packetized file which is stored in essentially the same format as it will be transmitted according to the particular transmission protocol. Performing this operation generally involves storing the file in a packetized form for a particular network protocol at a particular data transmission rate and a particular media file format. Thus, for each different transmission protocol at a particular data transmission rate, the file will essentially be replicated in its packetized form. The fixed form of such files may restrict their applicability/compatibility and make it difficult to view such files locally. Thus, such an approach may greatly increase storage requirements in attempting to provide the file in various transmission protocols at various different data transmission rates. Moreover, each packetized file generated according to this alternative prior approach is generally limited to a particular media file format, and thus, other media file formats for the same media object (e.g. a digital movie) are typically packetized and stored on the sending computer system.
Yet another approach to solving the problem of how to stream time related sequences of media data is to perform the packetization of the media data when required on the transmitting system according to the particular transmission protocol which is desired. This processing requires, in many cases, a relatively considerable amount of time, and thus, may slow the performance of the transmitting system.
Thus, it is desirable to provide an improved method and apparatus for transmitting time related sequences of media data.
The present invention provides methods and apparatuses for processing media data transmitted in a data communication medium. In one embodiment, a digital processing system receives a time related sequence of media data provided to the digital processing system based on a set of data, wherein the set of data indicates a method to transmit the time related sequence of media data according to a transmission protocol. The set of data, itself, is a time related sequence of data associated with the time related sequence of media data. The time related sequence of media data may be presented and/or stored by the digital processing system.
The present invention provides methods and apparatuses for allowing the transmission, and particularly the packetized transmission of time related sequences of media data, which may include, for example, video, audio, video and audio, etc., over a communication media, such as in a computer network.
In one embodiment of the present invention, a digital processing system creates a set of data for indicating how to transmit a time related sequence of media data according to a transmission protocol. Typically, this set of data is stored on a storage device coupled to the digital processing system. Further, this set of data is a time related sequence of data associated with the time related sequence of media data.
The present invention may be implemented entirely in executable computer program instructions which are stored on a computer readable media or may be implemented in a combination of software and hardware, or in certain embodiments, entirely in hardware. Typically, a server computer system coupled to a network will create the set of data, which may be referred to as a hint track and will store this hint track in a storage device which is coupled to the server computer system. When a client computer system requests a presentation (e.g. a viewing or listening or viewing and listening) of a media data file, the server system uses the hint track to determine how to packetize the media data for transmission to the client computer system. It will be appreciated that the present invention is generally applicable to time related sequences of media data, and that QuickTime is represented herein as one example of this general applicability. Thus, the invention should not necessarily be limited to QuickTime.
In step 305, a digital processing system, such as a server computer system, creates and stores the hints for packetizing a time related sequence of media data in a media file. Alternatively, one computer system may create the hints and provide them to another system, such as a server computer system, which stores them for later use in a transmission process. The packetization allows the transmission over a network or communication media according to the desired transmission protocol which was determined in step 303. In one embodiment of the present invention, the hints are stored as a track of time related sequence of hints which refers to, but which in one embodiment, is separate from other tracks of media data. The track of hints, in one embodiment of the present invention, may be stored separately from the media data to which it refers. As such, the track of hints may be stored in a file which is distinct from another file containing the media data which is referred to by the track of hints, or the track of hints may be stored in a hint area in the file containing the media data which is separate and distinct from the data area containing the actual media data. In one embodiment of the invention, a hint track, or portion thereof, may be interpreted as executable instructions by the server, which executable instructions cause the server to packetize a time related sequence of data, which is typically, but not necessarily, time-based media data. In one embodiment of the present invention, the hints are stored on the storage device which is coupled to the transmitting digital processing system.
In step 307, the data which is packetized according to the hints, is transmitted from a transmitting system, such as a server computer system, to a receiving system. This media data is transmitted by packetizing the media data according to the hints. In one alternative embodiment of the invention, the server computer system may decide not to use the hints and to send the media data by an alternative packetization process.
In step 309, the receiving system presents the media object which is represented by the media data. Typically, this presentation (which may be a viewing and listening of a media object or merely a viewing or merely a listening of the media object) is performed as the packetized data is received at the receiving system. The packetized data may, in one embodiment of the present invention, but need not be, stored on the receiving system. Thus the presentation of the data is ephemeral in the sense that once the presentation is over, there is no local copy at the receiving system. In another embodiment, presentation of the media object may take place on the server system subsequent to creating hints for the media data representing the media object. In one embodiment of the invention, the media data is not necessarily (re)formatted, copied, etc., for packetization according to hints.
In step 311, the receiving system may optionally reassemble the media file if the media file as received has been stored on the receiving system. It will be appreciated that the various steps of the method shown in
A particular implementation with QuickTime according to one embodiment of the present invention will now be described. In one embodiment of the present invention, a presentation which can be both viewed locally to the file (e.g., at a server, generator, etc.), and streamed over a network within a QuickTime movie is provided. In general, the streaming server (or another system) should have information about the data units to stream, their composition and timing. Since such information is typically temporal it may be described in tracks. A server may perform packetization and determine protocol information, for example, by using the same indexing operations as would be used to view a presentation.
The tracks which contain instructions for the servers are sometimes referred to as ‘hint’ tracks, since such tracks represent a set of data to direct the server in the process of forming and transmitting packets. The QuickTime file format supports streaming of media data over a network as well as local playback. The process of sending protocol data units is time-based, just like the display of time-based data, and is therefore suitably described by a time-based format. A QuickTime file or ‘movie’ which supports streaming includes information about the data units to stream. This information is included in additional tracks of the file called “hint” tracks.
Hint tracks contain instructions for a streaming server (or other digital processing system) which assist in the formation of packets. These instructions may contain immediate data for the server to send (e.g. header information) or reference segments of the media data. In one embodiment of the present invention, instructions are encoded in the QuickTime file in the same way that editing or presentation information is encoded in a QuickTime file for local playback. Instead of editing or presentation information, information may be provided which may allow a server to packetize the media data in a manner suitable for streaming using a specific network transport.
In one embodiment of the present invention, the same media data is used in a QuickTime file which contains hints, whether it is for local playback, or streaming over a number of different transport types. Separate ‘hint’ tracks for different transport types may be included within the same file and the media may play over all such transport types without making any additional copies of the media itself. In addition, existing media may be made streamable by the addition of appropriate hint tracks for specific transports. According to one aspect of the invention, media data itself need not be recast or reformatted.
Therefore the samples in a hint track generally contain instructions to form packets. These instructions may contain immediate data for the server to send (e.g. header information) or reference segments of the media data in another track.
In one embodiment of the present invention, a three-level design is utilized such that:
In one embodiment of the present invention, the resulting streams, sent by the servers under the direction of the hint tracks, are normal streams, and do not necessarily include a trace of QuickTime information. This embodiment of the invention does not require that QuickTime, or its structures or declaration style, necessarily be either in the data on the transmission medium (e.g. network cable) or in the decoding station. For example, a file using H.261 video and DVI audio, streamed under RTP, may result, in one embodiment of the present invention, in a packet stream which is fully compliant with the IETF specifications for packing those codings into RTP.
In one embodiment of the invention, hint tracks are built and flagged so that when the presentation is viewed locally, the hint tracks are essentially ignored by a receiving system.
In one embodiment, a time related sequence of media data, which may, for example, include video, audio, etc., may be packetized by a digital processing system, and then presented on the same digital processing system. Furthermore, packetization may be ephemeral, such that the time related sequence being presented, stored, read, etc., is also packetized “on the fly.” In one embodiment, hints may refer to media data that has not been copied, formatted, etc.; for example, the media data to which hints refer may be stored in original format on a read-only memory, etc.
In one embodiment, the same hinting routine that provides packetization also presents the media as packetization is performed. In alternative embodiments of the invention, a packetized file of time related media data may be generated according to hint tracks and stored, for example, for later transmission.
As discussed above, the logical structure described above need not imply physical structure. The meta data may be cached in memory, and the hint track samples physically interleaved with the media samples to which they refer (as is shown in
Alternatively, it is possible to write a new set of meta data and media data, containing the hint tracks, which references and augments the meta data and media data in an existing presentation.
In one embodiment of the present invention, a media file may contain packetization hint tracks for multiple protocols. As such, each track may contain declarations of the protocol (and protocol parameters, if appropriate) for which the hint track is appropriate. These tracks may all, of course, reference media data from the basic media tracks in the file. The desire for protocol independence and extensibility may be met in the described manner.
In one embodiment of the present invention, hint tracks need not use all the data in the media tracks. The hint tracks may use a subset of the data (e.g. by omitting some video frames) to reach a bandwidth threshold, or for other reasons. Since multiple hint tracks may be provided for the same protocol, differing subsets of the same basic media information at different rates may be provided. As such, the present invention may provide improved scalability over prior methods and apparatuses.
It should be emphasized that though the hint tracks themselves, and the QuickTime meta-data, should, in one embodiment, be in QuickTime files, the base media can be left in any file type which QuickTime can import and reference in place. In one embodiment of the present invention, the meta-data in the movie file may include a data reference which declares that the media data is in another file. The sample table offsets and pointers may thus refer to data in this ‘foreign’ file. Thus, according to one embodiment of the present invention, existing legacy formats such as “au” audio files, “AVI” audio/video files, and MIDI files, may be streamed without requiring the copying or reformatting of the base media data. Since the base media data is not written to, but merely augmented by QuickTime declarations and hint information in separate files, the base media data may also be provided on read-only machine readable media such as CDROM.
In one embodiment of the present invention, the hint tracks embody the results of off-line computation and are typically optimized to provide the server with information to support packetization, and if needed, multiplexing.
Example hints, for example, for RTP (the IETF standard real-time protocol) and MPEG-2 transport are shown in Appendixes A-C.
In one embodiment of the present invention, a single file may support hint tracks for multiple protocols, or multiple different parameterizations of the same protocols, without undue space overhead. New protocols, and their associated hint tracks, may be designed without disrupting systems relying on existing protocols. Thus the invention, at least in one embodiment, is protocol-neutral.
In the QuickTime file format, a track may be added to the movie by updating or copying and augmenting the meta-data. If the media data is in files separate from the meta-data, or optimized interleave is not required, this can be a relatively simple and efficient operation.
In one embodiment of the present invention, tracks may be extracted by building a new set of movie meta-data which contains only one track, and which can, if desired, reference the media data in the original.
For example, in one embodiment of the present invention, a new audio track may be added which is marked as being an alternative to a set of other audio tracks. If it is also marked with the language code (e.g. French, or Tagalog), then the appropriate track may be selected at presentation time.
SMPTE time-code tracks are an example of elementary streams which may be present, added, or removed, as need arises, according to one embodiment of the invention.
According to one aspect of the invention, hint tracks may permit the development of new formats for new protocols without causing compatibility issues for existing servers or local playback. In addition, new media tracks may be added over the life of the file format while maintaining backwards compatibility.
In one embodiment of the present invention, the areas of extensibility include:
Existing content on read-only media may be used with the present invention (e.g., prepackaged movies on CD ROM, DVD, etc.).
Furthermore, according to one aspect of the invention, various “foreign” file formats may be used. In one embodiment of the present invention, for example, if the existing content is either in QuickTime format, or can be imported, it may be edited and streamed without requiring copying or re-formatting.
In one embodiment of the present invention, if a codec supports striping of the media data to achieve scalability of bandwidths, then these striped bandwidths may be represented using multiple stream tracks. Each track may represent a different bandwidth. Tracks may be grouped together in selected subsets of the basic media.
In one embodiment of the present invention, if a protocol supports bandwidth scalability, then the hint track itself may contain information for each protocol data unit (sample in the hint track). Information may include the bandwidth threshold above which the protocol data unit should be delivered to the network. Thus, hint tracks may indicate an available bandwidth as being high, low, etc., and/or other information relating to bandwidth for data transmission.
In one embodiment of the present invention, if the protocol is a multiplexing protocol (e.g. MPEG-2 transport) then different hint tracks may be built which use a different subset of the elementary stream tracks to achieve different data-rates. Hence, some tracks may be omitted entirely for low bit-rate transmission.
In one embodiment of the present invention, if it is desired to record the base data using different codecs, then those tracks may be formed into a group of alternatives, and only one selected for presentation. The selection of which track to use for presentation is typically protocol-dependent and may be achieved by using the hint track approaches described herein.
In one embodiment of the present invention, encryption may also be pre-applied to a media file. In this case, the encrypted data may be stored in either (a) a new elementary stream (a new track) which is linked to the original media data (or the original media data may be removed if it is no longer needed) or (b) the hint track itself. In case (b), it is possible that the hint track does not extract any data from the elementary un-encrypted stream on the fly. Thus, all of the media data may be in the hint track as well as the streaming packet protocol data unit information, because the media data may be transformed by encryption.
As an example of embedded object content information, the IETF session description information for a whole movie, and for individual tracks, may be stored in the meta-data for the RTP hint tracks, as user atoms.
In one embodiment of the present invention, a file format typically contains both media data in a playable format, and streaming information. In one embodiment, it is possible to stream directly from this format with relatively low overhead, while preserving the media independence, protocol independence, and ability to present the media locally.
According to one aspect of the invention, hint tracks may abstract detailed knowledge of codecs, timing and packetization, into an off-line preparation process. Thus, following the hint tracks to generate the data stream may be relatively simple and require no specialized knowledge of the media being streamed. Thus, decoupling of a server, for example, from the details of the data content may be provided, according to one aspect of the invention.
In one embodiment of the present invention, a set of hint tracks may be used to construct a file which is directly optimized for streaming—for example, by laying out network PDUs on disk at logical disk boundaries, in the time sequence in which they should sent. Such a file may no longer be a general presentation, but may be streamed. In one embodiment, packetized files created with hint tracks may be stored and, for example, later optimized for streaming.
In one embodiment of the present invention, by encapsulating foreign file formats, media data may be retained in other formats while still be published in QuickTime. For example, an existing format may be directly encapsulated into a new media data file by applying the proper wrapper, or may be left intact and referred to in segments or as a whole by the hint track, allowing the legacy formats to be streamed without copying. A single movie may contain pieces selected from multiple legacy formats. This invention does not constrain the base media format.
In general, a common format which spans capture, authoring and editing, download and streaming, will generally provide flexibility. Material may be reworked after use, or used in multiple ways, without being copied or re-formatted. In one embodiment of the present invention, it is possible to re-work and re-use material which has been hinted, by stripping the hint tracks, using standard editors, and then re-hinting after editing is completed.
If it is desired that a media file be downloaded for local viewing, an optimized interleaved file may be built for that purpose, with the streaming meta-data in a separate declaration file referencing the same base media data. The download may not, therefore, include the streaming information, and yet the media data may be present only once at a streaming server.
By separating logical structure from physical structure, the physical structure of the file may be optimized differently depending on the application (e.g. editing, local viewing, streaming).
By permitting the existence of multiple hint tracks for each media track, in one embodiment of the present invention, the file may be published by streaming over multiple protocols, without requiring multiple copies of the media.
The Web server 628 is typically comprised of at least one computer system to operate with one or more data communication protocols, such as the protocols of the World Wide Web, and as such, is typically coupled to the Internet 622. Optionally, the Web server 628 may be part of an ISP which may provide access to the Internet and/or other network for client computer systems. The client computer systems 602, 604, 618, and 620 may each, with appropriate web browsing software, access data, such as HTML documents (e.g., Web pages), which may be provided by the Web server 628. Such data may provide media, such as QuickTime movies, which may be presented by the client computer systems 602, 604, 618, and 620.
The ISP 624 provides Internet connectivity to the client computer system 602 via a modem interface 606, which may be considered as part of the client computer system 602. The client computer system may be a conventional computer system, such as a Macintosh computer, a “network” computer, a handheld/portable computer, a Web TV system, or other types of digital processing systems (e.g., a cellular telephone having digital processing capabilities). Similarly, the ISP 626 provides Internet connectivity for the client computer systems 604, 618 and 620, although as depicted in
The system 600 may allow one or more of the client computer systems 602, 604, 618, and 620 and/or the Web server 628 to provide media data (e.g., video and audio, or video, or audio) to another one or more of the client computer systems 602, 604, 618, and 620 and/or the Web server 628. Such data may be provided, for example, in response to a request by a receiving system, which may be, for example, one or more of the client computer systems 602, 604, 618, and 620. As described herein, such media data may be transferred in the system 600 according hints or hint tracks. Such hints, in one embodiment of the invention, may be created according to a specific format of the media data and/or a specific data communication (e.g., network) protocol(s) to allow, according to one aspect of the invention, packetization of media data.
The digital processing system 650 includes a processor 652, which may represent one or more processors and may include one or more conventional types of such processors, such as a Motorola PowerPC processor, an Intel Pentium (or x86) processor, etc. A memory 155 is coupled to the processor 652 by a bus 656. The memory 155 may be a dynamic random access memory (DRAM) and/or may include static RAM (SRAM). The processor may also be coupled to other types of storage areas/memories (e.g., cache, Flash memory, disk, etc.), which could be considered as part of the memory 155 or separate from the memory 155.
The bus 656 further couples the processor 652 to a display controller 658, a mass memory 662, the modem or network interface 668, and an input/output (I/O) controller 664. The mass memory 662 may represent a magnetic, optical, magneto-optical, tape, and/or other type of machine-readable medium/device for storing information. For example, the mass memory 662 may represent a hard disk, a read-only or writeable optical CD, etc. The display controller 658 controls in a conventional manner a display 660, which may represent a cathode ray tube (CRT) display, a liquid crystal display (LCD), a plasma display, or other type of display device. The I/O controller 664 controls I/O device(s) 666, which may include one or more keyboards, mouse/trackball or other pointing devices, magnetic and/or optical disk drives, printers, scanners, digital cameras, microphones, etc.
It will be appreciated that the digital processing system 650 represents only one example of a system, which may have many different configurations and architectures, and which may be employed with the present invention. For example, Macintosh and Intel systems often have multiple busses, such as a peripheral bus, a dedicated cache bus, etc. On the other hand, a network computer, which may be used as a digital processing device of the present invention, may not include, for example, a hard disk or other mass storage device, but may receive routines and/or data from a network connection, such as the modem or interface 668, to be processed by the processor 652. Similarly, a Web TV system, which is known in the art, may be considered to be a digital processing system of the present invention, but such a system may not include one or more I/O devices, such as those described above with reference to I/O device(s) 666. Additionally, a portable communication and data processing system, which may employ a cellular telephone and/or paging capabilities, may be considered a digital processing system which may be used with the present invention.
In the system 650 shown in
The server 694 includes a hint generation and processing unit 688, a media processing unit 690, and a data communication unit 692, each of which may include hard-wired circuitry or machine-executable instructions or a combination thereof. Furthermore, at least a portion of such hard-wired circuitry and/or machine-executable instructions may be shared between a combination of the hint generation and processing unit 688, the media processing unit 690, and the data communication unit 692. In one embodiment, at least one storage area/memory (e.g., a machine-readable medium) having appropriate routines and/or data stored therein coupled to at least one processor is utilized, at least in part, to implement one or a combination of the hint generation and processing unit 688, the media processing unit 690, and the data communication unit 692.
In one embodiment, the hint generation and processing unit 688 creates and stores hints for packetization of media data processed by the media processing unit 690. As described above, the hints may be generated and stored as a separate file, relative to media files or may be embedded with media data. If more than one media format is to be processed, an appropriate format may be taken into consideration by the hint generation and processing unit 688 to generate the hints. Information about the media format may be provided by the media processing unit 690, which may also provide the media data (e.g., media files of video, audio, or video and audio, etc.). Similarly, the data communication unit 692 may provide one or more data communication (e.g., network) protocols for exchange of such media data, packetized according to the hints, via the data communication link 686. As such, the hint generation and processing unit may determine, based on media format information provided by the media processing unit 690 and data communication protocol information provided by the data communication unit 692, appropriate hints and packetization of media and/or the hints for transfer to a receiving digital processing system, such as the client data processing system 682. In one embodiment, the streaming of the media and hints is done in accordance with the QuickTime format.
In response to media data and hint packets received via the data communication link 686, the client data processing system 682 may present a media object represented by the media data. Such presentation may be performed ephemerally, as described above. In one embodiment of the invention, the media data may optionally be stored by the client data processing system 682 and reassembled, for example, at a later time, for presentation and/or transmission by the client data processing system 682.
In one embodiment, the operation of the system 696 is as follows: the server 700 makes a request to the generator 710 to generate hints for one or more media files containing media data. For example, the media files may be stored in the server 700 on a machine-readable medium. The request may include information to indicate the format of the media file and/or a data communication protocol for transmission of the media data and/or other data. The data communication protocol may be related to the data communication link 686, which may, in one embodiment of the invention, be associated with a network connection having particular physical and logical characteristics to facilitate exchange of media and/or other data between the server 700 and the client data processing system 682. In response to the request, the hint generation unit 712 generates appropriate hints, which may be associated with a time-related hint track, and provides the hints to the server 700. In response to the hints received from the generator 710, via the data communication link 708, the server 700, and in particular, a hint processing unit 702 uses the hints to packetize the media data for transmission to the client data processing system 682.
In response to media data and hint packets received via the data communication link 686, the client data processing system 682 may present a media object represented by the media data. Such presentation may be performed ephemerally, as described above. In one embodiment of the invention, the media data may optionally be stored by the client data processing system 682 and reassembled, for example, at a later time, for presentation and/or transmission by the client data processing system 682.
In step 726, which is optional, the hints may be transmitted to another digital processing system. In one embodiment of the invention, for example, the method of
In step 732, a media object represented by the media data received by the receiving system is presented by the receiving system. For example, the media data may include video, audio, or combination thereof that is “presented” by the receiving system, for example, on a display and speaker(s). As mentioned above, the media data may be associated with a QuickTime movie.
Optionally, in step 734, the media data, which may include hints, may be stored by the receiving system as a media file(s). Thus, in alternative embodiments of the invention, step 732 may not be performed as the media data is received, or may be performed before, after, or in parallel with step 734.
In step 734, the stored media file may optionally be reassembled and/or presented. As such, step 732 may be performed subsequent to step 734.
As shown in
In addition, the machine readable storage medium 740 includes routines and data for creating hints associated with media transmission. As such, the machine readable storage medium 740 may optionally include information 750, which may provide information relating to one or more data communication protocols and media formats which may be necessary for creation of hints by a hint creation routine(s) 744. For example, the information 750 may include information relating to QuickTime movies, RTP, MPEG, etc. However, such information may, at least in part, be integrated into the hint creation routine 744 and/or be provided to the generator by a remote digital processing system.
The hints created by the hint creation routine(s) 744 may be stored as created hints 746 and/or stored/transmitted elsewhere (e.g., at a remote digital processing device, which may be a server). The hints are hint tracks that are time-related for packetization and transmission of media data, which is also time-related (e.g., video, audio, video and audio, etc.).
Although the machine readable storage medium 740 is described with reference to a generator, the medium 740, at least in part, may be part of a number of types of digital processing systems, data storage media, etc. For example, the machine readable storage medium 740, at least in part, may be included as part of a server or other digital processing system. Furthermore, the machine readable storage medium 740, at least in part, may be included as part of a software utility on one or more disks or other machine readable media.
The machine readable storage medium 760 includes a number of elements. For example, the machine readable storage medium 760 includes software for providing operating system functionality to the server, as depicted by a server operating system (OS) 762. A network transmission routine(s) 768 provides data communication functionality, such as routines, protocols, etc., to allow the server to transmit and receive data via a data communication link.
In addition, the machine readable storage medium 760 includes a media packetization routine 770 for packetizing media data, which may be time-related, based on hints, and which may also be packetized. Accordingly, the machine readable storage medium 760 includes a media data storage area 764 and a hint storage area 766 to store media data (which may, for example, be QuickTime movies or other media tracks) and hints (e.g., hint tracks), respectively. The hints may include hint tracks that are time-related for packetization and transmission of media data, which is also typically time-related (e.g., video, audio, video and audio). In one embodiment, the hint tracks are packetized separately from the media data packets. In one embodiment, hints include pointer information identifying media data (e.g., a particular packet(s)) which may be in a separate media file.
The machine readable storage medium 780 may include a number of elements. For example, the machine readable storage medium 780 includes software for providing operating system functionality to the receiving system, as depicted by a server operating system (OS) 772. A network transmission routine(s) 782 provides data communication functionality, such as routines, protocols, etc., to allow the server to transmit and receive data via a data communication link.
In addition, the machine readable storage medium 780 includes a media presentation routine 778 for presenting media data packetized according to hints. Thus, the machine readable storage medium 780, and in particular, the media presentation routine 778, may include routines for decompression of audio and/or video data, displaying of video, and/or playing back audio, etc. Furthermore, the media presentation routine 778 typically provides handling of hints that are associated with the media data. In one embodiment, the hints are simply ignored as media is presented.
Optionally, the machine readable storage medium 780 may store media data that has been packetized according to hints as media data 774, and include a media data reassembly routine 776 to reassemble to the stored media data (e.g., to be presented, transmitted, etc.).
The hint packet 806 and the media packet 804 may be integrated into one packet or be stored and/or transported separately, as depicted in
Provided below are some example formats of hints. It will be appreciated that the present invention, however, may be utilized with various types of network protocols, digital processing system architectures, media formats, etc., to provide transmission of time-based data.
While the invention has been described in terms of several embodiments and illustrative figures, those skilled in the art will recognize that the invention is not limited to the embodiments or figures described. In particular, the invention can be practiced in several alternative embodiments that provide packetization of time related media data.
Therefore, it should be understood that the method and apparatus of the invention can be practiced with modification and alteration within the spirit and scope of the appended claims. The description is thus to be regarded as illustrative instead of limiting on the invention.
In one embodiment of the present invention, each hint track has a table of sample descriptions. Hint tracks typically have one sample description. The format for each sample description entry for a hint track, according to one embodiment of the present invention, is described below in Table 1.
The packetization hint header atom contains the following data elements:
The structure for the additional data table entries is shown in Table 2.
The additional data table entries contain the following data elements:
The following data tags may defined for several various types of data format types. Other tags may be created as required.
The following data format types are defined. New types may be defined as needed.
The following data tag is utilized in one embodiment for ‘rtp’ data.
The following data tags are optional for ‘rtp’ data.
This section presents one example of a hint track format for streaming RTP from a QuickTime movie.
In standard RTP, each media stream is typically sent as a separate RTP stream. Multiplexing is generally achieved by using IP's port-level multiplexing, not by interleaving the data from multiple streams into a single RTP session. Therefore each media track in the movie should have an associated RTP hint track. In one embodiment of the present invention, each hint track contains a track reference back to the media track which it is streaming.
In this example, the packet size is determined at the time the hint track is created. Therefore, in the sample description for the hint track (a data structure which can contain fields specific to the ‘coding’—which in this case is a protocol), the chosen packet size is indicated. In one example of the present invention, several RTP hint tracks are provided for each media track to provide different packet size choices. Other protocols may be parameterized as well. Similarly, the appropriate time-scale for the RTP clock is provided in the sample description below.
The hint track is related to its base media track by a single track reference declaration. (RTP does not permit multiplexing of media within a single RTP stream). The sample description for RTP declares the maximum packet size which this hint track will generate. Session description (SAP/SDP) information is stored in user-data atoms in the track.
Each sample in the RTP hint track contains the instructions to send out a set of packets which must be emitted at a given time. The time in the hint track is emission time, not necessarily the media time of the associated media.
In the following description the internal structure of samples, which are media data, not meta data, in the terminology of this example is described, need not be structured as objects.
In this example, each sample contains two areas: the instructions to compose the packets, and any extra data needed when sending those packets (e.g. an encrypted version of the media data).
Each RTP hint packet contains the information to send a single packet. In one embodiment, to separate media time from emission time, an RTP time stamp is specifically included, along with data needed to form the RTP header. In alternative embodiments, however, this is not the case. Other header information is typically supplied. A table of construction entries is constructed as follows:
There are various forms of the constructor. Each constructor is 16 bytes, which may make iteration relatively simple. The first byte is a union discriminator:
The immediate mode permits the insertion of payload-specific headers (e.g. the RTP H.261 header). For hint tracks where the media is sent ‘in the clear’, the mediasample entry may specify the bytes to copy from the media track, by giving the sample number, data offset, and length to copy. For relatively complex cases (e.g. encryption or forward error correction), the transformed data may be placed into the hint samples, and then hintsample mode may be used, which would be provided from the extradata field in the RTPsample itself.
In one example of the present invention, there is no requirement that successive packets transmit successive bytes from the media stream. For example, to conform with RTP-standard packing of H.261, in one example of the present invention, a byte may be sent at the end of one packet and also at the beginning of the next (when a macroblock boundary falls within a byte).
Appendix C—Packetization Hint Sample Data for Data Format ‘rtp’
This appendix provides a description of the sample data for the ‘rtp’ format, according to one embodiment of the invention. The ‘rtp’ format assumes that a server is sending data using Real Time Transport Protocol (RTP). This format assumes that the server knows about RTP headers, but does not require that the server know anything about specific media header, including media headers defined in various IETF drafts.
In one embodiment of the present invention, each sample in the hint track will generate one or more RTP packets. Each entry in the sample data table in a hint track sample corresponds to a single RTP packet. Samples in the hint track may or may not correspond exactly to samples in the media track. In one embodiment of the present invention, data in the hint track sample is byte aligned, but not 32-bit aligned.
Field Descriptions:
In one embodiment, the packet entry contains the following data elements:
The RTP header information field contains the following element:
The RTP header information field contains the following elements:
The data source field of the entry table indicates how the other 15 bytes of the entry are to be interpreted. Values of 0 through 4 are defined. The various data table formats are defined below. Although there are various schemes, the entries in the various schemes are typically 16 bytes long.
The data table entry has the following format for no-op mode:
Field Description:
Data source=0 A value of zero indicates that this data table entry is to be ignored.
The data table entry has the following format for immediate mode:
Field Description:
The data table entry has the following format for sample mode:
Field Description:
If the bytes per compression block and/or the samples per compression block is greater than 1, than this ratio is used to translate a sample number into an actual byte offset. This ratio mode is typically used for compressed audio tracks in QuickTime movies, such that:
CB=NS*BPCB/SPCB
wherein,
CB=compressed bytes
NS=number of samples
BPCB=bytes per compression block
SPCB=samples per compression block
For example, a GSM compression block is typically 160 samples packed into 33 bytes. Therefore, BPCB=33 and SPCB=160. The hint sample requests 33 bytes of data starting at the 161st media sample. Assuming that the first QuickTime chunk contains at least 320 samples, so after determining that this data will come from chunk 1, and where chunk 1 starts, the ratio is utilized to adjust the offset into the file where the requested samples will be found:
The data table entry has the following format for sample description mode:
1 Additional data A variable length field containing data pointed to by hint track sample mode entries in the data table.
This section presents one example of a simple track format for streaming MPEG-2 transport from a QuickTime movie holding elementary streams.
An MPEG-2 transport stream is associated with a multiplex of one or more elementary streams. For this reason, an MPEG-2 transport hint track describes how to construct such a multiplex from one or more media tracks. There is not necessarily a one to one relationship between media tracks and MPEG-2 transport hint tracks. Each hint track may contain references to the elementary streams it represents. In one example of the present invention, a QuickTime file might contain multiple such hint tracks to describe different multiplexes.
Packet size is generally not an issue, since all MPEG-2 transport packets are 188 bytes in size. In one example of the present invention, each transport packet (in the MPEG-2 transport protocol) contains payload data from one media track. This allows for a relatively simple hint description for each transport packet. In one example of the present invention, each such hint describes which header data appears on each transport packet, and then points to the payload in the appropriate media track for the transport packet. For packets which do not correspond with a media track, such as PSI packets, the hint may describe 188 bytes of header data, and any media track reference may be considered irrelevant. For packets which do correspond with a media track, the header data may account for information such as transport headers, possible adaptation headers, and PES headers for transport packets that begin PES packets.
Reference is made to the MPEG-2 transport hint track in the Sample Description Atom (of type ‘stsd’). This atom includes a sample description table, and the entries in this table differ based on the media type. In one example of the present invention, hint tracks begin with the structure shown in Table 1. The additional data table may hold entries with the structure shown in Table 2:
In one example of the present invention, if the hint track is an MPEG-2 transport hint track, the data format in the hint track sample description entry will be ‘m2t’ and the max packet size will always be 188. In such a description entry, the types shown below in Tables 5-7 may be found in the additional data table:
In one example of the present invention, each hint sample describes one transport packet. Each transport packet can be described as some amount of header data, followed by some amount of payload from one media track. Since MPEG-2 transport packets are relatively small, a large number of hint samples may be generated, and thus, these samples preferably should be as small as possible. Several entries in the additional data table above may be used to minimize the size of samples, but such factors may make some of the fields in the sample entries variable in size.
If the ‘otyp’ entry in the data table has the value 0, indicating that payload data is described in terms of media samples, hint samples may be of the following form shown in Table 8:
In one example of the present invention, it is not necessary to indicate the length of the payload data for the packet since in MPEG-2, this length is equal to 188 minus the size of the header data for the packet.
If the ‘otyp’ entry in the data table has the value 1, indicating that payload data is described in terms of file offsets, hint samples may be of the following form shown in Table 9:
In one example of the present invention, hint samples may describe their offsets in terms of media samples or in terms of file offsets. Each of these has advantages and disadvantages. If hint samples specify payload in terms of media samples, they may be more resilient to additional editing of the file containing the media track, but may require additional processing for delivery. If hint samples specify payload in terms of file offsets, the payload data can be accessed relatively quickly, but any editing of the file containing the media track may invalidate the hints.
Provided below is a relatively short (six frame) sample file, with some of the relatively less important fields and objects left out (marked here by ellipsis “ . . . ”), and with some fictitious numbers to illustrate the overall structure of a file which is ready for streaming over RTP, according to one embodiment of the present invention. The media data has been left out; only the meta-data is shown.
This application is a continuation of co-pending U.S. patent application Ser. No. 12/822,152, filed Jun. 23, 2010, which is a continuation of co-pending U.S. patent application Ser. No. 11/497,038, filed on Jul. 31, 2006, now issued as U.S. Pat. No. 7,767,765, which is a continuation of Ser. No. 10/789,582, filed Feb. 26, 2004, now issued as U.S. Pat. No. 7,366,788, which is a continuation of U.S. patent application Ser. No. 10/177,119, filed Jun. 21, 2002, now issued as U.S. Pat. No. 6,714,984, which is a continuation of U.S. patent application Ser. No. 09/139,378, filed Aug. 25, 1998, now issued as U.S. Pat. No. 6,453,355, which claims the benefit of U.S. Provisional Application No. 60/071,566, filed Jan. 15, 1998.
Number | Date | Country | |
---|---|---|---|
60071566 | Jan 1998 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12822152 | Jun 2010 | US |
Child | 13228304 | US | |
Parent | 11497038 | Jul 2006 | US |
Child | 12822152 | US | |
Parent | 10789582 | Feb 2004 | US |
Child | 11497038 | US | |
Parent | 10177119 | Jun 2002 | US |
Child | 10789582 | US | |
Parent | 09139378 | Aug 1998 | US |
Child | 10177119 | US |