Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of video image file compressibility, client and method are provided, to solve that the process of video compression in prior art completes in an equipment and the operational capability that can not effectively utilize equipment, reduce the technical problem of the processing speed to video compression file, thereby processor active task is decomposed, to make full use of computational resource, improve Video compression speed.
For solving the problems of the technologies described above, the invention provides a kind of video image file compressibility, comprise at least one server, also comprise at least one client, be connected with this at least one server communication, this client comprises video image file acquiring unit, video image broadcast unit, picture group division unit, compression duty acquiring unit and video image file compression unit, and this server comprises control unit, compression duty control unit, picture group encapsulation unit, memory cell.This video image file acquiring unit is for responding the acquisition request video image file of displaying video image file and playing corresponding video image by this video image broadcast unit, this client also produces corresponding compression request signal for the request that responds this video image file of compression, and sending this compression request signal to this server, this compression request signal comprises the identifying information of this video image file.
This control unit for one determining whether that the feedback information that this video image file is compressed is sent to the client of this compression request signal by what receive in the time detecting this compression request signal.
The picture group division unit of this client is divided into multiple picture group information by this video image file information for determining this feedback information when institute's video image file is compressed, and the plurality of picture group information is sent to this server.
The compression duty control unit of this server is for recording the task list of the plurality of picture group information according to the plurality of picture group information generation one.
The compression duty acquiring unit of this client is for obtaining a picture group information from this task list, this video image file compression unit is used for according to this corresponding picture group of picture group Information Compression file obtaining, and the picture group file reverse through overcompression is fed to this server.
The picture group encapsulation unit of this server merges and encapsulates for the picture group file after overcompression that this client is sent, thereby forms corresponding video compression file, and this video compression file is stored in this memory cell.
Further, the present invention also provides a kind of video image file compression client, and this client is connected with a server communication, and this client comprises:
Control unit, produces corresponding request signal for the request that responds user's displaying video image.The request that responds a compressed video image file produces corresponding compression request signal, and send the compression request signal that carries this video image file identity identification information to this server, determine whether that by one the feedback information that this video image file is compressed feeds back to this client to trigger this server.And identify this feedback information and produce corresponding compressed signal when this video image file is compressed.
Video image file acquiring unit, obtains the video image file of required broadcasting for responding this request signal.
Video image broadcast unit, for playing the video image file that this video image file obtaining is corresponding.
Picture group division unit, be used for responding this compressed signal this video image file information is divided into multiple picture group information, and the plurality of picture group information is sent to this server, record the task list of multiple picture group information according to the plurality of picture group information generation one to trigger this server.
Compression duty acquiring unit, for obtaining a picture group information from the task list of this server.And
Video image file compression unit, the corresponding picture group of this picture group Information Compression file obtaining for basis, and the picture group file reverse through overcompression is fed to this server, thereby the picture group file after overcompression receiving is merged and encapsulate and form corresponding video compression file and by this video compression file of this server stores to trigger this server.
Further, the present invention also provides a kind of video image file compression method, and the method comprises:
Connect at least one client at least one server.
Received the compression request signal being sent according to the request of this video image file of compression by a client by this server, this compression request signal comprises the identifying information of this video image file.
One determine whether that the feedback information that this video image file is compressed is sent to the client of this compression request signal by this server by what receive.
Determine that by this client this feedback information is divided into multiple picture group information by this video image file information when this video image file is compressed, and the plurality of picture group information is sent to this server.
Recorded the task list of the plurality of picture group information by this server generation one.
From the task list of this server, correspondingly obtain a picture group information by this at least one client.
By this client according to this picture group Information Compression corresponding picture group file obtaining and the picture group file through overcompression is sent to this server.And
By this server, the picture group Piece file mergence through overcompression receiving and encapsulation are formed to corresponding video compression file, and store this video compression file.
A kind of video image file compressibility provided by the invention, client and method, by client, video image file is divided into multiple picture groups, and corresponding picture group information is uploaded onto the server to form corresponding task list, at least one client can be obtained corresponding GOP information and corresponding gop file is compressed by reading task list, thereby and in server, complete the merging of multiple gop files through overcompression and encapsulation and complete compression and the preservation of video image file, the process of video compression in prior art of solving completes and can not effectively utilize the operational capability of equipment in an equipment, reduce the technical problem of the processing speed to video compression file, thereby processor active task is decomposed, to make full use of computational resource, improve Video compression speed.
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, for the hardware structure schematic diagram of the video image file compressibility in embodiment of the present invention, this system 10 comprises at least one server 20 and at least one client 30, wherein, each client 30 is all communicated and is connected with server 20 by network, this network can be the radio communication interconnection networks such as bluetooth, infrared ray, wifi, can also be the wired connection networks such as Internet.In the present embodiment, this server 20 is cloud server, and this client 30 is for having the electronic equipment of video/audio playing function.For example, this client 30 can be the intelligent electronic device that smart mobile phone, panel computer, personal computer etc. can move playing program.
Please refer to Fig. 2 and Fig. 3, it is the high-level schematic functional block diagram of the server 20 in the video image file compressibility 10 in an embodiment of the present invention and client 30.This server 20 comprises memory cell 21, control unit 22, input unit 23, GOP encapsulation unit 24, compression duty control unit 25 and communication unit 26.Each client 30 includes memory cell 31, video image broadcast unit 32, video image file compression unit 33, control unit 34, communication unit 35, input unit 36, video image file acquiring unit 37, GOP division unit 38 and compression duty acquiring unit 39.Wherein, the communication unit 35 of this client 30 communicates and is connected with the communication unit 26 of server 20, and client 30 and server 20 are communicated to connect.In the present embodiment, this memory cell 21 can be a database.
Particularly, communicate and be connected to example video image file compression process is illustrated with a client 30 and server 20.The request that this input unit 36 responds user's displaying video image produces corresponding request signal, and respond this request signal by control unit 34 and call video image file acquiring unit 37 and obtain the video image file of required broadcasting, and call video image broadcast unit 32 and play video image corresponding to this video image file obtaining.In the present embodiment, this video image file acquiring unit 37 by communication unit 35 from carrying out obtaining this required video image file other device (not shown) that network service is connected with this client 30.In another embodiment, raw video image file is pre-stored in the memory cell 21 of this server 20, and this video image file acquiring unit 37 can obtain required video image file by communication unit 35 from the memory cell 21 of server 20.Further, in the present embodiment, this video image file acquiring unit 37 is also stored in memory cell 31 video image file obtaining as cache file.Play and display video image is prior art by the video image broadcast unit 32 of client 30, do not add and repeat at this.
The request that this control unit 34 also responds a compressed video image file produces corresponding compression request signal, and calling communication unit 35 sends this compression request signal to this server 20, this compression request signal comprises the file identity identifying information of the video image that this client 30 plays, be designated hereinafter simply as identifying information, this identifying information can comprise the uniqueness identifying information of these video image files such as the cryptographic Hash of form, size, title and file content.In the present embodiment, this control unit 34 responds the operational order that user inputs by input unit 36 and produces this compression request signal, in other embodiments, this control unit 34 can also produce this compression request signal in video image broadcast unit 32 displaying video images.
In the time that server 20 receives the compression request signal that client 30 sends, the identifying information that this control unit 22 is resolved in these request signals that receive, and this identifying information is stored in memory cell 21.In the present embodiment, this control unit 22 is stored in the identifying information receiving as back-end data in memory cell 21, system manager obtains this identifying information by communicating with this server 20 watch-dog being connected, and judge whether video image file corresponding to this identifying information to compress processing according to the identifying information obtaining, this watch-dog controls signal to server 20 accordingly according to keeper's judgement feedback simultaneously.Wherein, this watch-dog can be computer or server.This server 20 is sent to corresponding client 30 by communication unit 26 by this control signal receiving.
In the time that client 30 receives this control signal, these control unit 34 these control signals of identification produce corresponding compressed signal while compression for execution video image file, these GOP division unit 38 these compressed signals of response obtain corresponding video image file, and mark off multiple picture group information (GOP according to this video image file information, group of pictures), and the plurality of GOP information is sent to server 20 by calling communication unit 35.Wherein, each GOP information comprises the image information of corresponding GOP, for example, and the frame information of GOP.The method that these GOP division unit 38 these compressed signals of response obtain corresponding video image file is described above.
In the time that server 20 receives multiple GOP information that client 30 sends, this compression duty control unit 25 produces one according to the plurality of GOP information and records the list of multiple GOP information task.
In the time that multiple clients 30 communicate to connect with this server 20, one or more clients 30 in the plurality of client 30 can be called corresponding communication unit 35 and read the task list in server 20, and obtain a wherein GOP information by compression duty acquiring unit 39.In the present embodiment, this compression duty acquiring unit 39 obtains randomly a GOP information from task list.This video image file compression unit 33 is according to this corresponding gop file of GOP Information Compression obtaining, and calling communication unit 35 will feed back to server 20 through the gop file of overcompression.In the present embodiment, this video image file compression unit 33 is codec H.265.When server 20 receive fed back by one or more clients 30 after the gop file of overcompression, this GOP encapsulation unit 24 merges according to the order of raw video image file the multiple gop files after overcompression that receive and encapsulate, thereby forms corresponding video compression file.Meanwhile, this GOP encapsulation unit 24 is stored in the video compression file of this generation in memory cell 21.
In the present embodiment, the address information that this compression duty control unit 25 can the each client 30 of automatic acquisition, this address information can comprise IP address, interface message, network dynamic code of client 30 etc.In the time that the video image file acquiring unit 37 of client 30 obtains in task list a GOP information, this compression duty control unit 25 also by the address information recording of client that obtains this GOP information in task list, and corresponding with this GOP information.
Correspondingly, in the time that the quantity of the client 30 communicating to connect with server 20 is less than the quantity of the GOP information recording in task list, not obtained by a client 30 of task, this GOP information in task list is not recorded corresponding client address information.In the time having new client 30 and server 20 to communicate to connect and compression duty acquiring unit 39 need to obtain GOP information from task list, whether this compression duty acquiring unit 39 has corresponding client address information according to GOP information judges whether this GOP information is obtained and compressed by other clients 30, and from task list, obtains by this compression duty acquiring unit 39 the GOP information that is not assigned to client 30 according to judged result.Then, gop file corresponding this GOP information compressed according to the method for above-mentioned record by this new client 30 and be sent to server 20.
In the present embodiment, this compression duty control unit 25 also judges whether the GOP information in task list is all assigned with a client address information, and in the time determining that GOP information in task list has all been distributed a client address information, produce corresponding compression duty and complete instruction, and in the time that not all being assigned with client address information, the GOP information in definite task list do not produce any instruction.These GOP encapsulation unit 24 these compression duty of response complete instruction this video compression file are stored in memory cell 21.Thereby the whole GOP information that are divided when video image file information complete compression, merge and when encapsulation, the video compression file of generation be stored in memory cell 21.
Please refer to Fig. 4 and Fig. 5, be the server 20 ' in the video image file compressibility 10 in another execution mode of the present invention and the high-level schematic functional block diagram of client 30 '.This server 20 ' comprises memory cell 21 ', control unit 22 ', input unit 23 ', GOP encapsulation unit 24 ', compression duty control unit 25 ', communication unit 26 ' and GOP division unit 27 '.Each client 30 ' includes memory cell 31 ', video image broadcast unit 32 ', video image file compression unit 33 ', control unit 34 ', communication unit 35 ', input unit 36 ', video image file acquiring unit 37 ' and compression duty acquiring unit 38 '.
When server 20 receive by watch-dog according to keeper judge feedback whether video image file compress to the control signal of processing time, this control unit 22 ' produces correspondingly compressed signal while identifying this control signal for the compression of execution video image file, this GOP division unit 27 ' responds this compressed signal and obtains corresponding video image file, and this video image file information is divided into multiple GOP information.This compression duty control unit 25 ' produces one according to the plurality of GOP information and records the list of multiple GOP information task.Then, this system as described above method video image file is compressed to processing.
Referring to Fig. 6, is the flow chart of video image file compression method in an embodiment of the present invention, and the method comprises:
Step S40, connect at least one client 30 to server 20, wherein, each client 30 is all communicated and is connected with server 20 by network, this network can be the radio communication interconnection networks such as bluetooth, infrared ray, wifi, can also be the wired connection networks such as Internet.
Step S41, a wherein client 30 of the one or more clients 30 that communicate to connect with this server 20 responds the acquisition request video image file of user's displaying video image and plays corresponding video image.
In the present embodiment, this video image file by the video image file acquiring unit 37 of this client 30 by communication unit 35 from carrying out obtaining other devices that network service is connected with this client 30.In another embodiment, this video image file is pre-stored in the memory cell 21 of server 20, and this video image file acquiring unit 37 obtains this video image file by communication unit 35 from the memory cell 21 of server 20.Further, in the present embodiment, this video image file acquiring unit 37 is also stored in memory cell 31 video image file obtaining as cache file.
Step S42, the request that the control unit 34 of this client 30 responds a compressed video image file produces corresponding compression request signal, and calling communication unit 35 sends this compression request signal to server 20, this compression request signal comprises the file identity identifying information of the video image that this client 30 plays, be designated hereinafter simply as identifying information, this identifying information can comprise the uniqueness identifying information of these video image files such as the cryptographic Hash of form, size, title and file content.
In the present embodiment, this control unit 34 responds the operational order that user inputs by input unit 36 and produces this compression request signal, in other embodiments, this control unit 34 can also produce this compression request signal in video image broadcast unit 32 displaying video images.
Step S43, in the time that this server 20 receives the compression request signal that client 30 sends, the identifying information that the control unit 22 of this server 20 is resolved in this compression request signal receiving, and this identifying information is stored in memory cell 21, and judge whether video image file corresponding to this identifying information to compress processing according to a feedback information.If so, enter step S44, otherwise, continue to carry out this step.
In the present embodiment, this control unit 22 is stored in the identifying information receiving as back-end data in memory cell 21, system manager obtains this identifying information by communicating with this server 20 watch-dog being connected, and judge whether video image file corresponding to this identifying information to compress processing according to the identifying information obtaining, this watch-dog sends above-mentioned feedback information to server 20 according to keeper's judgement simultaneously.
Step S44, this server 20 is sent to corresponding client 30 by communication unit 26 by this feedback information receiving, control unit 34 by this client 30 produces corresponding compressed signal, these GOP division unit 38 these compressed signals of response obtain corresponding video image file, and this video image file information is divided into multiple GOP information, and the plurality of GOP information is sent to server 20 by calling communication unit 35.Wherein, each GOP information comprises the image information of corresponding GOP, for example, and the frame information of GOP.
The method that these GOP division unit 38 these compressed signals of response obtain corresponding video image file is described above.
Step S45, in the time that server 20 receives multiple GOP information that client 30 sends, this compression duty control unit 25 produces one according to the plurality of GOP information and records the list of multiple GOP information task.
Step S46, the one or more clients 30 in the plurality of client 30 are called corresponding communication unit 35 and are read the task list in server 20, and obtain a wherein GOP information by compression duty acquiring unit 39.
In the present embodiment, this compression duty acquiring unit 39 obtains randomly a GOP information from task list.
Step S47, the video image file compression unit 33 ' of this client 30 is according to this corresponding gop file of GOP Information Compression obtaining, and calling communication unit 35 will feed back to server 20 through the gop file of overcompression.
In the present embodiment, this video image file compression unit 33 ' is codec H.265.
Step S48, when server 20 receive fed back by one or more clients 30 after the gop file of overcompression, this GOP encapsulation unit 24 merges according to the order of raw video image file the multiple gop files after overcompression that receive and encapsulate, thereby forms corresponding video compression file.Meanwhile, this GOP encapsulation unit 24 is stored in the video compression file of this generation in memory cell 21.Then, flow process finishes.
In the present embodiment, the address information that this compression duty control unit 25 can the each client 30 of automatic acquisition, this address information can comprise IP address, interface message, network dynamic code of client 30 etc.In the time that the video image file acquiring unit 37 of client 30 obtains in task list a GOP information, this compression duty control unit 25 also by the address information recording of client that obtains this GOP information in task list, and corresponding with this GOP information.Whether this compression duty acquiring unit 39 has corresponding client address information according to GOP information judges whether this GOP information is obtained and compressed by other clients 30, and from task list, obtains by this compression duty acquiring unit 39 the GOP information that is not assigned to client 30 according to judged result.This compression duty control unit 25 also judges whether the GOP information in task list is all assigned with a client address information, and in the time determining that GOP information in task list has all been distributed a client address information, produce corresponding compression duty and complete instruction, and in the time that not all being assigned with client address information, the GOP information in definite task list do not produce any instruction.These GOP encapsulation unit 24 these compression duty of response complete instruction this video compression file are stored in memory cell 21.Thereby gop file corresponding to whole GOP information being divided when video image file complete compression, merge and when encapsulation, the video compression file of generation be stored in memory cell 21.
Referring to Fig. 7, is the flow chart of video image file compression method in another execution mode of the present invention, and the method comprises:
Step S50, connects at least one client 30 to server 20 ', and wherein, each client 30 is all communicated and is connected with server 20 ' by network.
Step S51, responds the acquisition request video image file of user's displaying video image and plays corresponding video image with a wherein client 30 of one or more clients 30 of this server 20 ' communication connection.
Step S52, the request that the control unit 34 of this client 30 responds a compressed video image file produces corresponding compression request signal, and calling communication unit 35 sends these compression request signals to server 20 ', this compression request signal comprises the file identity identifying information of the video image that this client 30 plays.
Step S53, in the time that this server 20 ' receives the compression request signal that client 30 sends, the control unit 22 ' of this server 20 ' is resolved the identifying information in this compression request signal receiving, and this identifying information is stored in memory cell 21 ', and judge whether video image file corresponding to this identifying information to compress processing according to a feedback information.If so, enter step S54, otherwise, continue to carry out this step.
Step S54, the control unit 22 ' of this server 20 ' produces corresponding compressed signal, and this GOP division unit 27 ' responds this compressed signal and obtains corresponding video image file, and this video image file information is divided into multiple GOP information.
Step S55, the compression duty control unit 25 ' of server 20 ' produces one according to the plurality of GOP information and records the list of multiple GOP information task.
Step S56, the one or more clients 30 in the plurality of client 30 are called corresponding communication unit 35 and are read the task list in server 20 ', and obtain a wherein GOP information by compression duty acquiring unit 39 '.
Step S57, the video image file compression unit 33 ' of this client 30 is according to this corresponding gop file of GOP Information Compression obtaining, and the gop file through overcompression is fed back to server 20 ' by calling communication unit 35.
Step S58, when server 20 ' receive fed back by one or more clients 30 after the gop file of overcompression, this GOP encapsulation unit 24 ' merges according to the order of raw video image file the multiple gop files after overcompression that receive and encapsulate, thereby forms corresponding video compression file.Meanwhile, this GOP encapsulation unit 24 ' is stored in the video compression file of this generation in memory cell 21 '.Then, flow process finishes.
A kind of video image file compressibility provided by the invention, client and method, by client, video image file is divided into multiple picture groups, and corresponding picture group information is uploaded onto the server to form corresponding task list, at least one client can be obtained corresponding GOP information and corresponding gop file is compressed by reading task list, thereby and in server, complete multiple merging through the GOP of overcompression information and encapsulation and complete compression and the preservation of video image file, the process of video compression in prior art of solving completes and can not effectively utilize the operational capability of equipment in an equipment, reduce the technical problem of the processing speed to video compression file, thereby processor active task is decomposed, to make full use of computational resource, improve Video compression speed.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.