The content of the invention
Embodiment of the present invention technical problem to be solved is that there is provided a kind of video image file compressibility, visitor
Family end and method, complete in an equipment to solve the process of video compress in the prior art and can not effectively utilize equipment
Operational capability, the technical problem of the processing speed to video compress file is reduced, so as to processor active task be decomposed, with abundant
Using computing resource, Video compression speed is improved.
In order to solve the above technical problems, the present invention provides a kind of video image file compressibility, including at least one service
Device, in addition to an at least client, are connected with an at least server communication, and the client includes video image file and obtains single
Member, video image broadcast unit, picture group division unit, compression duty acquiring unit and video image file compression unit,
The server includes control unit, compression duty control unit, picture group encapsulation unit, memory cell.The video image file
Acquiring unit is used to respond the acquisition request video image file for playing video image file and plays single by the video image
Member plays corresponding video image, and the client is additionally operable to the corresponding compression of request generation that the video image file is compressed in response
Request signal, and the compression request signal is sent to the server, the compression request signal includes the knowledge of the video image file
Other information.
The control unit is used to by receive one determine whether to the video figure when detecting the compression request signal
The feedback information being compressed as file is sent to the client for sending out the compression request signal.
The picture group division unit of the client is used to determine the feedback information to be compressed institute's video image file
When the video image file information is divided into multiple picture group informations, and the plurality of picture group information is sent to the service
Device.
The compression duty control unit of the server is used to record the plurality of picture according to the plurality of picture group information generation one
The task list of face group information.
The compression duty acquiring unit of the client is used to obtain a picture group information from the task list, the video figure
Picture compressing file unit is used for the corresponding picture group file of picture group Information Compression according to the acquisition, and by through overcompression
Picture group file feeds back to the server.
The picture group file after overcompression that the picture group encapsulation unit of the server is used to send the client enters
Row merges and encapsulated, so as to form corresponding video compress file, and the video compress file is stored in into the memory cell
In.
Further, the present invention also provides a kind of video image file compression client, and the client is led to a server
Letter connection, the client includes:
Control unit, the request that video image is played for responding user produces corresponding request signal.Response one is compressed
The request of video image file produces corresponding compression request signal, and sends the carrying video image file identity identification information
Compression request signal to the server, determine whether what the video image file was compressed by one to trigger the server
Feedback information feeds back to the client.And recognize that the feedback information is corresponding to be produced when being compressed to the video image file
Compressed signal.
Video image file acquiring unit, for responding the video image file played needed for the request signal is obtained.
Video image broadcast unit, the corresponding video image file of video image file for playing the acquisition.
Picture group division unit, multiple picture groups are divided into for responding the compressed signal by the video image file information
Information, and the plurality of picture group information is sent to the server, produced with triggering the server according to the plurality of picture group information
Raw one records the task list of multiple picture group informations.
Compression duty acquiring unit, for obtaining a picture group information from the task list of the server.And
Video image file compression unit, for the corresponding picture group file of the picture group Information Compression according to acquisition,
And the picture group file through overcompression is fed back into the server, to trigger the server by the picture after overcompression received
Face group file merges and encapsulated to form corresponding video compress file and by the server storage video compress
File.
Further, the present invention also provides a kind of video image file compression method, and this method includes:
An at least client is connected to an at least server.
The compression request sent by a client according to the request for compressing the video image file is received by the server
Signal, the compression request signal includes the identification information of the video image file.
Determine whether that the feedback information being compressed to the video image file is sent by receive one by the server
To the client for sending out the compression request signal.
Determine that the feedback information is by the video image file when being compressed to the video image file by the client
Information is divided into multiple picture group informations, and the plurality of picture group information is sent to the server.
One task list for recording the plurality of picture group information is generated by the server.
A picture group information is correspondingly obtained from the task list of the server by an at least client.
By the client according to the corresponding picture group file of picture group Information Compression of the acquisition and by the picture through overcompression
Face group file is sent to the server.And
Picture group Piece file mergence through overcompression will be received by the server and encapsulation forms corresponding video pressure
Contracting file, and store the video compress file.
A kind of video image file compressibility, client and method that the present invention is provided, by client by video figure
As 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 obtain corresponding GOP information by reading task list and corresponding gop file is compressed,
And the merging of multiple gop files through overcompression is completed in the server with encapsulating so as to complete the compression of video image file
And preservation, the process for solving video compress in the prior art completes in an equipment and can not effectively utilize the computing of equipment
Ability, reduces the technical problem of the processing speed to video compress file, so as to processor active task be decomposed, in terms of making full use of
Resource is calculated, Video compression speed is improved.
Embodiment
To describe the technology contents of the present invention in detail, feature, the objects and the effects being constructed, below in conjunction with embodiment
And coordinate accompanying drawing to be explained in detail.
Referring to Fig. 1, be the hardware structure schematic diagram of the video image file compressibility in embodiment of the present invention, should
System 10 includes an at least server 20 and an at least client 30, wherein, each client 30 passes through network and service
Device 20 is communicatively coupled, and the network can be the wireless communication connection network such as bluetooth, infrared ray, wifi, can also be
The wired connection network such as Internet.In the present embodiment, the server 20 be cloud server, the client 30 be with
The electronic equipment of video/audio playing function.For example, the client 30 can be smart mobile phone, tablet personal computer, personal computer
Etc. the intelligent electronic device of playing program can be run.
It is the clothes in the video image file compressibility 10 in an embodiment of the present invention please refer to Fig. 2 and Fig. 3
The high-level schematic functional block diagram for device 20 and the client 30 of being engaged in.The server 20 includes memory cell 21, control unit 22, input block
23rd, GOP encapsulation units 24, compression duty control unit 25 and communication unit 26.Each client 30 includes memory cell
31st, video image broadcast unit 32, video image file compression unit 33, control unit 34, communication unit 35, input block
36th, video image file acquiring unit 37, GOP division units 38 and compression duty acquiring unit 39.Wherein, the client 30
The communication unit 26 of communication unit 35 and server 20 be communicatively coupled so that client 30 and the communication link of server 20
Connect.In the present embodiment, the memory cell 21 can be a database.
Specifically, video image file is compressed so that a client 30 and a server 20 are communicatively coupled as an example
Process is illustrated.The request that the input block 36 response user plays video image produces corresponding request signal, and by controlling
Unit 34 processed responds the video image file that the request signal calls video image file acquiring unit 37 to be played needed for obtaining, with
And call the corresponding video image of video image file of the broadcasting of video image broadcast unit 32 acquisition.In present embodiment
In, the video image file acquiring unit 37 by communication unit 35 from the client 30 carry out network service be connected other
The required video image file is obtained in device (not shown).In another embodiment, raw video image file is advance
It is stored in the memory cell 21 of the server 20, the video image file acquiring unit 37 can be by communication unit 35 from clothes
It is engaged in the memory cell 21 of device 20 obtaining required video image file.Further, in the present embodiment, the video image
File obtaining unit 37 is also stored in the video image file of acquisition as cache file in memory cell 31.By client 30
Video image broadcast unit 32 play and show video image be prior art, be not added with repeating herein.
The request that the control unit 34 is also responsive to a compressed video image file produces corresponding compression request signal, and adjusts
The compression request signal is sent to the server 20 with communication unit 35, and the compression request signal includes what the client 30 was played
The file identity identification information of video image, hereinafter referred to as identification information, the identification information can include form, size, name
The uniqueness identification information of the video image files such as the cryptographic Hash of title and file content.In the present embodiment, the control
The operational order that the response user of unit 34 is inputted by input block 36 produces the compression request signal, in other embodiment
In, the control unit 34 can also produce the compression request letter while video image broadcast unit 32 plays video image
Number.
When server 20 receives the compression request signal of the transmission of client 30, the control unit 22 parses this and received
Request signal in identification information, and the identification information is stored in memory cell 21.In the present embodiment, the control
Unit 22 is stored in the identification information received as back-end data in memory cell 21, system manager by with the service
The monitoring device that device 20 is communicatively coupled obtains the identification information, and is judged whether according to the identification information of acquisition to the identification
The corresponding video image file of information is compressed processing, while the monitoring device is according to the corresponding control of the judgement of keeper feedback
Signal processed is to server 20.Wherein, the monitoring device can be computer or server.The server 20 passes through communication unit
26 send the control signal received to corresponding client 30.
When client 30 receives the control signal, the control unit 34 recognizes the control signal to perform video image
Corresponding compressed signal is produced during compressing file, the GOP division units 38 respond the compressed signal and obtain corresponding video image
File, and multiple picture group informations (GOP, group of pictures) are marked off according to the video image file information, and
Communication unit 35 is called to send the plurality of GOP information to server 20.Wherein, each GOP information includes corresponding GOP image
Information, for example, GOP frame information.The GOP division units 38 respond the method that the compressed signal obtains corresponding video image file
As described above.
When server 20 receives multiple GOP information of the transmission of client 30, the basis of compression duty control unit 25
The plurality of GOP information produces one and records multiple GOP information tasks lists.
When multiple client 30 and the server 20 are communicated to connect, one or more of the plurality of client 30 client
End 30 can call the task list in the corresponding reading service device 20 of communication unit 35, and pass through compression duty acquiring unit 39
Obtain a wherein GOP information.In the present embodiment, the compression duty acquiring unit 39 randomly obtains one from task list
GOP information.The video image file compression unit 33 is according to the corresponding gop file of GOP Information Compressions of the acquisition, and calls
Gop file through overcompression is fed back to server 20 by communication unit 35.In the present embodiment, the video image file compresses
Unit 33 is H.265 codec.When server 20 receives the GOP through overcompression fed back by one or more clients 30
After file, the GOP encapsulation units 24 are by the multiple gop files after overcompression received according to raw video image file
Order is merged and encapsulated, so as to form corresponding video compress file.Meanwhile, the GOP encapsulation units 24 generate this
Video compress file be stored in memory cell 21.
In the present embodiment, the compression duty control unit 25 can obtain the address letter of each client 30 automatically
Breath, the address information can include IP address, interface message, network dynamic code of client 30 etc..When the video of client 30
When image file acquiring unit 37 obtains a GOP information in task list, the compression duty control unit 25 will also obtain the GOP
The address information recording of the client of information is and corresponding with the GOP information in task list.
Correspondingly, when the quantity of the client 30 communicated to connect with server 20 is less than the GOP letters recorded in task list
During the quantity of breath, not obtained by a client 30 for task, i.e., GOP information in task list is not recorded corresponding client
Hold address information.When having, new client 30 is communicated to connect with server 20 and compression duty acquiring unit 39 is needed from task
When obtaining GOP information in list, whether the compression duty acquiring unit 39 there is corresponding client address to believe according to GOP information
Breath judges whether the GOP information obtains and compress via other clients 30, and by the compression duty acquiring unit 39
It is judged that result obtains the unassigned GOP information to client 30 from task list.Then, pressed by the new client 30
The corresponding gop file of GOP information is compressed and sent to server 20 by the method according to above-mentioned record.
In the present embodiment, the compression duty control unit 25 also judges whether the GOP information in task list is whole
A client address information is allocated, and when the GOP information in determination task list has been fully assigned a client address
Corresponding compression duty is produced during information and completes instruction, and when the GOP information in determination task list is not allocated visitor all
Any instruction is not produced during the address information of family end.The GOP encapsulation units 24 respond the compression duty and complete instruction by the video pressure
Contracting file is stored into memory cell 21.So as to, whole GOP information being divided when video image file information complete compression,
When merging and encapsulating, the video compress file of generation is stored in memory cell 21.
Please refer to Fig. 4 and Fig. 5, in being the video image file compressibility 10 in another embodiment of the invention
The high-level schematic functional block diagram of server 20 ' and client 30 '.The server 20 ' include memory cell 21 ', control unit 22 ',
Input block 23 ', GOP encapsulation units 24 ', compression duty control unit 25 ', communication unit 26 ' and GOP division units 27 '.
Each client 30 ' includes memory cell 31 ', video image broadcast unit 32 ', video image file compression unit 33 ', control
Unit 34 ' processed, communication unit 35 ', input block 36 ', video image file acquiring unit 37 ' and compression duty acquiring unit
38’。
When server 20 receive by monitoring device according to keeper judge feedback whether video image file is entered
During the control signal of row compression processing, the control unit 22 ' recognizes the control signal and produced to perform during video image file compression
Raw correspondingly compressed signal, the GOP division units 27 ' respond the compressed signal and obtain corresponding video image file, and should
Video image file information is divided into multiple GOP information.The compression duty control unit 25 ' is produced according to the plurality of GOP information
One records multiple GOP information tasks lists.Then, method is compressed the system to video image file as described above
Processing.
Referring to Fig. 6, being the flow chart of video image file compression method in an embodiment of the present invention, this method bag
Include:
Step S40, connects at least one client 30 to server 20, wherein, each client 30 by network with
Server 20 is communicatively coupled, and the network can be the wireless communication connection network such as bluetooth, infrared ray, wifi, can also be
The wired connection network such as Internet.
Step S41, a wherein client 30 for the one or more clients 30 communicated to connect with the server 20 is responded
User plays the acquisition request video image file of video image and plays corresponding video image.
In the present embodiment, the video image file is passed through by the video image file acquiring unit 37 of the client 30
Communication unit 35 is obtained from other devices that network service is connected are carried out with the client 30.In another embodiment, should
Video image file is stored in advance in the memory cell 21 of server 20, and the video image file acquiring unit 37 passes through communication
Unit 35 obtains the video image file from the memory cell 21 of server 20.Further, in the present embodiment, this is regarded
Frequency image file acquiring unit 37 is also stored in the video image file of acquisition as cache file in memory cell 31.
Step S42, the control unit 34 of the client 30 responds the request generation of a compressed video image file accordingly
Compression request signal, and call communication unit 35 to send the compression request signal to server 20, the compression request signal includes
The file identity identification information for the video image that the client 30 is played, hereinafter referred to as identification information, the identification information can be with
The uniqueness identification information of the video image files such as the cryptographic Hash including form, size, title and file content.
In the present embodiment, the operational order that the control unit 34 response user is inputted by input block 36 is produced should
Compression request signal, in other embodiments, the control unit 34 can also play video in video image broadcast unit 32
The compression request signal is produced while image.
Step S43, when the server 20 receives the compression request signal of the transmission of client 30, the control of the server 20
Unit 22 processed parses the identification information in the compression request signal that this is received, and the identification information is stored in into memory cell 21
In, and judged whether according to a feedback information to be compressed processing to the corresponding video image file of the identification information.If so,
Then enter step S44, otherwise, continue executing with the step.
In the present embodiment, the identification information received is stored in storage list by the control unit 22
In member 21, system manager obtains the identification information by the monitoring device being communicatively coupled with the server 20, and according to
The identification information of acquisition judges whether to be compressed processing to the corresponding video image file of the identification information, while the monitoring is set
It is standby that above-mentioned feedback information is sent to server 20 according to the judgement of keeper.
Step S44, the server 20 is sent the feedback information received to corresponding client by communication unit 26
End 30, corresponding compressed signal is produced by the control unit 34 of the client 30, and the GOP division units 38 respond the compressed signal
Corresponding video image file is obtained, and the video image file information is divided into multiple GOP information, and calls communication unit
Member 35 sends the plurality of GOP information to server 20.Wherein, each GOP information includes corresponding GOP image information, for example,
GOP frame information.
The method that the GOP division units 38 respond compressed signal acquisition corresponding video image file is as described above.
Step S45, when server 20 receives multiple GOP information of the transmission of client 30, compression duty control is single
Member 25 produces one according to the plurality of GOP information and records multiple GOP information tasks lists.
Step S46, one or more of the plurality of client 30 client 30 calls corresponding communication unit 35 to read
Task list in server 20, and a wherein GOP information is obtained by compression duty acquiring unit 39.
In the present embodiment, the compression duty acquiring unit 39 randomly obtains a GOP information from task list.
Step S47, the video image file compression unit 33 of the client 30 is corresponding according to the GOP Information Compressions of the acquisition
Gop file, and call communication unit 35 that the gop file through overcompression is fed back into server 20.
In the present embodiment, the video image file compression unit 33 is H.265 codec.
Step S48, when server 20 receives the gop file through overcompression fed back by one or more clients 30
Afterwards, the GOP encapsulation units 24 are by order of the multiple gop files after overcompression received according to raw video image file
Merge and encapsulate, so as to form corresponding video compress file.Meanwhile, the regarding the generation of GOP encapsulation units 24
Frequency compressed file is stored in memory cell 21.Then, flow terminates.
In the present embodiment, the compression duty control unit 25 can obtain the address letter of each client 30 automatically
Breath, the address information can include IP address, interface message, network dynamic code of client 30 etc..When the video of client 30
When image file acquiring unit 37 obtains a GOP information in task list, the compression duty control unit 25 will also obtain the GOP
The address information recording of the client of information is and corresponding with the GOP information in task list.The compression duty acquiring unit 39
Whether there is corresponding client address information to judge whether the GOP information obtains via other clients 30 according to GOP information
Take and compress, and from task list obtain unassigned to client according to judged result by the compression duty acquiring unit 39
The GOP information at end 30.The compression duty control unit 25 also judges whether the GOP information in task list is all allocated a visitor
Family end address information, and when it is determined that the GOP information in task list is produced when being fully assigned a client address information
Corresponding compression duty completes instruction, and when the GOP information in determination task list is not allocated client address letter all
Any instruction is not produced during breath.The GOP encapsulation units 24 respond the compression duty and complete instruction by video compress file storage
Into memory cell 21.So as to when the corresponding gop file of whole GOP information that video image file is divided completes compression, conjunction
And and encapsulation when, the video compress file of generation is stored in memory cell 21.
Referring to Fig. 7, being the flow chart of video image file compression method in another embodiment of the invention, this method bag
Include:
Step S50, connects at least one client 30 ' to server 20 ', wherein, each client 30 ' passes through network
It is communicatively coupled with server 20 '.
Step S51, a wherein client 30 ' for the one or more clients 30 ' communicated to connect with the server 20 ' is rung
The acquisition request video image file of video image is played using family and plays corresponding video image.
Step S52, the control unit 34 ' of the client 30 ' responds the request generation of a compressed video image file accordingly
Compression request signal, and call communication unit 35 ' to send the compression request signal to server 20 ', the compression request signal
The file identity identification information for the video image played including the client 30 '.
Step S53, when the server 20 ' receives the compression request signal of the transmission of client 30 ', the server 20 '
Control unit 22 ' parse identification information in the compression request signal that this receives, and the identification information is stored in storage
In unit 21 ', and judged whether according to a feedback information to be compressed place to the corresponding video image file of the identification information
Reason.If so, then entering step S54, otherwise, the step is continued executing with.
Step S54, the control unit 22 ' of the server 20 ' produces corresponding compressed signal, and the GOP division units 27 ' are rung
Should compressed signal obtain corresponding video image file, and the 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 multiple
GOP information task lists.
Step S56, one or more of the plurality of client 30 ' client 30 ' calls corresponding communication unit 35 to read
The task list in server 20 ' is taken, and a wherein GOP information is obtained by compression duty acquiring unit 38 '.
Step S57, the video image file compression unit 33 ' of the client 30 ' is according to the GOP Information Compression phases of the acquisition
The gop file answered, and call communication unit 35 ' that the gop file through overcompression is fed back into server 20 '.
Step S58, when server 20 ' receives the gop file through overcompression fed back by one or more clients 30 '
Afterwards, the GOP encapsulation units 24 ' by the multiple gop files after overcompression received according to the suitable of raw video image file
Sequence is merged and encapsulated, so as to form corresponding video compress file.Meanwhile, the GOP encapsulation units 24 ' are by the generation
Video compress file is stored in memory cell 21 '.Then, flow terminates.
A kind of video image file compressibility, client and method that the present invention is provided, by client by video figure
As 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 obtain corresponding GOP information by reading task list and corresponding gop file is compressed,
And the merging of multiple GOP information through overcompression is completed in the server with encapsulating so as to complete the compression of video image file
And preservation, the process for solving video compress in the prior art completes in an equipment and can not effectively utilize the computing of equipment
Ability, reduces the technical problem of the processing speed to video compress file, so as to processor active task be decomposed, in terms of making full use of
Resource is calculated, Video compression speed is improved.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.