Method and Apparatus for Manipulating MPEG Video
A computer implemented method of manipulating and displaying an MPEG stream is described. In one embodiment of the invention, a computer implemented method comprises defining a spatial location across a series of pictures of an MPEG stream; and for each picture of the series of pictures in the MPEG stream, partially decoding the picture to determine an area of the picture falling within the spatial location.
This application is a divisional of U.S. patent application Ser. No. 13/611,208, filed on Sep. 12, 2012, which is a divisional of U.S. patent application Ser. No. 09/671,957, filed on Sep. 27, 2000 and issued as Pat. No. 8,290,062 on Oct. 16, 2012.
FIELD OF THE INVENTIONThis invention relates to the field of MPEG video, more specifically to a method and apparatus for manipulating and displaying MPEG video.
BACKGROUNDIn MPEG video, the layers are structured in the following manner: a sequence 101 is composed of GOPs 102; a GOP 102 is composed of pictures 103; a picture 103 is divided into slices 105; a slice 105 is composed of MBs 107; and MBs 107 are composed of blocks 109 (Overview of MPEG, Berkley Multimedia Research). Each picture 103 is normally encoded into one of three types of pictures, an intra coded picture (1-picture) 110, a predictive coded picture (P-picture) 112, and a bi-directionally predictive coded picture (B-picture) 114. The I-picture 110 can be decoded independently because it uses only spatial correlation within the picture. P/B-pictures 112,114 take advantage of temporal correlation to achieve a higher degree of compression by only coding the differential data. As a result, neither P nor B pictures 112,114 can be independently decoded (Overview of MPEG, Berkley Multimedia Research).
Similar to pictures, there are three types of macroblocks 105: I macroblocks (I-MB), P macroblocks (P-MB), and B macroblocks (B-MB). An I-picture 110 is coded using I-MBs only. While all three types of macroblocks 105 are used to code a B-picture 114, only I-MB and P-MB are used in coding a P-picture 112 (Overview of MPEG, Berkley Multimedia Research).
MPEG video has been widely used in various standards, such as DTV, DVD, and DVB. Although MPEG video decoding is currently done mostly in hardware for real-time performance, conventional hardware for MPEG video decoding is limited to the resolution of HDTV and is not capable of decoding ultra high-resolution MPEG video for a display wall.
For example, the University of Minnesota uses high-end equipment for their Power Wall. Behind the Power Wall, two SGI Power Onyx2's using multiple InfiniteReality graphics engines are controlled by a computer with a Silicon Graphics Indy control processor. The Power Wall projects a 3200×2400 resolution display 8 feet wide and 6 feet tall from 4 rear-projection monitors.
An attempt to use software for MPEG decoding is discussed in “Real-Time Parallel MPEG-2 Decoding in Software,” Bilas, Fritts, and Singh, 11th Int'l Parallel Processing Symposium. Bilas et al discusses 2 software decoding approaches using a 16 processor Silicon Graphics Challenge multiprocessor (a fairly expensive multiprocessor) (Real-Time Parallel MPEG-2 Decoding in Software, Bilas, Fritts, and Singh, 11th Intl Parallel Processing Symposium). First, Bilas et al uses a coarse approach by exploring the picture level. Second, Bilas et al uses a fine-grained approach at the slice level. In the first approach, Bilas et al assigns a GOP to a processor as a task. In the second approach, Bilas et al assigns a slice to a processor as a task.
Another software approach implemented at Princeton University employs multiple interconnected personal computers (PCs) which use commodity graphics adapters for low cost. In this method, a mismatch exists between what a PC decodes and what the PC is responsible for displaying. To illustrate, PC A would decode slices representing regions to be displayed by PCs A and B. PC B must wait until node A has decoded the slices. Once PC A completes decoding, then PC A transmits the decoded data to PC B for B to display its data. The other problem is load balancing, i.e., when many slices require decoding, but only a few are to be decoded by a PC. The load imbalance occurs when the number of slices cannot be evenly distributed to all participating PCs. For example, there are 68 slices in a HDTV resolution, 1920×1088. Two of the six PCs in group A get to decode 12 slices, each, whereas the remaining four PCs in group B decode a total of only 11 slices. As a result, not all PCs in group B are busy.
Currently, very little work exists for displaying MPEG video at the high resolution of a display wall. Hardware implementations and some software implementations require costly, specialized hardware. The software implementations using conventional PCs include problems such as load balancing and communication overhead between PCs.
Some embodiments are described with respect to the following figures:
In the following description, numerous specific details are set forth to provide a thorough understanding of the invention. However, it is understood that the invention may be practiced without these specific details. A method and apparatus for manipulating and displaying MPEG video is described.
The “push method” enables parallel distributed MPEG display in a multiple system environment with software decoding. Since each node PC is only responsible for a defined region of each MPEG picture of the MPEG stream, the node PCs do not need to communicate with each other. The reduction in network traffic is accompanied by an evenly distributed workload and higher utilization of the node PCs. Each node will fully decode only its ROI. Once a node PC completes decoding a ROI, the PC can begin decoding the ROI for one or more subsequent pictures, whether or not the display signal has been received (of course, based on buffer memory availability). Furthermore, the “push method” does not require high-end graphics equipment. The client and nodes can be conventional PCs.
According to another embodiment of the invention, a “pull method” of manipulating MPEG video is described.
This manipulation of an MPEG video stream to create a completely independent substream eliminates the problem of communication overhead between the nodes. In addition, an MPEG compliant substream corresponding to an ROI can provide a variety of new applications for MPEG video. A user may only be interested in one region of an MPEG video. A system could create a single substream focusing on that region from the MPEG video. This single substream can be scaled or manipulated further depending on the user's requirements. Some application may require manipulation of independent substreams from different MPEG streams. If desired, a single substream could be made which tracks a roaming ROI.
It is determined at block 1006 if the MPEG encoded picture is a P/B-picture. If the picture is a P/B-picture, then the client decodes the picture to the macroblock level at block 1007. It is determined at block 1009 if the MB is a P/B-MB. For those MBs that are P/B-MB, the client at block 1010 determines if each of the P/B-macroblocks require conversion to an I-macroblock. One exemplary embodiment of block 1010 is later described in more detail with reference to
Like the “push method,” the “pull method” also manipulates MPEG video enabling parallel distributed MPEG video display in a multiple system environment with software decoding. As in the “push method,” the “pull method” does not require communication between the nodes. In addition, network traffic is further reduced because the client transmits substreams for one or more ROI's instead of the entire MPEG stream to each node. The nodes can use a conventional MPEG decoder since the substreams are MPEG compliant. Moreover, the workload can be evenly balanced across the nodes because the nodes are only responsible for a substream representing their ROI.
The techniques shown in the figures can be implemented using code and data stored and executed on computers. Such computers store and communicate (internally and with other computers over a network) code and data using machine-readable media, such as magnetic disks; optical disks; random access memory; read only memory; flash memory devices; electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.); etc. Of course, one or more parts of the invention may be implemented using any combination of software, firmware, and/or hardware.
The following clauses and/or examples pertain to further embodiments:
An apparatus comprising a network to connect a first computer to a plurality of computers, the first computer to construct a plurality of MPEG substreams from a source MPEG stream, to transmit each of the plurality of MPEG substreams to a corresponding computer of the plurality of computers, and each of the plurality of computers to display one of the plurality of MPEG substreams. The apparatus may further comprise the first computer to synchronize display of the plurality of MPEG substreams. The apparatus may further comprise each of the plurality of nodes to decode one of the plurality of MPEG substreams with a conventional MPEG decoder.
Another embodiment may be an apparatus comprising a network to connect a client to a plurality of nodes, the client to assign a region of an MPEG encoded picture to at least one of said plurality of nodes, the region being smaller than the picture, and each of the plurality of nodes to display its assigned region of the picture. The apparatus may comprise wherein the client to assign each of the plurality of regions comprises the client transmitting one of the plurality of regions to at least one of the plurality of nodes. The apparatus may comprise wherein each of the plurality of nodes display its region of the picture in synchronization. The apparatus may comprise wherein the client to assign each of the plurality of regions comprises dividing the MPEG encoded picture into a plurality of new MPEG compliant pictures, each of the plurality of new MPEG compliant pictures forming the MPEG encoded picture when combined. The apparatus may comprise wherein each of the plurality of nodes to display its region of the picture comprises each of the plurality of nodes partially decoding the MPEG encoded picture, and each of the plurality of nodes further decoding its region of the MPEG encoded picture.
Another example embodiment may be a method comprising connecting a first computer to a plurality of computers, constructing a plurality of MPEG substreams from a source MPEG stream on the first computer, transmitting each of the plurality of MPEG substreams to a corresponding computer of the plurality of computers, and displaying on each of the plurality of computers to one of the plurality of MPEG substreams. The method may be further comprising synchronizing display of the plurality of MPEG substreams using the first computer. The method may further comprising decoding on each of the plurality of nodes of the plurality of MPEG substreams with a conventional MPEG decoder suing the first computer.
In another example embodiment may be a method comprising connecting a client to a plurality of nodes, assigning a region of an MPEG encoded picture to at least one of said plurality of nodes, the region being smaller than the picture and displaying on each of the plurality of nodes its assigned region of the picture. The method may include including transmitting from the client one of the plurality of regions to at least one of the plurality of nodes. The method may include wherein each of the plurality of nodes display its region of the picture in synchronization The method may include wherein the client to assign each of the plurality of regions comprises dividing the MPEG encoded picture into a plurality of new MPEG compliant pictures, each of the plurality of new MPEG compliant pictures forming the MPEG encoded picture when combined.
While the invention has been described in terms of several embodiments, those skilled in the art will recognize that the invention is not limited to the embodiments described. The MBs in the “pull method” can be stored in a variety of data structures, e.g., trees, tables, lists, hybrid trees, etc. The system may be set up to store MBs for newly constructed slices and immediately sending the slices. Another embodiment of the invention would utilize a data structure corresponding to ROI's and a buffer to store more than one constructed picture corresponding to an ROI before transmission. 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.
Claims
1. An apparatus comprising:
- a network to connect a first computer to a plurality of computers;
- the first computer to construct a plurality of MPEG substreams from a source MPEG stream, to transmit each of the plurality of MPEG substreams to a corresponding computer of the plurality of computers; and each of the plurality of computers to display one of the plurality of MPEG substreams.
2. The apparatus of claim 1 further comprising:
- the first computer to synchronize display of the plurality of MPEG substreams.
3. The apparatus of claim 1 further comprising:
- each of the plurality of nodes to decode one of the plurality of MPEG substreams with a conventional MPEG decoder.
4. An apparatus comprising:
- a network to connect a client to a plurality of nodes;
- the client to assign a region of an MPEG encoded picture to at least one of said plurality of nodes, the region being smaller than the picture; and
- each of the plurality of nodes to display its assigned region of the picture.
5. The apparatus of claim 4 wherein the client to assign each of the plurality of regions comprises:
- the client transmitting one of the plurality of regions to at least one of the plurality of nodes.
6. The apparatus of claim 4 wherein each of the plurality of nodes display its region of the picture in synchronization.
7. The apparatus of claim 4 wherein the client to assign each of the plurality of regions comprises:
- dividing the MPEG encoded picture into a plurality of new MPEG compliant pictures, each of the plurality of new MPEG compliant pictures forming the MPEG encoded picture when combined.
8. The apparatus of claim 4 wherein each of the plurality of nodes to display its region of the picture comprises:
- each of the plurality of nodes partially decoding the MPEG encoded picture; and
- each of the plurality of nodes further decoding its region of the MPEG encoded picture.
9. A method comprising:
- connecting a first computer to a plurality of computers;
- constructing a plurality of MPEG substreams from a source MPEG stream on the first computer;
- transmitting each of the plurality of MPEG substreams to a corresponding computer of the plurality of computers; and
- displaying on each of the plurality of computers to one of the plurality of MPEG substreams.
10. The method of claim 9 further comprising:
- synchronizing display of the plurality of MPEG substreams using the first computer.
11. The method of claim 9 further comprising:
- decoding on each of the plurality of nodes of the plurality of MPEG substreams with a conventional MPEG decoder suing the first computer.
12. A method comprising:
- connecting a client to a plurality of nodes;
- assigning a region of an MPEG encoded picture to at least one of said plurality of nodes, the region being smaller than the picture; and
- displaying on each of the plurality of nodes its assigned region of the picture.
13. The method of claim 12 including transmitting from the client one of the plurality of regions to at least one of the plurality of nodes.
14. The method of claim 12 wherein each of the plurality of nodes display its region of the picture in synchronization.
15. The method of claim 12 wherein the client to assign each of the plurality of regions comprises:
- dividing the MPEG encoded picture into a plurality of new MPEG compliant pictures, each of the plurality of new MPEG compliant pictures forming the MPEG encoded picture when combined.
16. The method of claim 12 wherein each of the plurality of nodes to display its region of the picture comprises:
- each of the plurality of nodes partially decoding the MPEG encoded picture; and
- each of the plurality of nodes further decoding its region of the MPEG encoded picture.
Type: Application
Filed: Sep 24, 2015
Publication Date: Jan 14, 2016
Inventor: Inching Chen (Beaverton, OR)
Application Number: 14/864,287