CN104219537B - The method, apparatus and system of video data processing - Google Patents

The method, apparatus and system of video data processing Download PDF

Info

Publication number
CN104219537B
CN104219537B CN201310215595.8A CN201310215595A CN104219537B CN 104219537 B CN104219537 B CN 104219537B CN 201310215595 A CN201310215595 A CN 201310215595A CN 104219537 B CN104219537 B CN 104219537B
Authority
CN
China
Prior art keywords
file
compression
video
video data
head
Prior art date
Application number
CN201310215595.8A
Other languages
Chinese (zh)
Other versions
CN104219537A (en
Inventor
林渊灿
Original Assignee
腾讯科技(北京)有限公司
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 腾讯科技(北京)有限公司 filed Critical 腾讯科技(北京)有限公司
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

Links

Abstract

The invention discloses the method, apparatus and system of a kind of processing of video data, are related to audio and video process field, can solve the problems, such as that buffer time is long for the first time in the case where not being sliced to video file.The method of the present invention includes:Original video files are split as head file and video data file by network side server;Head file is compressed, compression head file is obtained;Compression head file and video data file are merged into compressed video file;Compressed video file is sent to client.Client receives the compressed video file that network side server is sent, and compressed video file includes compression head file and video data file, wherein compression head file is compressed head file;After receiving compression head file, compression head file is unziped it, head file is obtained;The video data file of receipt of subsequent is handled according to head file.During obtaining Online Video data.

Description

The method, apparatus and system of video data processing

Technical field

The present invention relates to method, apparatus and system that audio and video process field more particularly to a kind of video data are handled.

Background technology

Currently, dynamic image expert group 4 (Moving Pictures Experts Group-4, abbreviation MP4) etc. is common Video file format, file are made of header information and video data two parts.When playing the Online Video of this format, Client must first be downloaded header information, then handle the header information of download, finally could be to video Data are decoded broadcasting.When header information is excessive, the time of client downloads header information can accordingly extend, and thus increase The time buffered for the first time.Wherein, buffer time refers to playing the video moment to client terminal playing first from client request for the first time Duration between the frame video image moment.

To shorten buffer time for the first time, the usage experience of user is improved, more widespread practice is at present:It is taken in network side It is engaged in device, is the equal multiple sub-video files of duration by video file cutting, each sub-video file includes a sub- head Information and a sub-video data.Client downloads each sub-video file successively from network side server end, and to download Sub- header information is handled, and last sub-video data is decoded broadcasting.Due to the size and video data of header information Duration between there are proportional relations, therefore the size of header information can be reduced by way of cutting sub-video file, into And reduce and download taking for header information, so as to shorten the time buffered for the first time.

During above-mentioned video file is sliced, inventor has found that at least there are the following problems in the prior art:Video File is sliced the number that can increase video file, the complexity for increasing network side server management, storing video file.In addition exist Client-side, due between sub-video data exist linking, in playing video data it is possible that picture bounce, The nonsynchronous problem of audio and video, client need the linking between sub-video data to do specially treated, increase video data Intractability.

Invention content

The embodiment of the present invention provides a kind of method, apparatus and system of video data processing, can be not to video file In the case of slice, solve the problems, such as that buffer time is long for the first time.

In a first aspect, an embodiment of the present invention provides a kind of methods of video data processing, including:

Original video files are split as head file and video data file;

The head file is compressed, compression head file is obtained;

The compression head file and the video data file are merged into compressed video file;

The compressed video file is sent to client.

Second aspect, the embodiment of the present invention additionally provide a kind of method of video data processing, including:

Receive network side server send compressed video file, the compressed video file include compression head file with And video data file, wherein the compression head file is compressed head file;

After receiving the compression head file, the compression head file is unziped it, obtains head file;

The video data file of receipt of subsequent is handled according to the head file.

The third aspect, the embodiment of the present invention additionally provide a kind of device of video data processing, and described device is the first dress It sets, the first device includes:

Split cells, for original video files to be split as head file and video data file;

Compression unit obtains compression head for being compressed to the head file that the split cells is split out File;

Combining unit, the compression head file and the split cells for compressing the compression unit are split The shown video data file gone out merges into compressed video file;

Transmission unit, the compressed video file for merging the combining unit are sent to client.

Fourth aspect, the embodiment of the present invention additionally provide a kind of device of video data processing, and described device is the second dress It sets, the second device includes:

Receiving unit, the compressed video file for receiving network side server transmission, the compressed video file include Head file and video data file are compressed, wherein the compression head file is compressed head file;

Decompression unit, for after the receiving unit receives the compression head file, to the compression head File unzips it, and obtains head file;

Processing unit, the head file for being decompressed according to the decompression unit is to the receiving unit The video data file of receipt of subsequent is handled.

5th aspect, the embodiment of the present invention additionally provide a kind of system of video data processing, and the system comprises networks Side server and client, wherein include the first device as described in the aforementioned third aspect, institute in the network side server It states in client comprising the second device as described in aforementioned fourth aspect.

The method, apparatus and system of video data processing provided in an embodiment of the present invention, can tear original video files open It is divided into head file and video data file, then head file is compressed, obtains compression head file, it then will compression Head file and video data file merge into compressed video file, and compressed video file is finally sent to client.Visitor Family end receives the compressed video file that network side server is sent, after receiving compression head file, to compressing head file It unzips it, obtains head file, then the video data file of receipt of subsequent is handled according to head file.This hair The method, apparatus and system for the video data processing that bright embodiment provides, can be by reducing head to the compression of head file File size downloads taking for head file to reduce.With in the prior art by video file be sliced reduce head text The mode of part size is compared, and can not be done slice and specially treated to video file, can simply and effectively be shortened and buffer for the first time Time.

Description of the drawings

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.

Fig. 1 is the flow chart for the method that video data is handled in the embodiment of the present invention;

Fig. 2 is the flow chart for the method that another video data is handled in the embodiment of the present invention;

Fig. 3 is the interaction figure that video data is handled 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 that network side server handles original video files in the embodiment of the present invention;

Fig. 7 is the structural schematic diagram of first device in the embodiment of the present invention;

Fig. 8 is the structural schematic diagram of another first device in the embodiment of the present invention;

Fig. 9 is the structural schematic diagram of second device in the embodiment of the present invention;

Figure 10 is the schematic diagram for the system that video data is handled in the embodiment of the present invention.

Specific implementation mode

Below in conjunction with the attached drawing in the present embodiment, the technical solution in the present embodiment is clearly and completely described, Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based in the present invention Embodiment, the every other embodiment that those of ordinary skill in the art are obtained without creative efforts, all Belong to the scope of protection of the invention.

For the buffer time for the first time for reducing when user watches Online Video, a kind of video data processing is present embodiments provided Method, this method be applied to network side server side.As shown in Figure 1, the method includes:

101, original video files are split as head file and video data file by network side server.

Original video files described in the present embodiment are the video data of client request, and network side server is found After original video files, original video files are split as head file and video data file.The head file includes regarding Frequency according to header information data block, such as the resolution ratio of video, coded format, code check, crucial frame index etc..Network-side service Device splits out head file from original video files, subsequently to be compressed to head file.

102, network side server compresses head file, obtains compression head file.

Network side server is the purpose of head compressing file to reduce the size of head file, so as to shorten client Download taking for head file.

103, network side server will compress head file and video data file merges into compressed video file.

After obtaining compression head file, network side server will compress head file and video data file is merged into Compressed video file, to be subsequently sent to client.

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 is to the pressure in compressed video file Contracting head file unzips it, and according to the head file obtained after decompression to subsequently received video data file into Row decoding process, to play Online Video.

In the present embodiment, the video type of client request is Online Video, and network side server is in the form of Media Stream The compressed video file for including compression head file is sent to client.Client is firstly received compression head file, then The video data file of receipt of subsequent is handled according to the header information in compression head file.

In the prior art, network side server is after the video data request for receiving client, directly by original video File is sent to client.Client is firstly the need of head file is received, then according to head file to the video of receipt of subsequent Data file is handled.Due in video file, the size of head file usually with the proportional relationship of the duration of video, because As soon as this when the longer video of client request section duration, client receives the time-consuming corresponding increase of (download) head file, Thereby increase the time buffered for the first time.

The method of video data processing provided in this embodiment, can be by reducing head file to the compression of head file Size to reduce taking for client downloads head file, and then shortens the time buffered for the first time.Meanwhile the present embodiment carries The method of the video data processing of confession can simplify network side server processing, storage regards without being sliced to video file The complexity of frequency evidence.

As the opposite end method of method shown in corresponding diagram 1, the present embodiment additionally provides a kind of method of video data processing, This method is applied to client-side.As shown in Fig. 2, the method includes:

201, client receives the compressed video file that network side server is sent.

Compressed video file includes compression head file and video data file, wherein the compression head file is pressure Head file after contracting.Network side server sends compressed video file in the form of Media Stream to client, and client first connects It receives compression head file and then receives video data file.

202, client unzips it compression head file after receiving compression head file, obtains head text Part.

Since network side server compresses head file before sending compressed video file, so receiving It is unziped it after compression head file firstly the need of will compress head file, acquisition head file.

203, client is handled the video data file of receipt of subsequent according to head file.

Client the processing such as is decoded according to head file to the video data file of receipt of subsequent, to video into Row plays.

In the present embodiment, since the video type of client request is Online Video, client receives video data File is a lasting process, is not to execute step again after all receiving head file and video data file 202.Client receive compression head file after start receive video data file, during decompressing head file with And video data file is persistently received after the completion of head file decompression, and according to the head file after decompression to connecing in real time The video data file of receipts is handled.

The method of video data processing provided in this embodiment, can be by reducing head file to the compression of head file Size to reduce taking for client downloads head file, and then shortens the time buffered for the first time.In addition, the present embodiment carries The method of the video data processing of confession is not necessarily to carry out specially treated to the sub-video file after slice, can simplify processing video counts According to 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 side of video data processing Method, the method are related to network side server and local client.As shown in figure 3, the method includes:

301, client sends video data request to network side server.

Video data request is for server acquisition request video file.

302, network side server asks to search original video files according to video data.

Network side server is referred to as original video files according to the video file that video data request is found.

303, original video files are split as head file and video data file by network side server.

Example, as shown in figure 4, original video files include the video of the header data and 10000 bits of 10 bits Data.Network side server splits original video files, obtains the video of the head file and 10000 bits of 10 bits Data file.

Original video files are split as head file and video data file by network side server, are specifically included:

303a, network side server create head file and video data file.

Network side server calls CreateFile functions that head file and video data file, the head of establishment is respectively created Portion's file and video data file are respectively used to load the header data subsequently split out from original video files and video data.

303b, network side server distinguish read head data and video data from original video files.

Network side server calls OpenFile functions to open original video files first, then calls ReadFile functions Read head data and video data are distinguished from original video files.

Still by taking Fig. 4 as an example, network side server calls OpenFile functions to open original video files as shown in Figure 4, Then ReadFile functions are called to read the header data of preceding 10 bit and rear 10000 bit from original video files Video data.

303c, network side server will be in header data write head files.

Network side server calls WriteFile functions by the header data write head file of 10 bits.

303d, network side server write video data into video data file.

Network side server calls WriteFile functions that video data file is written in the video data of 10000 bits.By This obtains a head file and the video counts for including 10000 bit video datas for including 10 bit header datas According to file.

It should be noted that the present embodiment distinguishes step 303c and step 303d only for ease of statement, in practical application, net Network side server can also first carry out step 303d, then execute step 303c, or be performed simultaneously step 303c and step 303d, The present embodiment is not limited the execution sequence of network side server.Similar, network side server can also first carry out Then step 303b read heads data and video data execute step 303a and create head file and video data file again, Or it is performed simultaneously step 303a and step 303b.

304, network side server compresses head file according to Zlib functions library, obtains compression head file.

After obtaining head file and video data file, head file is pressed in network side server Zlib functions library Contracting obtains compression head file.For example, network side server is by the head file pressure of the 10 bit sizes obtained in step 303 It is condensed to the compression head file of only 3 bit sizes.

It illustrates using Zlib functions library as compression means in the present embodiment, in practical application, head file is carried out The mode of compression is without being limited thereto.

Optionally, it is that head file cutting can also be more by buffer time, network side server for the first time for further saving A sub- clip segment is compressed.Client can solve the compression sub-piece after often receiving a compression sub-piece Compression unzips it again after receiving entire compression head file without waiting for whole.Specifically:Network side server is by head Portion's file cutting is at least two sub-pieces, is then compressed respectively according at least two sub-piece of Zlib functions library pair.Example Such as, network side server is by the sub-piece of 3 section of 4 bit of head file cutting of 12 bit sizes, then according to Zlib functions library By the compression sub-piece of 1 bit size of each sub-piece boil down to.

Optionally, to be further reduced taking for client downloads video file, network side server can also basis Video data file is compressed in Zlib functions library, obtains compressed video data file.Herein it should be noted that this step Described in compressed video data file it is different from the compressed video file merged in subsequent step, the compression video counts Refer to the file obtained after being compressed to video data file according to file, and compressed video file refers to then comprising compression head The upper level file of file and unpressed video data file, or to include compression head file and compression video counts According to the upper level file of file, i.e. compressed video file only indicates to include the file for compressing head file.

305, network side server will compress head file and video data file merges into compressed video file.

Network side server will compress head file and video data file merges into compressed video file, specific to wrap It includes:

305a, network side server create compressed video file.

Similar with 303a, network side server calls CreateFile one compressed video file of function creation, for filling Carry the header data subsequently read and video data.

305b, network side server read compressed header data from compression head file.

Network side server calls ReadFile functions to read compressed 3 bit head number from compression head file According to.

305c, the network side server reading video data from video data file.

Network side server calling ReadFile functions read the video data of 10000 bits from video data file.

Optionally, if network side server also compresses video data file in step 303, in this step Middle network side server calls ReadFile functions to read compressed video data from compressed video data file.

Compressed header data and video data are respectively written into compressed video file by 305d, network side server Designated position.

Network side server can first call WriteFile functions that compressed 3 bit header data is written to compression In video file, then calls WriteFile functions that video data (or compressed video data) is written to compression and regard In frequency file, thus to obtain compressed video file.Write sequence in the present embodiment is only as illustrating to use, not as to reality The restriction of application.

Optionally, when network side server carries out sectional compression to head file, network side server will in this step All compression sub-pieces compressed are all written in corresponding compressed video file according to original putting in order compresses head On the position of file.

Preferably, it is consistent with existing standard video file format, network side server can will be after the compression of reading Header data write the video data of reading before, compressed video file as shown in Figure 5 is formed, so that client connects first Compression head file is received, and compression head file is handled.

It should be noted that the present embodiment distinguishes step 305b and step 305c only for ease of statement, in practical application, net Network side server can also first carry out step 305c, then execute step 305b, or be performed simultaneously step 305b and step 305c, The present embodiment is not limited the execution sequence of network side server.

As shown in fig. 6, corresponding step 303 is to step 305, network side server original video files first are split as head File and video data file.Then the head file splitted out is compressed, obtains compression head file.Last network Side server will compress head file and video data file merges into compressed video file.

306, compressed video file is sent to client by network side server.

Optionally, network side server can send video data in client to the processing of original video files and ask it Preceding execution, that is, network side server sequentially executes stored all original video files above-mentioned steps 302 to step 305, compressed video file is obtained, and store to compressed video file.Client sends video data and asks (step 301) When, network side server searches the compressed video file of user's request, then directly executes step 306, the compression that will be found Video file is sent to client.It is in this corresponding steps flow chart sequence:Step 302, step 303, step 304, step 305, step 301, step 306 ....

307, client receives compression head file, is unziped it, is obtained to compression head file according to Zlib functions library Obtain head file.

Client is firstly received compression head file during receiving compressed video file shown in fig. 5, uses Zlib functions library unzips it compression head file, obtains head file.For example, client receives the compression of 3 bits After head file, the compression head file is unziped it according to Zlib functions library, obtains the head file of 10 bits.

Optionally, when network side server carries out sectional compression to head file, client receives at least two compressions Sub-piece, at least two compressions sub-piece form the compression head file, after often receiving a compression sub-piece, The compression sub-piece is unziped it according to Zlib functions library.For example, client is receiving each 1 bit compression sub-piece When, the sub-piece for being condensed to 4 bits is decompressed according to Zlib functions library.

It is illustrated using Zlib functions library as decompression means in the present embodiment, in practical application, to compression head text The mode that part unzips it is without being limited thereto.

308, the head file after decompression is sent to player and handled by client.

The player is the playout software in client, and head file is sent to player so as to player by client Subsequently received video data file is decoded according to header datas such as head file intermediate-resolution rate, coded formats and is broadcast Put processing.

Optionally, when client receives multiple compression sub-pieces respectively, client every solution extrude a sub-piece when, The sub-piece is just sent to player.

309, the video data of reception is sent to player and handled by client, while continuing to video data text Video data in part.

Client starts to receive video data, and the video counts that will constantly receive after receiving compression head file According to player is sent to, broadcasting is decoded to video data according to header data by player.

Bit value and Fig. 4, Fig. 5 involved in above example are only that example illustrates to use, not as to reality The limitation of concrete numerical value in.

The method of video data processing provided in this embodiment can carry out the video data of the formats such as including MP4, MOV Compressed and decompressed processing.By taking the video data of MP4 formats as an example, related experiment shows to use the compressed head file phases of Zlib Than the size that uncompressed head file can reduce one third, in the case where transmission bandwidth is constant, client downloads head Taking for portion's file can shorten one third.In addition, network side server can also before clients request video data, Compression processing is carried out in advance to all original video files of storage, further saves the consumption that client obtains compressed video file When.And the decompression of client takes time-consuming can be ignored of opposing headers file download, it is possible thereby to will buffer for the first time Time reduces one third, substantially improves the viewing experience of user.

Head file cutting can also be multiple sub-pieces by third, the method for video data processing provided in this embodiment Section, and Zlib compressions are carried out respectively to multiple sub-pieces.Client receive one compression sub-piece after can to its into Row decompresses and is sent to player, without waiting for what is unziped it again after all downloading all compression head files Step, it is possible thereby to further shorten the time buffered for the first time.

Finally, the method for video data processing provided in this embodiment is applied equally to video file microtomy, only Process object is replaced with into sub-video file, sub- head file and sub-video data file, realization method can join Realized that details are not described herein again according to the mode of above-mentioned Fig. 1 to Fig. 3.

The realization of method with reference to shown in above-mentioned Fig. 1 or Fig. 3, the present embodiment additionally provide a kind of dress of video data processing It sets, described device is first device, to be realized to Fig. 1 or shown in Fig. 3 methods.The first device can be located at net There is data interaction relationship in the server of network side or independently of network side server but between network side server.Such as Fig. 7 It is shown, the first device 71, including split cells 711, compression unit 712, combining unit 713 and transmission unit 714, In,

The split cells 711, for original video files to be split as head file and video data file;

The compression unit 712 is obtained for being compressed to the head file that the split cells 711 is split out Head file must be compressed;

The combining unit 713, the compression head file for compressing the compression unit 712 and described tears open The shown video data file that subdivision 711 is split out merges into compressed video file;

The transmission unit 714, the compressed video file for merging the combining unit 713 are sent to client End.

Further, as shown in figure 8, the split cells 711 includes:

First creates subelement 811, for creating head file and video data file;

First reading subunit 812, for distinguishing read head data and video data from the original video files;

Institute is written in first write-in subelement 813, the header data for reading first reading subunit 812 In the head file for stating the establishment of the first establishment subelement 811;

The first write-in subelement 813 is additionally operable to the video data for reading first reading subunit 812 Described first is written to create in the video data file that subelement 811 creates.

Further, the compression unit 712 is obtained for being compressed to the head file according to Zlib functions library Compress head file.

Further, the compression unit 712 is used for:It is at least two sub-pieces by the head file cutting, according to At least two sub-piece is compressed in Zlib functions library respectively.

Further, as shown in figure 8, the combining unit 713 includes:

Second creates subelement 814, for creating compressed video file;

Second reading subunit 815, for reading compressed header data from the compression head file;

Second reading subunit 815 is additionally operable to read the video data from the video data file;

Second write-in subelement 816, the compressed head number for reading second reading subunit 815 Specifying in the compressed video file that subelement 814 creates is created according to being respectively written into described second with the video data Position.

Further, the second write-in subelement 816 is used to the compressed header data writing the video Before data.

Original video files can be split as head file and video data by first device provided in an embodiment of the present invention Then file compresses head file, obtain compression head file, then will compression head file and video data text Part merges into compressed video file, and compressed video file is finally sent to client.Video counts provided in an embodiment of the present invention According to the first device of processing, head text can be downloaded to reduce by reducing head file size to the compression of head file Part takes.With in the prior art to video file be sliced reduce head file size by way of compared with, can not be to regarding Frequency file does slice and specially treated, can simply and effectively shorten the time buffered for the first time.

In addition, first device provided in this embodiment, can also be multiple sub-pieces by head file cutting, and to multiple Sub-piece carries out Zlib compressions respectively.Client can unzip it concurrently it after receiving a compression sub-piece Player is given, without waiting for the step of being unziped it again after all downloading all compression head files, thus may be used Further to shorten the time buffered for the first time.

The realization of method with reference to shown in above-mentioned Fig. 2 or Fig. 3, the present embodiment additionally provide a kind of dress of video data processing It sets, described device is second device, to be realized to Fig. 2 or shown in Fig. 3 methods.The second device can be located at visitor In the end of family.As shown in figure 9, the second device 91, including, receiving unit 911, decompression unit 912 and processing unit 913, wherein

The receiving unit 911, the compressed video file for receiving network side server transmission, the compression video text Part includes compression head file and video data file, wherein the compression head file is compressed head file;

The decompression unit 912, for after the receiving unit 911 receives the compression head file, to institute It states compression head file to unzip it, obtains head file;

The processing unit 913, for decompressing the obtained head file to institute according to the decompression unit 912 The video data file for stating 911 receipt of subsequent of receiving unit is handled.

Further, the decompression unit 912 is for solving the compression head file according to Zlib functions library Compression obtains head file.

Further, the receiving unit 911 is for receiving at least two compression sub-pieces, at least two compressions Segment forms the compression head file;

The decompression unit 912 is used for after the receiving unit 911 often receives a compression sub-piece, according to Zlib functions library unzips it the compression sub-piece.

Second device provided in an embodiment of the present invention can receive the compressed video file of network side server transmission, After receiving compression head file, compression head file is unziped it, head file is obtained, then according to head file pair The video data file of receipt of subsequent is handled.The second device of video data processing provided in an embodiment of the present invention, can By reducing head file size to the compression of head file, taking for head file is downloaded to reduce.With in the prior art It is compared by way of being sliced to video file and reducing head file size, slice and special place can not be done to video file Reason, can simply and effectively shorten the time buffered for the first time.

In addition, second device provided in this embodiment, just to the compression sub-pieces after receiving each compression sub-piece Section unzips it and is sent to player, is decompressed again later without waiting for all compression head files are all downloaded The step of contracting, it is possible thereby to further shorten the time buffered for the first time.

The realization of method with reference to shown in above-mentioned Fig. 1 to Fig. 3, what the present embodiment additionally provided a kind of processing of video data is System, to be realized to Fig. 1 to method shown in Fig. 3.As shown in Figure 10, the system 101 includes network side server 1011 and client 1012, the network side server 1011 include above-mentioned Fig. 7 or shown in Fig. 8 first devices 71 or and its When with data interaction relationship, the client 1012 includes above-mentioned second device 91 shown in Fig. 9.The network side server There is data interaction relationship between 1011 and the client 1012.

The network side server 1011, for original video files to be split as head file and video data file, The head file is compressed, compression head file is obtained, by the compression head file and video data text Part merges into compressed video file, and the compressed video file is sent to the client 1012.

The client 1012, the compressed video file for receiving the transmission of the network side server 1011, the pressure Contracting video file includes compression head file and video data file, wherein the compression head file is compressed head File unzips it the compression head file after receiving the compression head file, obtains head file, root The video data file of receipt of subsequent is handled according to the head file.

Original video files can be split as head file by the system of video data processing provided in an embodiment of the present invention And video data file, then head file is compressed, obtain compression head file, then will compression head file and Video data file merges into compressed video file, and compressed video file is finally sent to client.Client receives network The compressed video file that side server is sent unzips it compression head file, obtains after receiving compression head file Head file is obtained, then the video data file of receipt of subsequent is handled according to head file.The embodiment of the present invention provides Video data processing system, can be by reducing head file size to the compression of head file, to reduce lower carrier head Portion's file takes.With in the prior art to video file be sliced reduce head file size by way of compared with, can not Slice and specially treated are done to video file, can simply and effectively shorten the time buffered for the first time.

In addition, the system of video data processing provided in this embodiment, can also be multiple sub-pieces by head file cutting Section, and Zlib compressions are carried out respectively to multiple sub-pieces.Client can carry out it after receiving a compression sub-piece Player is decompressed and is sent to, without waiting for the step unziped it again after all downloading all compression head files Suddenly, it is possible thereby to further shorten the time buffered for the first time.

Client described in the present embodiment is the electronic equipment with physical form, and it is mechanical, electrical to include but are not limited to hand Brain.

Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases Embodiment.Based on this understanding, the portion that technical scheme of the present invention substantially in other words contributes to the prior art Dividing can be expressed in the form of software products, which is stored in the storage medium that can be read, and such as count The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used so that computer equipment (can be personal computer, Server or the network equipment etc.) execute method described in each embodiment of the present invention.

The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. a kind of method of video data processing, which is characterized in that including:
Original video files are split as head file and video data file, the head file include video resolution ratio, Coded format, code check and crucial frame index;
The head file is compressed, compression head file is obtained;
The compression head file and the video data file are merged into compressed video file;
The compressed video file is sent to client;
Wherein, carrying out compression to the head file includes:It is that the segmentation of multiple sub-pieces is pressed by the head file cutting Contracting, so that the client unzips it the compression sub-piece after often receiving a compression sub-piece;
The step of compression head file and the video data file are merged into compressed video file include:Create pressure Contracting video file;Compressed header data is read from the compression head file;It is read from the video data file The video data;The compressed header data and the video data are respectively written into the compressed video file Designated position,
It is described that the head file is compressed, the step of compressing head file is obtained, including:According to Zlib functions library to institute It states head file to be compressed, obtains compression head file.
2. the method for video data processing according to claim 1, which is characterized in that described to split original video files For head file and video data file the step of, including:
Create head file and video data file;
Read head data and video data are distinguished from the original video files;
The header data is written in the head file;
The video data is written in the video data file.
3. the method for video data according to claim 1 processing, which is characterized in that it is described according to Zlib functions library to institute The step of head file is compressed is stated, including:
It is at least two sub-pieces by the head file cutting;
At least two sub-piece is compressed respectively according to Zlib functions library.
4. the method for video data processing according to claim 1, which is characterized in that described by the compressed head The step of data and the video data are respectively written into the designated position in the compressed video file, including:
Before the compressed header data is write the video data.
5. a kind of method of video data processing, which is characterized in that including:
The compressed video file that network side server is sent is received, the compressed video file includes compression head file and regards Frequency data file, wherein the compression head file is compressed head file, the head file includes the resolution of video Rate, coded format, code check and crucial frame index;
After receiving the compression head file, the compression head file is unziped it, obtains head file;
The video data file of receipt of subsequent is handled according to the head file;
Wherein, after receiving the compression head file, to the compression head file unzip it including:It receives respectively Multiple compression sub-pieces unzip it the compression sub-piece after often receiving a compression sub-piece;
Before the network side server sends compressed video file, the network side server creates compressed video file; Compressed header data is read from the compression head file;The video counts are read from the video data file According to;The specific bit compressed header data and the video data being respectively written into the compressed video file It sets,
It is described that the compression head file is unziped it, obtain head file the step of, including:According to Zlib functions library pair The compression head file unzips it, and obtains head file.
6. the method for video data processing according to claim 5, which is characterized in that the reception network side server hair The step of compressed video file sent, including:
At least two compression sub-pieces are received, at least two compressions sub-piece forms the compression head file;
The described the step of compression head file is unziped it according to Zlib functions library, including:
After often receiving a compression sub-piece, the compression sub-piece is unziped it according to Zlib functions library.
7. a kind of device of video data processing, described device is first device, which is characterized in that the first device includes:
Split cells, for original video files to be split as head file and video data file, the head file includes Resolution ratio, coded format, code check and the crucial frame index of video;
Compression unit obtains compression head file for being compressed to the head file that the split cells is split out;
Combining unit, what the compression head file and the split cells for compressing the compression unit were split out The video data file merges into compressed video file;
Transmission unit, the compressed video file for merging the combining unit are sent to client;
Wherein, carrying out compression to the head file includes:It is that the segmentation of multiple sub-pieces is pressed by the head file cutting Contracting, so that the client unzips it the compression sub-piece after often receiving a compression sub-piece;
The combining unit includes:
Second creates subelement, for creating compressed video file;
Second reading subunit, for reading compressed header data from the compression head file;
Second reading subunit is additionally operable to read the video data from the video data file;
Second write-in subelement, the compressed header data for reading second reading subunit and described regards Frequency evidence is respectively written into the designated position in the compressed video file that described second creates subelement establishment,
The compression unit obtains compression head file for being compressed to the head file according to Zlib functions library.
8. device according to claim 7, which is characterized in that the split cells includes:
First creates subelement, for creating head file and video data file;
First reading subunit, for distinguishing read head data and video data from the original video files;
First write-in subelement, the header data write-in described first for reading first reading subunit create In the head file that subelement creates;
The first write-in subelement is additionally operable to the video data for reading first reading subunit and is written described the One creates in the video data file that subelement creates.
9. device according to claim 7, which is characterized in that the compression unit is used for:
It is at least two sub-pieces by the head file cutting;
At least two sub-piece is compressed respectively according to Zlib functions library.
10. device according to claim 7, which is characterized in that the second write-in subelement is used for will be after the compression Header data write the video data before.
11. a kind of device of video data processing, described device is second device, which is characterized in that the second device includes:
Receiving unit, the compressed video file for receiving network side server transmission, the compressed video file include compression Head file and video data file, wherein the compression head file is compressed head file, the head file Resolution ratio, coded format, code check including video and crucial frame index;
Decompression unit, for after the receiving unit receives the compression head file, to the compression head file It unzips it, obtains head file;
Processing unit, the head file for being decompressed according to the decompression unit are follow-up to the receiving unit The video data file of reception is handled, wherein after receiving the compression head file, to the compression head file Unzip it including:Multiple compression sub-pieces are received respectively, to compression after often receiving a compression sub-piece Segment unzips it;
Before the network side server sends compressed video file, the network side server creates compressed video file; Compressed header data is read from the compression head file;The video counts are read from the video data file According to;The specific bit compressed header data and the video data being respectively written into the compressed video file It sets,
The decompression unit obtains head text for being unziped it to the compression head file according to Zlib functions library Part.
12. according to the devices described in claim 11, which is characterized in that the receiving unit is for receiving at least two compression Segment, at least two compressions sub-piece form the compression head file;
The decompression unit is used for after the receiving unit often receives a compression sub-piece, according to Zlib functions library pair The compression sub-piece unzips it.
13. a kind of system of video data processing, which is characterized in that the system comprises network side server and client, Wherein, described comprising the first device as described in any one of claim 7 to claim 10 in the network side server Include the second device as described in any one of claim 11 to claim 12 in client.
CN201310215595.8A 2013-05-31 2013-05-31 The method, apparatus and system of video data processing 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 CN104219537A (en) 2014-12-17
CN104219537B true CN104219537B (en) 2018-11-06

Family

ID=52100614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310215595.8A 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

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 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 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

Also Published As

Publication number Publication date
CN104219537A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CA2449032C (en) Efficient transmission and playback of digital information
TWI465113B (en) Content reproduction system, content reproduction apparatus, program, content reproduction method, and providing content server
CN102771119B (en) Systems and methods for video-aware screen capture and compression
US20030035648A1 (en) Navigation for MPEG streams
JP2007506305A (en) Adaptive management of video storage resources
JP5237347B2 (en) Picture and video storage management system and method
US20140219634A1 (en) Video preview creation based on environment
US20070206682A1 (en) Method And Apparatus For Coding Information
JP2006520039A (en) Method, data structure, and system for processing a media data stream
JPWO2006033279A1 (en) Data processing device
US6944629B1 (en) Method and device for managing multimedia file
EP1994754A1 (en) Video browsing based on thumbnail image
KR20090116728A (en) Architecture for image compression in a video hardware
US20160344850A1 (en) Method and System for Transmitting a Data File Over a Data Network
US6804295B1 (en) Conversion of video and audio to a streaming slide show
US6349286B2 (en) System and method for automatic synchronization for multimedia presentations
CN1665293A (en) Apparatus and method for reproducing image
CN102158553A (en) Method and device for playing multi-media files for remote desktop
US20020122656A1 (en) Method and apparatus for recording broadcast data
US8768142B1 (en) Video editing with connected high-resolution video camera and video cloud server
JPH10187760A (en) Image display device and moving image retrieval system
WO2001097517A1 (en) Multimedia compression/decompression and compressed data representation
CN101198045B (en) Stream media digital watermarking system
CN1136730C (en) Cartoon compressing method for radio network and hand-held radio equipment
CN103188522B (en) There is provided and the method and the system that transmit compound and concentrate crossfire

Legal Events

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