CN104219537A - Video data processing method, device and system - Google Patents

Video data processing method, device and system Download PDF

Info

Publication number
CN104219537A
CN104219537A CN201310215595.8A CN201310215595A CN104219537A CN 104219537 A CN104219537 A CN 104219537A CN 201310215595 A CN201310215595 A CN 201310215595A CN 104219537 A CN104219537 A CN 104219537A
Authority
CN
China
Prior art keywords
file
video data
compression
head
head file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310215595.8A
Other languages
Chinese (zh)
Other versions
CN104219537B (en
Inventor
林渊灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201310215595.8A priority Critical patent/CN104219537B/en
Publication of CN104219537A publication Critical patent/CN104219537A/en
Application granted granted Critical
Publication of CN104219537B publication Critical patent/CN104219537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video data processing method, device and system, relates to the field of audio and video processing, and aims to solve the problem of overlong first buffer time under the condition of not slicing a video file. The method disclosed by the invention comprises the following steps: splitting an original video file into a head file and a video data file by a network side server; compressing the head file to obtain a compressed head file; combining the compressed head file and the video data file into a compressed video file; and transmitting the compressed video file to a client; receiving the compressed video file transmitted by the network side server by the client, wherein the compressed video file comprises the compressed head file and the video data file, and the compressed head file is the head file which is compressed; after the compressed head file is received, decompressing the compressed head file to obtain the head file; and processing video data files received subsequently according to the head file. The method, the device and the system are mainly applied to a process of acquiring online video data.

Description

The method of video data process, Apparatus and system
Technical field
The present invention relates to audio frequency and video process field, particularly relate to a kind of method, Apparatus and system of video data process.
Background technology
At present, the video file format that dynamic image expert group 4 (Moving Pictures Experts Group-4 is called for short MP4) etc. are conventional, its file is made up of header information and video data two parts.When playing the Online Video of this form, first client must be downloaded header information, then processes the header information downloaded, and finally could carry out decoding to video data and play.When header information is excessive, time of client downloads header information can corresponding prolongation, increases the time cushioned first thus.Wherein, first buffer time to refer to from the client-requested displaying video moment to the client terminal playing first frame video image moment duration.
For shortening buffer time first, improve the experience of user, comparatively general way is at present: in network side server, be multiple sub-video files that duration is equal by video file cutting, each sub-video file comprises a sub-header information and a sub video data.Client downloads each sub-video file successively from network side server end, and processes the sub-header information downloaded, and last sub video data carries out decoding and plays.Owing to there is proportional relation between the size of header information and the duration of video data, therefore can be reduced the size of header information by the mode of cutting sub-video file, and then reduce and download the consuming time of header information, thus shorten the time cushioned first.
In the process that above-mentioned video file is cut into slices, inventor finds that in prior art, at least there are the following problems: video file section can increase the number of video file, increases the complexity of network-side service management, store video files.This external client side, be connected owing to existing between sub video data, therefore may occur when playing video data that picture is beated, the nonsynchronous problem of audio frequency and video, client needs the linking between sub video data to do special processing, adds the intractability of video data.
Summary of the invention
The embodiment of the present invention provides a kind of method, Apparatus and system of video data process, can when not cutting into slices to video file, solves the long problem of buffer time first.
First aspect, embodiments provides a kind of method of video data process, comprising:
Original video files is split as head file and video data file;
Described head file is compressed, obtains compression head file;
Described compression head file and described video data file are merged into compressed video file;
Described compressed video file is sent to client.
Second aspect, the embodiment of the present invention additionally provides a kind of method of video data process, comprising:
Receive the compressed video file that network side server sends, described compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression;
After receiving described compression head file, described compression head file is decompressed, obtain head file;
Process according to the video data file of described head file to receipt of subsequent.
The third aspect, the embodiment of the present invention additionally provides a kind of device of video data process, and described device is first device, and described first device comprises:
Split cells, for being split as head file and video data file by original video files;
Compression unit, compresses for the described head file split out described split cells, obtains compression head file;
Merge cells, shown in splitting out for the described compression head file that compressed by described compression unit and described split cells, video data file merges into compressed video file;
Transmitting element, sends to client for the described compressed video file merged by described merge cells.
Fourth aspect, the embodiment of the present invention additionally provides a kind of device of video data process, and described device is the second device, and described second device comprises:
Receiving element, for receiving the compressed video file that network side server sends, described compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression;
Decompression unit, after receiving described compression head file at described receiving element, decompresses to described compression head file, obtains head file;
Processing unit, processes for the video data file of described head file to described receiving element receipt of subsequent obtained that decompress according to described decompression unit.
5th aspect, the embodiment of the present invention additionally provides a kind of system of video data process, described system comprises network side server and client, wherein, comprise the first device as described in the aforementioned third aspect in described network side server, in described client, comprise the second device as described in aforementioned fourth aspect.
Method, the Apparatus and system of the video data process that the embodiment of the present invention provides, original video files can be split as head file and video data file, then head file is compressed, obtain compression head file, then compression head file and video data file are merged into compressed video file, finally compressed video file is sent to client.Client receives the compressed video file that network side server sends, and after receiving compression head file, decompresses, obtain head file, then process according to the video data file of head file to receipt of subsequent compression head file.Method, the Apparatus and system of the video data process that the embodiment of the present invention provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of download head file.Compared with the mode reducing head file size by cutting into slices to video file in prior art, can not cut into slices and special processing to video file, can time of cushioning first of simple and effective shortening.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method for video data process in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another video data process in the embodiment of the present invention;
Fig. 3 is the interaction figure of video data process in the embodiment of the present invention;
Fig. 4 is the schematic diagram of original video files in the embodiment of the present invention;
Fig. 5 is the schematic diagram of compressed video file in the embodiment of the present invention;
Fig. 6 is the schematic diagram of network side server process original video files in the embodiment of the present invention;
Fig. 7 is the structural representation of first device in the embodiment of the present invention;
Fig. 8 is the structural representation of another first device in the embodiment of the present invention;
Fig. 9 is the structural representation of the second device in the embodiment of the present invention;
Figure 10 is the schematic diagram of the system of video data process in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present embodiment, be clearly and completely described the technical scheme in the present embodiment, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For reducing the buffer time first when user watches Online Video, present embodiments provide a kind of method of video data process, the method is applied to network side server side.As shown in Figure 1, described method comprises:
101, original video files is split as head file and video data file by network side server.
Original video files described in the present embodiment is the video data of client-requested, after network side server finds original video files, original video files is split as head file and video data file.Described head file comprises the data block of video data header information, the resolution, coded format, code check, key frame index etc. of such as video.Network side server splits out head file from original video files, compresses head file so that follow-up.
102, network side server compresses head file, obtains compression head file.
The object of network side server to head compressing file is the size reducing head file, thus shortens the consuming time of client downloads head file.
103, compression head file and video data file are merged into compressed video file by network side server.
After acquisition compression head file, compression head file and video data file are merged into compressed video file by network side server, send to client so that follow-up.
104, compressed video file is sent to client by network side server.
Compressed video file is sent to client by network side server, so that client decompresses to the compression head file in compressed video file, and according to the head file obtained after decompression, decoding process is carried out to subsequently received video data file, thus play Online Video.
In the present embodiment, the video type of client-requested is Online Video, and network side server sends the compressed video file comprising compression head file to client with the form of Media Stream.First client receives compression head file, then processes according to the video data file of header information to receipt of subsequent in compression head file.
In prior art, original video files, after the video data request receiving client, is directly sent to client by network side server.First client needs to receive head file, then processes according to the video data file of head file to receipt of subsequent.Due in video file, the size of head file usually and the proportional relation of duration of video, therefore, when the video that client-requested one section of duration is longer, client receives the just corresponding increase consuming time of (download) head file, thereby increases the time cushioned first.
The method of the video data process that the present embodiment provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of client downloads head file, and then shorten the time cushioned first.Meanwhile, the method for the video data process that the present embodiment provides without the need to cutting into slices to video file, can simplified network side server process, stored video data complexity.
As the opposite end method of method shown in corresponding diagram 1, the present embodiment additionally provides a kind of method of video data process, and the method is applied to client side.As shown in Figure 2, described method comprises:
201, client receives the compressed video file that network side server sends.
Compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression.Network side server sends compressed video file with the form of Media Stream to client, and client first receives compression head file then receiving video data file.
202, client is after receiving compression head file, decompresses, obtain head file to compression head file.
Because network side server compresses head file before transmission compressed video file, so first need compression head file to decompress after receiving compression head file, obtain head file.
203, client processes according to the video data file of head file to receipt of subsequent.
Client carries out the process such as decoding according to head file to the video data file of receipt of subsequent, thus plays video.
In the present embodiment, the video type due to client-requested is Online Video, and therefore client receiving video data file is a lasting process, is not perform step 202 again after head file and video data file all being received.Client starts receiving video data file after receiving compression head file, in decompression head file process and head file decompressed after continuous reception video data file, and according to decompress after the video data file of head file to real-time reception process.
The method of the video data process that the present embodiment provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of client downloads head file, and then shorten the time cushioned first.In addition, the method for the video data process that the present embodiment provides without the need to carrying out special processing to the sub-video file after section, can simplify processes video data complexity and save the expense of client respective handling resource.
As the detailed description to method shown in Fig. 1 and Fig. 2, the present embodiment additionally provides a kind of method of video data process, and described method relates to network side server and local client.As shown in Figure 3, described method comprises:
301, client sends video data request to network side server.
Described video data request is used for obtaining video file to server request.
302, network side server searches original video files according to video data request.
The video file that network side server finds according to video data request is called as original video files.
303, original video files is split as head file and video data file by network side server.
Example, as shown in Figure 4, original video files comprises the header data of 10 bits and the video data of 10000 bits.Network side server splits original video files, obtains the head file of 10 bits and the video data file of 10000 bits.
Original video files is split as head file and video data file by network side server, specifically comprises:
303a, network side server create head file and video data file.
Network side server calls CreateFile function and creates head file and video data file respectively, and the head file of establishment and video data file are respectively used to load the follow-up header data that splits out from original video files and video data.
303b, network side server be difference read head data and video data from original video files.
First network side server calls OpenFile function and opens original video files, then calls ReadFile function difference read head data and video data from original video files.
Still for Fig. 4, network side server calls OpenFile function and opens original video files as shown in Figure 4, then calls the header data that ReadFile function reads front 10 bits from original video files, and the video data of rear 10000 bits.
303c, network side server are by header data write head file.
Network side server calls WriteFile function by the header data write head file of 10 bits.
Video data writes in video data file by 303d, network side server.
Network side server calls WriteFile function by the video data of 10000 bits write video data file.Obtain a head file comprising 10 bit header data thus, and a video data file comprising 10000 bit video datas.
It should be noted that, the present embodiment distinguishes step 303c and step 303d only for ease of statement, in practical application, network side server also first can perform step 303d, perform step 303c again, or perform step 303c and step 303d, the execution sequence of the present embodiment to network side server does not limit simultaneously.Similar, network side server also can first perform step 303b read head data and video data, and then performs step 303a establishment head file and video data file, or performs step 303a and step 303b simultaneously.
304, network side server compresses head file according to Zlib function storehouse, obtains compression head file.
After acquisition head file and video data file, network side server Zlib function storehouse is compressed head file, obtains compression head file.Such as, the head file boil down to of the 10 bit sizes obtained in step 303 is only had the compression head file of 3 bit sizes by network side server.
Be described as compression means using Zlib function storehouse in the present embodiment, in practical application, the mode that head file compresses be not limited thereto.
Optionally, for saving buffer time first further, head file cutting can also be that multiple sub-clip segment compresses by network side server.Client often receives a compression sub-pieces section and just can decompress to this compression sub-pieces section afterwards, without the need to wait for all receive whole compression head file after decompress again.Concrete: head file cutting is at least two sub-fragments by network side server, then compresses respectively at least two sub-fragments according to Zlib function storehouse.Such as, network side server by the sub-pieces section of head file cutting 3 section of 4 bit of 12 bit sizes, then according to the compression sub-pieces section of Zlib function storehouse by each sub-pieces section boil down to 1 bit size.
Optionally, for reducing the consuming time of client downloads video file further, network side server also can compress video data file according to Zlib function storehouse, obtains compressed video data file.It should be noted that herein, compressed video data file described in this step is different from merging the compressed video file obtained in subsequent step, the file that described compressed video data file obtains after referring to and compressing video data file, compressed video file then refers to the upper level file comprising compression head file and unpressed video data file, or for comprising the upper level file of compression head file and compressed video data file, namely compressed video file only represents the file including compression head file.
305, compression head file and video data file are merged into compressed video file by network side server.
Compression head file and video data file are merged into compressed video file by network side server, specifically comprise:
305a, network side server create compressed video file.
Similar with 303a, network side server calls CreateFile function creation compressed video file, for loading header data and the video data of follow-up reading.
305b, network side server read the header data after compression from compression head file.
Network side server calls ReadFile function and read 3 bit header data after compression from compression head file.
305c, network side server reading video data from video data file.
Network side server calls the video data that ReadFile function reads 10000 bits from video data file.
Optionally, if network side server also compresses video data file in step 303, then network side server calls ReadFile function from compressed video data file, reads the video data after compressing in this step.
Header data after compression and video data are written to the assigned address in compressed video file by 305d, network side server respectively.
Network side server first can call WriteFile function and be written in compressed video file by 3 bit header data after compression, then calling WriteFile function is written in compressed video file by video data (or the video data after compression), obtains compressed video file thus.Write sequence in the present embodiment only uses, not as the restriction to practical application as illustrating.
Optionally, when network side server carries out sectional compression to head file, in this step, compression sub-pieces section good for all compressions is all written in corresponding compressed video file according to original putting in order and compresses on the position of head file by network side server.
Preferably, for consistent with existing standard video file form, before header data after the compression of reading can be write the video data of reading by network side server, form compressed video file as shown in Figure 5, so that first client receives compression head file, and compression head file is processed.
It should be noted that, the present embodiment distinguishes step 305b and step 305c only for ease of statement, in practical application, network side server also first can perform step 305c, perform step 305b again, or perform step 305b and step 305c, the execution sequence of the present embodiment to network side server does not limit simultaneously.
As shown in Figure 6, corresponding step 303 is to step 305, and network side server first original video files is split as head file and video data file.Then the head file split out is compressed, obtain compression head file.Compression head file and video data file are merged into compressed video file by last network side server.
306, compressed video file is sent to client by network side server.
Optionally, network side server can perform the process of original video files before client sends video data request, namely, network side server is to all original video files stored all order execution above-mentioned steps 302 to steps 305, obtain compressed video file, and compressed video file is stored.When client sends video data request (step 301), network side server searches the compressed video file of user's request, then directly performs step 306, the compressed video file found is sent to client.Steps flow chart order in this correspondence is: step 302, step 303, step 304, step 305, step 301, step 306 ...
307, client receives compression head file, decompresses, obtain head file according to Zlib function storehouse to compression head file.
Client, in the process receiving the compressed video file shown in Fig. 5, first receives compression head file, uses Zlib function storehouse to decompress to compression head file, obtains head file.Such as, after client receives the compression head file of 3 bits, according to Zlib function storehouse, this compression head file is decompressed, obtain the head file of 10 bits.
Optionally, when network side server carries out sectional compression to head file, client receives at least two compression sub-pieces sections, described at least two compression sub-pieces sections form described compression head file, after often receiving a compression sub-pieces section, according to Zlib function storehouse, this compression sub-pieces section is decompressed.Such as, its decompress(ion), when receiving each 1 bit compression sub-pieces section, is condensed to the sub-pieces section of 4 bits by client according to Zlib function storehouse.
Be described as decompression means using Zlib function storehouse in the present embodiment, in practical application, the mode that compression head file decompresses be not limited thereto.
308, the head file after decompression sends to player to process by client.
Described player is the playout software in client, and head file is sent to player so that player carries out decoding playback process according to header data such as head file intermediate-resolution rate, coded formats to subsequently received video data file by client.
Optionally, when client receives multiple compression sub-pieces section respectively, this sub-pieces section, when often separating an extrusion sub-fragment, is just sent to player by client.
309, the video data of reception sends to player to process by client, continues the video data in receiving video data file simultaneously.
Client, after receiving compression head file, starts receiving video data, and the video data constantly received is sent to player, carries out decoding play by player according to header data to video data.
The bit value related in above embodiment and Fig. 4, Fig. 5 are only example and use are described, not as the restriction to numerical value concrete in practical application.
The method of the video data process that the present embodiment provides can carry out compressed and decompressed process to the video data comprising the forms such as MP4, MOV.For the video data of MP4 form, related experiment shows that the head file after adopting Zlib compression compares the size that the head file do not compressed can reduce 1/3rd, when transmission bandwidth is constant, the consuming time of client downloads head file can shorten 1/3rd.In addition, network side server before clients request video data, can also carry out compression process to all original video files stored in advance, saves client further and obtains the consuming time of compressed video file.And the decompression of client opposing headers consuming time file download is consuming time negligible, by buffer time reduces 1/3rd first, can greatly improve the viewing experience of user thus.
3rd, the method for the video data process that the present embodiment provides, can also be multiple sub-pieces sections by head file cutting, and carry out Zlib compression respectively to multiple sub-pieces section.Client just can decompress to it and send to player afterwards receiving a compression sub-pieces section, without the need to wait by all compressing the step of carrying out again after head file all downloads decompressing, can shorten the time cushioned first further thus.
Finally, the method of the video data process that the present embodiment provides is applicable to video file microtomy too, only handling object is replaced with sub-video file, sub-head file and sub video data file, its implementation can realize with reference to the mode of above-mentioned Fig. 1 to Fig. 3, repeats no more herein.
With reference to the realization of method shown in above-mentioned Fig. 1 or Fig. 3, the present embodiment additionally provides a kind of device of video data process, and described device is first device, in order to realize the method shown in Fig. 1 or Fig. 3.Described first device and can have data interaction relation in network side server or independent of network side server between network side server.As shown in Figure 7, described first device 71, comprises split cells 711, compression unit 712, merge cells 713 and transmitting element 714, wherein,
Described split cells 711, for being split as head file and video data file by original video files;
Described compression unit 712, compresses for the described head file split out described split cells 711, obtains compression head file;
Described merge cells 713, shown in splitting out for the described compression head file that compressed by described compression unit 712 and described split cells 711, video data file merges into compressed video file;
Described transmitting element 714, sends to client for the described compressed video file merged by described merge cells 713.
Further, as shown in Figure 8, described split cells 711 comprises:
First creates subelement 811, for creating head file and video data file;
First reads subelement 812, for difference read head data and video data from described original video files;
First write subelement 813, in the described head file that the described first establishment subelement 811 of described header data write read for reading subelement 812 by described first creates;
In the described video data file that the described first establishment subelement 811 of described video data write that described first write subelement 813 also reads for reading subelement 812 by described first creates.
Further, described compression unit 712, for compressing described head file according to Zlib function storehouse, obtains compression head file.
Further, described compression unit 712 for: be at least two sub-fragments by described head file cutting, according to Zlib function storehouse, described at least two sub-fragments compressed respectively.
Further, as shown in Figure 8, described merge cells 713 comprises:
Second creates subelement 814, for creating compressed video file;
Second reads subelement 815, for reading the header data after compression from described compression head file;
Described second reads subelement 815 also for reading described video data from described video data file;
Second write subelement 816, is written to described second respectively for the header data after reading the subelement 815 described compression of reading by described second and described video data and creates assigned address in the described compressed video file that subelement 814 creates.
Further, described second write subelement 816 is for before writing described video data by the header data after described compression.
The first device that the embodiment of the present invention provides, original video files can be split as head file and video data file, then head file is compressed, obtain compression head file, then compression head file and video data file are merged into compressed video file, finally compressed video file is sent to client.The first device of the video data process that the embodiment of the present invention provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of download head file.Compared with the mode reducing head file size by cutting into slices to video file in prior art, can not cut into slices and special processing to video file, can time of cushioning first of simple and effective shortening.
In addition, the first device that the present embodiment provides, can also be multiple sub-pieces sections by head file cutting, and carry out Zlib compression respectively to multiple sub-pieces section.Client just can decompress to it and send to player afterwards receiving a compression sub-pieces section, without the need to wait by all compressing the step of carrying out again after head file all downloads decompressing, can shorten the time cushioned first further thus.
With reference to the realization of method shown in above-mentioned Fig. 2 or Fig. 3, the present embodiment additionally provides a kind of device of video data process, and described device is the second device, in order to realize the method shown in Fig. 2 or Fig. 3.Described second device can be arranged in client.As shown in Figure 9, described second device 91, comprises, receiving element 911, decompression unit 912 and processing unit 913, wherein,
Described receiving element 911, for receiving the compressed video file that network side server sends, described compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression;
Described decompression unit 912, for after described receiving element 911 receives described compression head file, decompresses to described compression head file, obtains head file;
Described processing unit 913, for decompressing according to described decompression unit 912, the video data file of described head file to described receiving element 911 receipt of subsequent obtained processes.
Further, described decompression unit 912, for decompressing to described compression head file according to Zlib function storehouse, obtains head file.
Further, described receiving element 911 is for receiving at least two compression sub-pieces sections, and described at least two compression sub-pieces sections form described compression head file;
Described decompression unit 912, for after often receive a compression sub-pieces section at described receiving element 911, decompresses to this compression sub-pieces section according to Zlib function storehouse.
The second device that the embodiment of the present invention provides, the compressed video file that network side server sends can be received, after receiving compression head file, compression head file is decompressed, obtain head file, then process according to the video data file of head file to receipt of subsequent.Second device of the video data process that the embodiment of the present invention provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of download head file.Compared with the mode reducing head file size by cutting into slices to video file in prior art, can not cut into slices and special processing to video file, can time of cushioning first of simple and effective shortening.
In addition, the second device that the present embodiment provides, just this compression sub-pieces section is decompressed and sends to player afterwards receiving each compression sub-pieces section, without the need to waiting for all compressing the step of carrying out again after head file all downloads decompressing, the time cushioned first can be shortened further thus.
With reference to the realization of method shown in above-mentioned Fig. 1 to Fig. 3, the present embodiment additionally provides a kind of system of video data process, in order to realize the method shown in Fig. 1 to Fig. 3.As shown in Figure 10, described system 101 comprises network side server 1011 and client 1012, when described network side server 1011 comprises the first device 71 shown in above-mentioned Fig. 7 or Fig. 8 or has data interaction relation with it, described client 1012 comprises the second device 91 shown in above-mentioned Fig. 9.Between described network side server 1011 and described client 1012, there is data interaction relation.
Described network side server 1011, for original video files is split as head file and video data file, described head file is compressed, obtain compression head file, described compression head file and described video data file are merged into compressed video file, described compressed video file is sent to described client 1012.
Described client 1012, for receiving the compressed video file that described network side server 1011 sends, described compressed video file comprises compression head file and video data file, wherein said compression head file is the head file after compression, after receiving described compression head file, described compression head file is decompressed, obtains head file, process according to the video data file of described head file to receipt of subsequent.
The system of the video data process that the embodiment of the present invention provides, original video files can be split as head file and video data file, then head file is compressed, obtain compression head file, then compression head file and video data file are merged into compressed video file, finally compressed video file is sent to client.Client receives the compressed video file that network side server sends, and after receiving compression head file, decompresses, obtain head file, then process according to the video data file of head file to receipt of subsequent compression head file.The system of the video data process that the embodiment of the present invention provides, by reducing head file size to the compression of head file, thus can reduce the consuming time of download head file.Compared with the mode reducing head file size by cutting into slices to video file in prior art, can not cut into slices and special processing to video file, can time of cushioning first of simple and effective shortening.
In addition, the system of the video data process that the present embodiment provides, can also be multiple sub-pieces sections by head file cutting, and carry out Zlib compression respectively to multiple sub-pieces section.Client receives a compression sub-pieces section and just can decompress to it and send to player afterwards, without the need to waiting for all compressing the step of carrying out again after head file all downloads decompressing, can shorten the time cushioned first further thus.
Client described in the present embodiment is the electronic equipment with physical form, includes but are not limited to mobile phone, computer.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (19)

1. a method for video data process, is characterized in that, comprising:
Original video files is split as head file and video data file;
Described head file is compressed, obtains compression head file;
Described compression head file and described video data file are merged into compressed video file;
Described compressed video file is sent to client.
2. the method for video data process according to claim 1, is characterized in that, described step original video files being split as head file and video data file, comprising:
Create head file and video data file;
Difference read head data and video data from described original video files;
Described header data is write in described head file;
Described video data is write in described video data file.
3. the method for video data process according to claim 2, is characterized in that, describedly compresses described head file, obtains the step of compression head file, comprising:
According to Zlib function storehouse, described head file is compressed, obtain compression head file.
4. the method for video data process according to claim 3, is characterized in that, the described step compressed described head file according to Zlib function storehouse, comprising:
Be at least two sub-fragments by described head file cutting;
According to Zlib function storehouse, described at least two sub-fragments are compressed respectively.
5. the method for video data process according to claim 4, is characterized in that, the described step described compression head file and described video data file being merged into compressed video file, comprising:
Create compressed video file;
The header data after compression is read from described compression head file;
Described video data is read from described video data file;
Header data after described compression and described video data are written to respectively the assigned address in described compressed video file.
6. the method for video data process according to claim 5, is characterized in that, described step header data after described compression and described video data being written to respectively the assigned address in described compressed video file, comprising:
Before header data after described compression is write described video data.
7. a method for video data process, is characterized in that, comprising:
Receive the compressed video file that network side server sends, described compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression;
After receiving described compression head file, described compression head file is decompressed, obtain head file;
Process according to the video data file of described head file to receipt of subsequent.
8. the method for video data process according to claim 7, is characterized in that, describedly decompresses to described compression head file, obtains the step of head file, comprising:
According to Zlib function storehouse, described compression head file is decompressed, obtain head file.
9. the method for video data process according to claim 8, is characterized in that, the step of the compressed video file that described reception network side server sends, comprising:
Receive at least two compression sub-pieces sections, described at least two compression sub-pieces sections form described compression head file;
The described step decompressed to described compression head file according to Zlib function storehouse, comprising:
After often receiving a compression sub-pieces section, according to Zlib function storehouse, this compression sub-pieces section is decompressed.
10. a device for video data process, described device is first device, it is characterized in that, described first device comprises:
Split cells, for being split as head file and video data file by original video files;
Compression unit, compresses for the described head file split out described split cells, obtains compression head file;
Merge cells, the described video data file split out for the described compression head file that compressed by described compression unit and described split cells merges into compressed video file;
Transmitting element, sends to client for the described compressed video file merged by described merge cells.
11. first devices according to claim 10, is characterized in that, described split cells comprises:
First creates subelement, for creating head file and video data file;
First reads subelement, for difference read head data and video data from described original video files;
First write subelement, in the described head file that the described first establishment subelement of described header data write read for reading subelement by described first creates;
In the described video data file that the described first establishment subelement of described video data write that described first write subelement also reads for reading subelement by described first creates.
12. first devices according to claim 11, is characterized in that, described compression unit is used for compressing described head file according to Zlib function storehouse, obtain compression head file.
13. first devices according to claim 12, is characterized in that, described compression unit is used for:
Be at least two sub-fragments by described head file cutting;
According to Zlib function storehouse, described at least two sub-fragments are compressed respectively.
14. first devices according to claim 13, is characterized in that, described merge cells comprises:
Second creates subelement, for creating compressed video file;
Second reads subelement, for reading the header data after compression from described compression head file;
Described second reads subelement also for reading described video data from described video data file;
Second write subelement, for being written to the assigned address in the described compressed video file of described second establishment subelement establishment respectively by the header data after the described compression of described second reading subelement reading and described video data.
15. first devices according to claim 14, is characterized in that, before described second write subelement is used for that the header data after described compression is write described video data.
The device of 16. 1 kinds of video data process, described device is the second device, it is characterized in that, described second device comprises:
Receiving element, for receiving the compressed video file that network side server sends, described compressed video file comprises compression head file and video data file, and wherein said compression head file is the head file after compression;
Decompression unit, after receiving described compression head file at described receiving element, decompresses to described compression head file, obtains head file;
Processing unit, processes for the video data file of described head file to described receiving element receipt of subsequent obtained that decompress according to described decompression unit.
17. second devices according to claim 16, is characterized in that, described decompression unit is used for decompressing to described compression head file according to Zlib function storehouse, obtains head file.
18. second devices according to claim 17, is characterized in that, described receiving element is used for receiving at least two compression sub-pieces sections, and described at least two compression sub-pieces sections form described compression head file;
Described decompression unit is used for, after described receiving element often receives a compression sub-pieces section, decompressing to this compression sub-pieces section according to Zlib function storehouse.
The system of 19. 1 kinds of video data process, it is characterized in that, described system comprises network side server and client, wherein, comprise the first device according to any one of claim 10 to claim 15 in described network side server, comprise in described client if claim 16 is to the second device according to claim 18.
CN201310215595.8A 2013-05-31 2013-05-31 The method, apparatus and system of video data processing Active CN104219537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310215595.8A CN104219537B (en) 2013-05-31 2013-05-31 The method, apparatus and system of video data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310215595.8A CN104219537B (en) 2013-05-31 2013-05-31 The method, apparatus and system of video data processing

Publications (2)

Publication Number Publication Date
CN104219537A true CN104219537A (en) 2014-12-17
CN104219537B CN104219537B (en) 2018-11-06

Family

ID=52100614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310215595.8A Active CN104219537B (en) 2013-05-31 2013-05-31 The method, apparatus and system of video data processing

Country Status (1)

Country Link
CN (1) CN104219537B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338424A (en) * 2015-10-29 2016-02-17 努比亚技术有限公司 Video processing method and system
CN106776663A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The compression method and device of audio file
CN108848060A (en) * 2018-05-17 2018-11-20 上海哔哩哔哩科技有限公司 A kind of multimedia file processing method, processing system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1157520A2 (en) * 1999-02-26 2001-11-28 Telefonaktiebolaget LM Ericsson (publ) Update of header compression state in packet communications
CN1777175A (en) * 2005-08-20 2006-05-24 海信集团有限公司 IP data compression method in mobile communication
CN101674373A (en) * 2009-09-02 2010-03-17 优视动景(北京)技术服务有限公司 MP4 streaming media playing system for mobile communication terminal and application method thereof
CN102883188A (en) * 2012-10-16 2013-01-16 北京千橡网景科技发展有限公司 Method and system of downloading and playing MP4 files in real time
CN103069812A (en) * 2010-06-09 2013-04-24 三星电子株式会社 Method for providing fragment-based multimedia streaming service and device for same, and method for receiving fragment-based multimedia streaming service and device for same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1157520A2 (en) * 1999-02-26 2001-11-28 Telefonaktiebolaget LM Ericsson (publ) Update of header compression state in packet communications
CN1777175A (en) * 2005-08-20 2006-05-24 海信集团有限公司 IP data compression method in mobile communication
CN101674373A (en) * 2009-09-02 2010-03-17 优视动景(北京)技术服务有限公司 MP4 streaming media playing system for mobile communication terminal and application method thereof
CN103069812A (en) * 2010-06-09 2013-04-24 三星电子株式会社 Method for providing fragment-based multimedia streaming service and device for same, and method for receiving fragment-based multimedia streaming service and device for same
CN102883188A (en) * 2012-10-16 2013-01-16 北京千橡网景科技发展有限公司 Method and system of downloading and playing MP4 files in real time

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338424A (en) * 2015-10-29 2016-02-17 努比亚技术有限公司 Video processing method and system
CN105338424B (en) * 2015-10-29 2019-10-08 努比亚技术有限公司 A kind of method for processing video frequency and system
CN106776663A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The compression method and device of audio file
CN106776663B (en) * 2015-11-25 2020-11-10 腾讯科技(深圳)有限公司 Audio file compression method and device
CN108848060A (en) * 2018-05-17 2018-11-20 上海哔哩哔哩科技有限公司 A kind of multimedia file processing method, processing system and computer readable storage medium
CN108848060B (en) * 2018-05-17 2021-08-24 上海哔哩哔哩科技有限公司 Multimedia file processing method, processing system and computer readable storage medium
US11374995B2 (en) 2018-05-17 2022-06-28 Shanghai Bilibili Technology Co., Ltd. Multimedia file processing

Also Published As

Publication number Publication date
CN104219537B (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US10218990B2 (en) Video encoding for social media
TWI692245B (en) Video decoding apparatus, video encoding method and apparatus, and computer-readable storage medium
US20150156557A1 (en) Display apparatus, method of displaying image thereof, and computer-readable recording medium
EP2151970A1 (en) Processing and supplying video data
CN106998485B (en) Video live broadcasting method and device
CN104572966A (en) Zip file unzipping method and device
CN112532998B (en) Method, device and equipment for extracting video frame and readable storage medium
EP3414914A1 (en) Method and system to share a snapshot extracted from a video transmission
CN113906764B (en) Method, apparatus and computer readable medium for transcoding video
CN110225399B (en) Streaming media processing method and device, computer equipment and storage medium
CN114337678A (en) Data compression method, device, equipment and storage medium
CN104219537A (en) Video data processing method, device and system
CN103686077A (en) Double buffering method applied to realtime audio-video data transmission of 3G wireless network
CN1984228A (en) Image forming system and method
CN104572964A (en) Zip file unzipping method and device
KR101551915B1 (en) Device and method for video compression
US11086843B2 (en) Embedding codebooks for resource optimization
WO2012163059A1 (en) Method, device and system for device redirection data transmission
CN105704215B (en) Shared file system and corresponding document sending method and device
WO2018068250A1 (en) Method and device for data processing, chip and camera
JP2017192080A (en) Image compression device, image decoding device, image compression method, and image compression program
CN104333801A (en) MP4 media file transferring method, MP4 media file playing method, MP4 media file transferring device, MP4 media file playing method and MP4 media file playing system
WO2022127565A1 (en) Video processing method and apparatus, and device
KR101603976B1 (en) Method and apparatus for concatenating video files
CN109905715B (en) Code stream conversion method and system for inserting SEI data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant