The method of computer system downloading and playing video and audio data from remote serverTechnical field
The present invention is about a kind of method of computer system downloading and playing video and audio data from remote server, be meant that especially computer system can be under the operating system of low consumption system resource, be online to the broadcast of remote server download audiovisual materials by Internet and watch, and can when the downloading and playing audiovisual materials, save computer system power consumption.
Background technology
Now, computing machine is a considerable daily life instrument for everyone, and in conjunction with multinomial functions such as general issued transaction, Internet and multimedias, it is thorough that function is quite improved for present computer system.In the modern times live in busy capital, want to mediate pressure of one's work, really be the good recipe that needs obedient amusement and recreation, particularly working hard after being busy, come off duty and get back in the warm family, watch image and sound program or film on the sofa comfily if can be sitting in, this is how fine something, by watching image and sound program or film to express fully separating feeling exhausted that darg causes, to eliminate pressure of one's work every day, refuel for tomorrow working carefully and inflate, also avoid the long-term accumulated working pressure and sick.
Common people do not play audio-visual computer hardware so mostly can not buy VCD, DVD etc. again, and reduce taking of the interior space because of computer system integrating multimedia Play System now.General human desires is watched image and sound program or film, mostly be to rent or directly purchase, watch and on computer system, play, so to audio-visual slice, thin piece rental stores choosing, people are in next feeling exhausted, also must just can go home to appreciate and watch to the slice, thin piece of audio-visual slice, thin piece rental stores choosing rent image and sound program or film, quite inconvenient, if and when bad luck, just the slice, thin piece of desire rent is all lent again, can lose time again because of the disappointed sense tired out that increase the next body and mind of people.In addition, in recent years because the requirement of attention, system management and the system stability of control computer virus wildness, make the resource continuous lifting of load of Windows operating system and system consumption, when the user only uses the single application program of this computer system, must wait the long opening time, cause waste of time, lower efficiency.
Therefore, how the present invention promptly proposes a kind of method of computer system downloading and playing video and audio data from remote server at the problems referred to above, its computer system can be under the operating system of low system resources consumption, be online to remote server download audiovisual materials by Internet and return the computer system broadcast, watch the convenience of image and sound program or film with system resources consumption and the raising user who reduces computer system, thereby address the above problem.
Summary of the invention
The invention provides a kind of method of computer system downloading and playing video and audio data from remote server, be used for this computer system installation and have one first operating system and one second operating system, the system resources consumption of second operating system is low, and this method includes the following step:
Receive the CPU (central processing unit) of an activation signal to this computer system;
Receive this activation signal to this CPU (central processing unit), carry out down in this second operating system, this CPU (central processing unit) is sent the network element of an online signal to this computer system;
Be online to a remote server, read the download audiovisual materials; And
Play audiovisual materials, be shown in a display unit of this computer system.
This second operating system be for the operating system of carrying out behind this computer system power-on or, receiving this activation signal to the step of this CPU (central processing unit), this computer system is in this first operating system following time, this CPU (central processing unit) is can interrupt suspending carrying out this first operating system, carries out this second operating system and open.
This activation signal can be the Remote signal.
At online this remote server, read in the step of downloading audiovisual materials, more can download display window and the background information that relevant desire is play the audiovisual materials theme from this remote server, when playing audiovisual materials, show.
At online this remote server, read in the step of downloading audiovisual materials, this network element is these audiovisual materials directly to be passed through a direct access memory controller of this computer system, transfers to a video signal storage element of this computer system.
At online this remote server, read in the step of downloading audiovisual materials, be that these audiovisual materials are downloaded a storage element that is stored to this computer system.
This network element is these audiovisual materials directly to be passed through a direct access memory controller of this computer system, downloads and is stored to this storage element.
In this storage element, set up a concordance list storing this video-audio data, be stored in the position of this storage element to note down these audiovisual materials.
This concordance list is the storage location of each I picture of record mpeg format data.
Storing these audiovisual materials to the step of this storage element, this computer system is to open a save File in this storage element, store this audiovisual materials, after these audiovisual materials are stored to one section appropriate time, this computer system promptly can be opened a new save File more in addition and be continued to store audiovisual materials, so till this audiovisual materials download has stored.
Storing these audiovisual materials to the step of this storage element, this computer system is to open a save File in this storage element, store this audiovisual materials, after these audiovisual materials are stored to a suitable data size, this computer system promptly can be opened a new save File more in addition and be continued to store audiovisual materials, so till this audiovisual materials download has stored.
Use the method for the invention, can improve the convenience that the user watches image and sound program or film, and reduce the consumption of resource for computer system.
Description of drawings
Below with specific embodiment and be described with reference to the accompanying drawings the present invention.
Fig. 1 is the calcspar of preferred embodiment of the present invention;
Fig. 2 is the process flow diagram of preferred embodiment of the present invention;
Fig. 3 is the calcspar of another preferred embodiment of the present invention.
Accompanying drawing number:
10, input block; 15, CPU (central processing unit); 20, network element; 25, remote server; 30, video signal storage element; 35, video signal processing unit; 40, display unit; 45, storage element; 50, direct access Memory Controller Hub.
Embodiment
See also Fig. 1, be the calcspar of preferred embodiment of the present invention.As shown in the figure, computer system is to include aninput block 10, and it can be a Digiplex, carries out action to make things convenient for user's wireless remote control computer system; One CPU (central processing unit) 15 receives and carries out the external command that the user assigns; Onenetwork element 20 is subjected to CPU (central processing unit) 15 controls, to carry out the Internet connection line operation; Oneremote server 25 is deposited the audiovisual materials of image and sound program or film and the display window and the background information of related subject, can watch for the remote computer system downloading and playing; One videosignal storage element 30, the audiovisual materials that desire is play are downloaded fromremote server 25 in its temporary transientstorage network unit 20; One videosignal processing unit 35 is handled the display unit 40 of the audiovisual materials of broadcast videosignal storage element 30 to computer system; Onestorage element 45, the audiovisual materials thatstorage network unit 20 is downloaded,storage element 45 can be a hard disk drive (Hard Disk).
Computer system of the present invention is equipped with one first operating system and one second operating system, first operating system is for can be equipped with at least one application program (Application), but its system resources consumption height, as the operating system of Windows series, Windows XP, Windows NT, Window 98, Windows2000 and Windows Me etc.And second operating system is to be the low operating system of system resources consumption, and as (SuSE) Linux OS, second operating system can be shared the application program of first operating system schema, and also can be the operating system of carrying out behind the computer system power-on.
Seeing also Fig. 2, is the process flow diagram for preferred embodiment of the present invention; When the computer system user desired to watch image and sound program or film in operational computations machine system, the user only needed shown in step S1,push input device 10, Digiplex and send the CPU (central processing unit) 15 of an activation signal to computer system; Then, shown in step S2, in receiving activation signal to CPU (central processing unit) 15, CPU (central processing unit) 15 can make computer system produce and carry out the operation interruption, promptly stop the action of execution at present, the operating system of carrying out at present as computer system is that CPU (central processing unit) 15 is to interrupt temporary transient first operating system of carrying out in first operating system following time; Afterwards, shown in step S3, carry out second operating system, and CPU (central processing unit) 15 is sent thenetwork element 20 of an online signal to computer system.
Then, shown in step S4, thenetwork element 20 that receives online signal can be online toremote server 25 by Internet, the image and sound program that the download user desires to watch or the audiovisual materials of film, the audiovisual materials of download are to transfer to videosignal storage element 30 by CPU (central processing unit) 15 control and treatment; At last, shown in step S5, the audiovisual materials of download can processing operation such as be deciphered by videosignal processing unit 35, and transfer to displayunit 20, so can play to show that video-audio data watches for the user.
In addition, among the above-mentioned steps S4, when being online toremote server 25 download audiovisual materials, also can download relevant display window and the background information of playing the audiovisual materials theme simultaneously, with when step S5 plays the audiovisual materials of image and sound program or film, the display window of display unit 40 and background can be replaced with related subject in real time, improve beholder's visual enjoyment to increase the variation of playing audiovisual materials.And, audiovisual materials afternetwork element 20 is downloaded can be stored to thestorage element 45 of computer system by CPU (central processing unit) 15, when storing video-audio data, can set up a concordance list, deposit in the position ofstorage element 45 with the record audiovisual materials, for example: the audiovisual materials form of download is during for MPEG (Motion Pictures Expert Group) form, concordance list is promptly noted down the storage location of each I picture (Intra frame) of mpeg format data, follow-up to shorten as needing the audiovisual materials imprinting is stored into the time of discs, and can improve playing audiovisual materials the smooth degree when playing behind fast the commentaries on classics, details are as follows for its reason.
The mpeg format data is the data behind a kind of compressed encoding, it includes three kinds of different compressing images (frames), be respectively I picture, P picture (Predicted frame) and B picture (Bi-directionalframe), the I picture is the whole image frame of compression, the similar JPEG compression of this compression method, utilize the mathematical operation of discrete cosine transform (DCT, Discrete Cosine Transform), quantization (Quantization) and huffman coding method (Huffman Encoding) to handle unnecessary data irrelevant and that repeat; The P picture be I picture with the front as the reference image, have the part of repetition just to store in the picture, only record stores two different parts of picture, the part of this difference promptly is called the P picture; The B picture is because of above-mentioned every picture to be done same action, some mistakes may take place in this along with the time, because these mistakes are to accumulate, so can insert the mode that a picture is compared the front and back picture frequently again, the B picture is exactly that so the difference of B picture and P picture is that the B picture can be with reference to the I picture and the P picture of front and back, in these three kinds of squeezeds, the data quantity minimum of B picture, P picture maximum, these three kinds of pictures do not have certain arrangement order.
The data of picture reduced needed data total amount of specific picture of demonstration before and after P picture and B picture were used, so they are temporary compression datas, it is not complete information, thereby decompress(ion) shows separately, and the I picture is because compress a complete picture, so decompress(ion) shows separately.Hence one can see that, and the I picture is a reference picture, P picture subsequently and B picture all can be referenced to its data, so the mpeg format data is when playing, but must find just playing video of I picture earlier,, change when stopping and the user is fast so work as the mpeg format data in broadcast, its position of stopping is not as being just when the I picture, playout software just must be sought the I picture forward with the playing video data, so behind fast the commentaries on classics, the broadcast of image can produce delay phenomenon.In addition, when imprinting mpeg format data, computer system must be sought the position of each I picture of record, carries out imprinting afterwards again, so the user can find when imprinting MPEG image data necessary one previous operations period of wait.
The present invention is when storing audiovisual materials, be to set up concordance list, with each the I picture position in the mpeg format data of record storage, so direct imprinting concordance list in the process of imprinting, and needn't seek record I picture position again, shortening the imprinting time, and can improve at the fast smooth degree of back when playing that change.In addition, when storing audiovisual materials tostorage element 45, computer system can be opened a save File instorage element 45, when computer system download storage audiovisual materials reach one section appropriate time or data size, computer system can be opened another save File, and audiovisual materials are continued to be stored in the new save File again, so till download has stored audiovisual materials, the big I of save File storage time and data is set in computer system by the user, this method stores into audiovisual materials the save File of set time or data size, user's imprinting is stored in the discs after can making things convenient for, in order to carrying preservation.
See also Fig. 3, be the calcspar of another preferred embodiment of the present invention; As shown in the figure, this framework is different with a last embodiment is that videosignal storage element 30 andstorage element 45 are that (Direct Memory Access Controller DMAC) couples mutually with a direct access memory controller 50 respectively.So, audiovisual materials afternetwork element 20 is downloaded can not need to handle by CPU (central processing unit) 15 again, and directly get final product by direct access Memory Controller Hub 50 control transmission to videosignal storage element 30 orstorage element 45, and when playing audiovisual materials, also can decipher processing by videosignal processing unit 35, and need not use CPU (central processing unit) 15, so computer system is when the downloading and playing audiovisual materials, 15 need of CPU (central processing unit) send online signal tonetwork element 20 and carry out online, CPU (central processing unit) 15 can enter dormant state afterwards, to save power supply.
In sum, the method of computer system downloading and playing video and audio data from remote server of the present invention, it is to supply the computer system user, under the low operating system of system resources consumption, utilizenetwork element 20 to be online toremote server 25 and download the image and sound program desiring to watch or the audiovisual materials of film, on computer system, to play.So, computer system user can watch image and sound program or the film of liking at any time, do not rent chip select and do not need to arrive again audio-visual slice, thin piece rental stores, improve the convenience that the user watches, and when watching image and sound program or film, the display window of display unit 40 and background can improve beholder's visual enjoyment according to the image and sound program of playing or the subject replacement of film.In addition the downloading and playing audiovisual materials the time, also can download thestorage element 45 that is stored to computer system, when being downloaded to videosignal storage element 30 orstorage element 45, can handle via CPU (central processing unit) 15, also can save power supply with the work load that reduces CPU (central processing unit) 15.
The above; it only is preferred embodiment of the present invention; design of the present invention is not limited thereto; anyly be familiar with this skill person in field of the present invention; can think easily and variation or modification; all be included in protection scope of the present invention, protection scope of the present invention is as the criterion with the qualification of claims.