ALGORITHM FOR FAST FORWARD AND FAST REWIND OF MPEG STREAMS

Abstract: A transport system allows delivery of MPEG video streams from a network server (50) to a media client (60) while avoiding network delays associated with transitions between files contained in these streams. A buffering system (30), a transport controller (20), and a counter (40) allow buffering and interim delivery of MPEG stream data. The transport controller (20) can either deliver MPEG stream data directly to the media client, or route data through the buffering system (30). The buffering system (30) includes a population buffer (35) for storage of interim MPEG stream data, and a transport buffer (34) for temporary storage of MPEG stream data during continuous delivery. During transitional delivery, the transport controller (20) delivers interim data to the media client (60) until the requested file is available and uses the counter to select the proper start location in the requested file.

Description: ALGORITHM FOR FAST FORWARD AND FAST REWIND OF MPEG STREAMS Background and Summary of the Invention The present invention generally pertains to transport of MPEG video streams from a network server to a media client. More particularly, the present technique for efficiently performing fast forward and fast rewind operations in response to a user's request. The technique uses buffering and interim transport of MPEG video files contained in these streams to avoid network delays associated with transition between files. With the explosive popularity of computers and the internet, there is a growing interest in using networks to transport multi-media selections such as video and audio material, to remote locations. Interactive television (ITV), movies on demand, and other multi-media push technologies for example, are among the more promising applications. Transporting video and audio material typically involves transferring video files from a server over a network which services a number of individual media clients. ITV servers, for example, use a collection of computing, storage, and communications equipment to transfer these files when providing interactive video services. A particular interactive service may require more than one server in order to be implemented, or a server may implement more than one service. The servers generate compressed audio and video streams in standard formats that require decompression only at the location of the media client. Consumers' remote control button-press signals are carried back to the server for interpretation by the service application. In this type of configuration, the media client can view a movie or other type of video much in the same fashion as one would operate a standard VCR. Due to the size of most video files, it is necessary to stream the files from the server to the media client over the network. There are, however, some data network protocol issues of concern when streaming video. One issue relates to the fact that digital video data streams are very sensitive to delays and transmission errors, which can be caused for various data networking reasons. Also, streaming digital video data usually requires transmission rates which are beyond the bandwidth capabilities of current residential access network technology. Given a movie stored on disk as an MPEG-based normal play file, an express file represents a shortened version of the normal play file such that only the frames corresponding to fast forward (or fast rewind) play of the movie are stored in the express file. MPEG stream data therefore can include normal play, reverse express, and forward express files which are abbreviated herein as 1X, RX, and FX files, respectively. The idea behind using express files is to save on network and disk bandwidth. Since one frame for every n frames is actually shown to the user during display of fast forward and fast rewind video, it is a waste of bandwidth to ship all the data to the client, including the frames that will be discarded. Express files are therefore built by scanning the normal play file, and selecting every nth frame. In order to make the selection easier, express files may store in them only the l-frames that appear in the normal play file, l-frames contain information resulting from intraframe coding techniques which exploit the spatial redundancy existing between pictures. In the case of express files, the choice of the value of n will therefore be limited to the size of the group of pictures of the normal play file. In order for express files to work, some link information must be maintained between the three types of video files. This information helps transition between video files in response to the media client's commands. Each video file has an associated database file with a record for the other video files. For example, the 1X file has a database file with a 1X-FX record, and a 1X-RX record. The database files contain the necessary link information for transition between files. Each record of the file contains fields carrying link pointers to the other database files. The link pointers in the database files are indexed by the frame number of each stream. Once the user requests another file by pressing the fast forward, fast rewind, or play button, the link information allows determination of the next stream that needs to be retrieved and displayed, based on the current frame number in the current stream. Although the link information guarantees the display of the appropriate sequence of frames, it does not guarantee that the frames will be displayed at the correct time. Simply put, although the correct frames are selected, these frames may experience significant delays before being displayed due to network delays. An undesirable "hiccup" on the screen of the media client is the result of such a delay. For a more complete understanding of the invention, its objects and advantages, reference may be had to the following specification and to the accompanying drawings. Brief Description of the Drawings Figure 1 is a diagram showing system components of a preferred embodiment of the present invention. Figure 2 is a dataflow diagram showing continuous delivery of MPEG video files in accordance with the preferred embodiment of the present invention. Figure 3 is a dataflow diagram showing transitional delivery of MPEG video files in accordance with the preferred embodiment of the present invention. Detailed Description of the Preferred Embodiment Referring to Figure 1, an exemplary video transport system is illustrated at 10. A transport controller 20, a buffering system 30, and a counter 40 allow the video transport system 10 to deliver MPEG stream data 80 from a network server 50 to a media client 60 in response to one or media requests 61 from the media client 60. The media request 61 sets the delivery state of the video transport system 10 to either continuous delivery or transitional delivery. The presently preferred implementation is in software in which the buffering system and counter are data structures maintained by the client. As shown in Figures 2 and 3, the present invention generally uses the continuous delivery state as an opportunity to write MPEG stream data 80 to a population buffer 35 in the buffering system 30 for later retrieval during transitional delivery. Continuous delivery means that the media client has not made a request since the video transport system 10 began delivering the last requested file, whereas transitional delivery means that the media client has requested delivery of a different file from the one currently being delivered. The video transport system 10 therefore operates in the continuous delivery state when delivering 1X, FX, or RX files to the media client 60. Likewise, when the media client 60 requests for the server to switch from the current file to a requested file, the video transport system 10 operates in the transitional delivery state. The video transport system 10, therefore enables the delivery of the above mentioned files as well as efficient execution of the following file transitions: FX-1X, 1X-FX, RX-FX, RX-1X, FX-RX, and 1X-RX. During continuous delivery the MPEG stream data 80 comprises one of the above files, whereas during transitional delivery the MPEG stream data 80 comprises a current file, interim l-frames to be discussed below, and a subsequent requested file. The counter 40 tracks the number of l-frames delivered to the media client 60. While the content of data actually received by the media client 60 may vary as requests are made, the video transport system 10 guarantees that countable l-frames are contained in such data. The counter 40, therefore, tracks l-frames delivered during both continuous delivery and transitional delivery. Thus, as 1X and FX files are delivered to the media client 60, counter 40 increments with each l-frame, and as RX files are delivered to the media client 60, counter 40 decrements with each l-frame. Through additional counter adjustment to be described below, the video transport system 10 can also execute more complex file transitions. The transport controller 20 can therefore route the MPEG stream data 80 from the server 50 to the media client 60, based on the delivery state and the counter 40. Generally, the buffering system 30 stores MPEG stream data 80. The client maintains a plurality of buffer spaces that function as a play buffer, a fast forward buffer and a fast rewind buffer. The play buffer contains the frame data that corresponds to the normal play file (the 1X file). The fast forward buffer contains data that is relevant to fast forward playing. This data is continuously cached to facilitate the switch to fast forward. The fast rewind buffer contains data that is relevant to fast rewind playing. This data is continuously cached to facilitate the switch to fast rewind. Specifically, the buffering system 30 has a buffer write mechanism 33 for storing the MPEG stream data 80 in either a transport buffer 34, a population buffer 35, or both, depending on the delivery state of the video transport system 10 and the file. The buffering system 30 also has a buffer read mechanism 31 for reading MPEG stream data 80 from the transport buffer 34, and for reading interim l-frames 70 from the population buffer 35. Note that these interim l-frames 70 are stored during continuous delivery. Preferably, the buffer read mechanism 31 can also deliver data to the media client 60, and the data can be stored in and retrieved from buffers 34 and 35 as either l-frames or complete files. It is important to note that if desired, the media client software can perform the data retrieval functions. Other commonly known techniques can also be used to effect storage and retrieval of buffered data. During continuous delivery, the transport controller 20 effects delivery of data to the media client 60 by routing 1X and RX files through the transport buffer 34, and FX files directly to the medial client 60. Thus, if the media request 61 comprises a request to deliver an FX file the MPEG stream data 80 comprises the FX file, and the transport controller 20 routes l-frames contained in the FX file to the buffer write mechanism 33 for storage, and directly to the media client 60 for viewing. If the media request comprises a request to deliver a 1X file, the transport controller 20 routes the complete 1X file to the buffer write mechanism 33 for storage and viewing by way of transport buffer 34 and buffer read mechanism 31. Finally, If the media request 61 comprises a request to deliver an RX file, the transport controller 20 routes l-frames contained in the RX file to the buffer write mechanism 33 for storage and viewing by way of transport buffer 34 and buffer read mechanism 31. Transitional delivery typically involves delivery of interim l-frames 70 until the requested file is available. If the media request 61 comprises a request to transition from delivery of an FX file to delivery of a 1X file, however, the transport controller 20 delivers interim l-frames 70' contained in the MPEG stream data 80 directly to the media client 60 in slow motion speed without accessing data contained in the population buffer 35. During all other transitions, the buffer read mechanism 31 delivers interim l-frames 70 contained in the population buffer 35 to the client 60 until the requested file is available. Interim delivery of buffered MPEG stream data allows the video transport system 10 to avoid the common problems associated with networking delays. For example, when the media request 61 comprises a request to transition from delivery of a 1X file to delivery of a FX file, the MPEG stream data 80 comprises both the 1X file and the FX file. In such case, the buffer read mechanism 31 delivers the interim l-frames 70 contained in the population buffer 35 to the media client 60 in fast forward speed until the FX file is available. Fast forward speed simulation is required for the 1X-FX and 1X-RX transitions, while slow motion simulation is required for FX-1X and RX-1X transitions. In order to properly transition from one file to the next, the transport controller 20 uses the counter 40 to select a start location in the requested file. Whenever the video transport system 10 is transitioning to or from the delivery of an RX file, the transport controller 20 adjusts the counter 40 in relation to the number of interim l-frames 70 delivered to the media client 60 from the population buffer 35. This adjustment is due to multiple delivery of the same frames. Specifically, when the media request 61 is a request to transition to delivery of an RX file, the transport controller 20 reduces the value of the counter 40 by the number of interim l-frames 70 delivered, and when the media request 61 is a request to transition from delivery of an RX file, the transport controller 20 increases the value of the counter 40 by the number of interim I- frames 70 delivered. No counter adjustment is necessary for the FX-1X and 1X-FX transitions. Summary of Algorithm The Normal Play Mode During normal play mode, the following actions are taken: 1. The file 1X is continuously transmitted from the server to the client normal play buffer b p . 2. The client software reads data from b p and plays the movie. 3. The / frames are detected and the counter c, is incremented. 4. The locations of the / frames are detected in b p as they are loaded and the / frames are copied to the fast rewind buffer b r in the reverse order (i.e., in a stack manner). The 1X to FF Transition When the client presses the fast forward button, the transition from the file 1X to the file FX takes place. During this transition, the following actions take place: 1. The value of c, is used to determine where to start in the file FX. 2. In the meantime, the frames in b p are played in the fast forward speed. 3. The / frames (whether from 1X or FX) are copied to b r in the reverse order. The Fast Forward Mode During fast forward, the following actions are performed: 1. Data pages are continuously retrieved from the file FX. These mainly contain / frames. 2. The / frames are played from FX as they are retrieved. 3. c, is incremented as the / frames are loaded. 4. / frames are stored in b r in reverse order. The FF to 1X Transition 1. The value of c, is used to switch to the file 1X at the appropriate location. 2. The / frames of FX are played in slow motion speed. This simulates the normal play speed. 3. Playing from b p is resumed once pages are retrieved from the file 1X. The 1X to FR Transition 1. The value of c, is adjusted to be c, - the number of / frames in b r . 2. The updated value of c, is used to retrieve the appropriate frames from the file RX. 3. In the meantime the / frames in b r are played. The Fast Rewind Mode During fast rewind, the following actions are performed: 1. Data pages are continuously retrieved from the file RX and stored into b r . These mainly contain / frames. 2. The / frames are played from b r as they are retrieved. 3. c, is decremented as the / frames are loaded. 4. / frames are stored in b f in reverse order. The FF to FR Transition 1. If there exists some data in the buffer pool b r , these are played first. (a) The value of c, is adjusted to be c, - the number of / frames in b r , if any. (b) The updated value of c, is used to retrieve the appropriate frames from the file RX. (c) In the meantime the / frames in b r are played. 2. Using the value of c„ the appropriate frames data is retrieved from the file RX. 3. As / frames are played, they are copied to the buffer b f in reverse order. The FR to 1X Transition 1. The value of c, is adjusted to be c, + the number of / frames in b f , if any. 2. The updated value of c, is used to retrieve the appropriate frames from the file 1X. 3. In the meantime the / frames in b f are played in slow motion. 4. Once data from 1X is retrieved, it is stored in b p , and normal play resumes from b p once frames in b f are all played. 5. Frames from b f are played in slow motion. The FR to FF Transition 1. If there exists some data in the buffer pool b f , these are played first. (a) The value of c, is adjusted to be c, + the number of / frames in b f , if any. (b) The updated value of c, is used to retrieve the appropriate frames from the file FX. (c) In the meantime the / frames in b f are played. 2. Using the value of c„ the appropriate frames data is retrieved from the file FX. 3. As / frames are played, they are copied to the buffer b r in reverse order. While the invention has been described in the specification and illustrated in the drawings with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention as defined in the claims. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment illustrated by the drawings and described in the specification as the best mode presently contemplated for carrying out this invention, but that the invention will include any embodiments following within the description of the appended claims.

Claims: What Is Claimed Is: 1. A transport system for delivering MPEG stream data to a media client in response to a media request wherein said media request sets a delivery state of said transport system and said MPEG stream data contains l-frames, comprising: a counter for tracking a number of delivered l-frames; a buffering system for storing said MPEG stream data; and a transport controller for routing said MPEG stream data to said media client based on said delivery state and said counter. 2. The transport system of claim 1 wherein said media request sets said delivery state to continuous delivery. 3. The transport system of claim 2 wherein said buffering system comprises: a population buffer; and a buffer write mechanism for storing said MPEG stream data in said population buffer. 4. The transport system of claim 3 wherein: said media request comprises a request to deliver a forward express file such that said MPEG stream data comprises said forward express file; and said transport controller routes said l-frames contained in said forward express file to said buffer write mechanism and directly to said media client. 5. The transport system of claim 3 wherein said buffering system further comprises: a transport buffer for receiving said MPEG stream data from said buffer write mechanism; and a buffer read mechanism for reading said MPEG stream data contained in said transport buffer and delivering said MPEG stream data to said media client. 6. The transport system of claim 5 wherein: said media request comprises a request to deliver a normal play file such that said MPEG stream data comprises said normal play file; and said transport controller routes said normal play file to said buffer write mechanism. 7. The transport system of claim 5 wherein: said media request comprises a request to deliver a reverse express file such that said MPEG stream data comprises said reverse express file; and said transport controller routes said l-frames contained in said reverse express file to said buffer write mechanism. 8. The transport system of claim 1 wherein said media request sets said delivery state to transitional delivery. 9. The transport system of Claim 8 wherein: said media request comprises a request to transition from delivery of a forward express file to delivery of a normal play file such that said MPEG stream data comprises said forward express file and said normal play file, and said transport controller delivers interim l-frames contained in said forward express file to said media client in slow motion until said normal play file is available. 10. The transport system of claim 8 wherein said buffering system comprises: a population buffer, said population buffer containing interim l-frames; and a buffer read mechanism for reading said interim l-frames and delivering said interim l-frames to said media client. 11. The transport system of Claim 10 wherein: said media request comprises a request to transition from delivery of a normal play file to delivery of a forward express file such that said MPEG video data comprises said normal play file and said forward express file; and said buffer read mechanism delivers said interim l-frames contained in said population buffer to said media client in fast forward speed until said forward express file is available. 12. The transport system of Claim 10 wherein said transport controller adjusts said counter in relation to a number of said interim l-frames delivered to said media client from said population buffer. 13. The transport system of Claim 12 wherein said media request comprises a request to transition to delivery of a rewind express file, and said transport controller reduces said counter by said number of said interim I- frames. 14. The transport system of Claim 13 wherein: said media request further comprises a request to transition from delivery of a normal play file such that said MPEG stream data comprises said normal play file and said reverse express file; and said buffer read mechanism delivers said interim l-frames contained in said population buffer to said media client in fast forward speed until said reverse express file is available. 15. The transport system of Claim 13 wherein: said media request further comprises a request to transition from delivery of a forward express file such that said MPEG stream data comprises said forward express file and said reverse express file; and said buffer read mechanism delivers said interim l-frames contained in said population buffer to said media client until said reverse express file is available. 16. The transport system of Claim 12 wherein said media request comprises a request to transition from delivery of a rewind express file, and said transport controller increases said counter by said number of said interim I- frames. 17. The transport system of Claim 16 wherein: said media request further comprises a request to transition to delivery of a normal play file such that said MPEG stream data comprises said reverse express file and said normal play file; and said buffer read mechanism delivers said interim l-frames contained in said population buffer to said media client in slow motion until said normal play file is available. 18. The transport system of Claim 16 wherein: said media request further comprises a request to transition to delivery of a forward express file such that said MPEG stream data comprises said reverse express file and said forward express file; and said buffer read mechanism delivers said interim l-frames contained in said population buffer to said media client until said forward express file is available. 19. A method for delivering MPEG stream data to a media client in response to a media request wherein said media request sets a delivery state and said MPEG stream data comprises l-frames, comprising: tracking a number of delivered l-frames; storing said MPEG stream data in a population buffer; and routing said MPEG stream data to said media client based on said delivery state and said number of delivered l-frames. 20. The method of claim 19 wherein said media request sets said delivery state to continuous delivery. 21. The method of claim 20 wherein said media request comprises a request to deliver a forward express file such that said MPEG stream data comprises said forward express file, wherein said routing step comprises: routing said l-frames contained in said forward express file to said population buffer; and routing said l-frames contained in said forward express file directly to said media client. 22. The method of claim 20 wherein said routing step comprises: storing said MPEG stream data in a transport buffer; reading said MPEG stream data contained in said transport buffer; and delivering said MPEG stream data to said media client. 23. The method of claim 22 wherein said media request comprises a request to deliver a normal play file such that said MPEG stream data comprises said normal play file. 24. The method of claim 22 wherein said media request comprises a request to deliver a reverse express file such that said MPEG stream data comprises said l-frames contained in said reverse express file. 25. The method of claim 19 wherein said media request sets said delivery state to transitional delivery. 26. The method of claim 25 wherein: said media request comprises a request to transition from delivery of a forward express file to delivery of a normal play file such that said MPEG stream data comprises said forward express file and said normal play file; and said routing step comprises delivering interim l-frames contained in said forward express file in slow motion until said normal play file is available. 27. The method of claim 25 wherein said population buffer contains interim l-frames wherein said routing step comprises delivering said interim I- frames to said media client.

Inventors: AREF WALID G, KAMEL IBRAHIM MOSTAFA, MUKHERJEE SARIT, AREF, WALID, G., KAMEL, IBRAHIM, MOSTAFA, MUKHERJEE, SARIT
Applicants: PANASONIC TECHNOLOGIES INC, PANASONIC TECHNOLOGIES, INC.
Application year: 1999
Main classification: H04N7
IPC codes: H04N5, H04N7