CN104936045A - HTML5-based video file processing method and apparatus - Google Patents

HTML5-based video file processing method and apparatus Download PDF

Info

Publication number
CN104936045A
CN104936045A CN201510298951.6A CN201510298951A CN104936045A CN 104936045 A CN104936045 A CN 104936045A CN 201510298951 A CN201510298951 A CN 201510298951A CN 104936045 A CN104936045 A CN 104936045A
Authority
CN
China
Prior art keywords
video
fingerprint
video file
frequency band
length
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
CN201510298951.6A
Other languages
Chinese (zh)
Other versions
CN104936045B (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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510298951.6A priority Critical patent/CN104936045B/en
Publication of CN104936045A publication Critical patent/CN104936045A/en
Application granted granted Critical
Publication of CN104936045B publication Critical patent/CN104936045B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/278Content descriptor database or directory service for end-user access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an HTML5-based video file processing method and apparatus, for realizing the purpose of sharing at a video server side. The method comprises the following steps: determining the fingerprints and the video length of a video file to be uploaded; adjusting an address directed by an HTML5 control towards a local place to be the address of a preset server, and sending a request for searching for the video file to the server, wherein the request carries the fingerprints and the video length of the video file; receiving feedback information returned by the server, wherein the fingerprint match is consistent, yet the video length of the video file of a client is smaller than the video length of the video file of the server; respectively calculating head fingerprints of a head video segment with a specific length and tail fingerprints of a tail video segment with a specific length in a local video file; and sending the head fingerprints and the tail fingerprints to the server.

Description

A kind of video file processing method based on HTML5 and device
Technical field
The present invention relates to technical field of internet application, particularly a kind of video file processing method based on HTML5 and device.
Background technology
At present, most of video is shown by plug-in unit (such as Flash).But, and not all browser all has same plug-in unit.HTML (Hyper Text Markup Language, HTML) 5 defines a kind of standard method usually being comprised video by video (video) unit.
Video element in HTML5 has method, attribute and event equally, method is wherein used for broadcasting, time-out and loading etc., attribute (such as duration, volume etc.) wherein can be read or arrange, DOM (Document Object Model wherein, DOM Document Object Model) event can notify user, for example, video element start play, paused, stop, etc.
The HTML5 control of existing browser, can only realize reading video file name from this locality, pass to player and play, can only realize single user operation, can not realize video server side and share.
Summary of the invention
The invention provides a kind of video file processing method based on HTML5 and device, in order to realize the object that video server side is shared.
The invention provides a kind of video file processing method based on HTML5, be applied to client, comprise:
Determine fingerprint and the video length of local video file to be uploaded;
The address of this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in described request to server;
Consistent but the video length of the video file of client of the fingerprint matching that reception server returns is less than the feedback information of the video length of the video file of server;
Calculate the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively;
Head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
In an embodiment of the present invention, described method also comprises:
The fingerprint of video file is sent to server as the filename of video file.
The invention provides a kind of video file processing method based on HTML5, be applied to server, comprise:
Receive the request of searching video file from client, in described request, carry fingerprint and the video length of video file;
The fingerprint of the fingerprint of the video file of the client received with local video file is mated;
When fingerprint matching is consistent, the video length of the video length of the video file of client with local video file is mated;
When the video length of the video file of client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server;
Receive the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length in the video file of client;
Determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint, and delete the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
In an embodiment of the present invention, describedly determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint, comprising:
Video file consistent for local fingerprint matching is carried out burst according to designated length, obtains multiple video-frequency band, and calculate the fingerprint of each video-frequency band;
According to the fingerprint of each video-frequency band, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
In an embodiment of the present invention, described the video length of the video length of the video file of client with local video file to be mated, comprising:
Judge whether the video length of the video file of client is less than the video length of local video file.
Present invention also offers a kind of video file processing unit based on HTML5, be applied to client, comprise:
First determination module, for determining fingerprint and the video length of local video file to be uploaded;
Request sending module, the address for this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in described request to server;
Feedback information receiver module, the consistent but video length of the video file of client of the fingerprint matching returned for reception server is less than the feedback information of the video length of the video file of server;
Computing module, for the afterbody fingerprint of the afterbody video-frequency band of the head fingerprint and designated length that calculate the head video-frequency band of local video document measured length respectively;
Fingerprint sending module, for head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
In an embodiment of the present invention, described request sending module also for:
The fingerprint of video file is sent to server as the filename of video file.
Present invention also offers a kind of video file processing unit based on HTML5, be applied to server, comprise:
Request receiving module, for receiving the request of searching video file from client, carries fingerprint and the video length of video file in described request;
First matching module, the fingerprint for the video file by the client received mates with the fingerprint of local video file;
Second matching module, for when fingerprint matching is consistent, mates the video length of the video length of the video file of client with local video file;
Feedback information sending module, when video length for the video file when client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server;
Fingerprint receiver module, for receive client video file in the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length;
Second determination module, for determining head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint;
Removing module, for deleting the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
In an embodiment of the present invention, described second determination module also for:
Video file consistent for local fingerprint matching is carried out burst according to designated length, obtains multiple video-frequency band, and calculate the fingerprint of each video-frequency band;
According to the fingerprint of each video-frequency band, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
In an embodiment of the present invention, described second matching module also for:
Judge whether the video length of the video file of client is less than the video length of local video file.
Some beneficial effects of the embodiment of the present invention can comprise:
In the embodiment of the present invention, client determines fingerprint and the video length of local video file to be uploaded, the address of this locality pointed to by HTML5 control is subsequently adjusted to the address of default server, and then the request of searching video file is sent to server, carry fingerprint and the video length of video file in this request.Afterwards, when receiving fingerprint matching that server returns and be consistent but the video length of the video file of client being less than the feedback information of the video length of the video file of server, calculate the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively, head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.Thus, present invention achieves the object that video server side is shared.And, when server return fingerprint matching consistent but the video length of the video file of client is less than the feedback information of the video length of the video file of server time, head fingerprint and afterbody fingerprint are sent to server by client, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band, without the need to client again to server uploaded videos file, save data resource.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the video file processing method based on HTML5 being applied to client in one embodiment of the invention;
Fig. 2 is the flow chart of the video file processing method based on HTML5 being applied to server in one embodiment of the invention;
Fig. 3 is the structural representation of the video file processing unit based on HTML5 being applied to client in one embodiment of the invention; And
Fig. 4 is the structural representation of the video file processing unit based on HTML5 being applied to server in one embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Figure 1 shows that in one embodiment of the invention the flow chart of the video file processing method based on HTML5 being applied to client, the method comprises the following steps S11-S15:
Step S11, determines fingerprint and the video length of local video file to be uploaded.
In this step, the fingerprint of video file is as informative abstract MD5 value, secure Hash SHA1 value etc., and the fingerprint of video file has uniqueness, when having done any change to video file, its fingerprint all can change, thus the fingerprint of video file can be utilized to prevent video file to be tampered.
Step S12, the address of this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in this request to server.
Step S13, the consistent but video length of the video file of client of the fingerprint matching that reception server returns is less than the feedback information of the video length of the video file of server.
Step S14, calculates the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively.
Such as, the head fingerprint of 50M video-frequency band and the afterbody fingerprint of last 50M video-frequency band before in local video file is calculated.Certainly, exemplifying herein is only schematic, does not limit the present invention.
Step S15, head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
In the embodiment of the present invention, client determines fingerprint and the video length of local video file to be uploaded, the address of this locality pointed to by HTML5 control is subsequently adjusted to the address of default server, and then the request of searching video file is sent to server, carry fingerprint and the video length of video file in this request.Afterwards, when receiving fingerprint matching that server returns and be consistent but the video length of the video file of client being less than the feedback information of the video length of the video file of server, calculate the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively, head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.Thus, present invention achieves the object that video server side is shared.And, when server return fingerprint matching consistent but the video length of the video file of client is less than the feedback information of the video length of the video file of server time, head fingerprint and afterbody fingerprint are sent to server by client, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band, without the need to client again to server uploaded videos file, save data resource.
Further, the fingerprint of video file can be sent to server as the filename of video file.
Accordingly, Figure 2 shows that in one embodiment of the invention the flow chart of the video file processing method based on HTML5 being applied to server, the method comprises the following steps S21-S26:
Step S21, receives the request of searching video file from client, carries fingerprint and the video length of video file in this request.
Step S22, mates the fingerprint of the fingerprint of the video file of the client received with local video file.
Step S23, when fingerprint matching is consistent, mates the video length of the video length of the video file of client with local video file.
In this step, when being mated with the video length of local video file by the video length of the video file of client, can judge whether the video length of the video file of client is less than the video length of local video file.
Step S24, when the video length of the video file of client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server.
Step S25, receives the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length in the video file of client.
Step S26, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint, and delete the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
In this embodiment, when server return fingerprint matching consistent but the video length of the video file of client is less than the feedback information of the video length of the video file of server time, head fingerprint and afterbody fingerprint are sent to server by client, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band, without the need to client again to server uploaded videos file, save data resource.
In a preferred embodiment, step S26 may be embodied as following steps A1-A2 above:
Steps A 1, carries out burst by video file consistent for local fingerprint matching according to designated length, obtains multiple video-frequency band, and calculates the fingerprint of each video-frequency band.
Steps A 2, according to the fingerprint of each video-frequency band, determines head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
In this embodiment, because the fingerprint of video-frequency band is unique, can prevent from being tampered, thus improve the accuracy of coupling.
Corresponding to the video file processing method based on HTML5 being applied to client in above-described embodiment, the present invention also provides a kind of video file processing unit based on HTML5 being applied to client.Be illustrated in figure 3 in one embodiment of the invention the structural representation of the video file processing unit based on HTML5 being applied to client, comprise:
First determination module 31, for determining fingerprint and the video length of local video file to be uploaded;
Request sending module 32, the address for this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in request to server;
Feedback information receiver module 33, the consistent but video length of the video file of client of the fingerprint matching returned for reception server is less than the feedback information of the video length of the video file of server;
Computing module 34, for the afterbody fingerprint of the afterbody video-frequency band of the head fingerprint and designated length that calculate the head video-frequency band of local video document measured length respectively;
Fingerprint sending module 35, for head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
The said apparatus of the embodiment of the present invention: client determines fingerprint and the video length of local video file to be uploaded, the address of this locality pointed to by HTML5 control is subsequently adjusted to the address of default server, and then the request of searching video file is sent to server, carry fingerprint and the video length of video file in this request.Afterwards, when receiving fingerprint matching that server returns and be consistent but the video length of the video file of client being less than the feedback information of the video length of the video file of server, calculate the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively, head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.Thus, present invention achieves the object that video server side is shared.And, when server return fingerprint matching consistent but the video length of the video file of client is less than the feedback information of the video length of the video file of server time, head fingerprint and afterbody fingerprint are sent to server by client, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band, without the need to client again to server uploaded videos file, save data resource.
In an embodiment of the present invention, above-mentioned request sending module 32 also for:
The fingerprint of video file is sent to server as the filename of video file.
Corresponding to the video file processing method based on HTML5 being applied to server in above-described embodiment, the present invention also provides a kind of video file processing unit based on HTML5 being applied to server.Be illustrated in figure 4 in one embodiment of the invention the structural representation of the video file processing unit based on HTML5 being applied to server, comprise:
Request receiving module 41, for receiving the request of searching video file from client, carries fingerprint and the video length of video file in request;
First matching module 42, the fingerprint for the video file by the client received mates with the fingerprint of local video file;
Second matching module 43, for when fingerprint matching is consistent, mates the video length of the video length of the video file of client with local video file;
Feedback information sending module 44, when video length for the video file when client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server;
Fingerprint receiver module 45, for receive client video file in the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length;
Second determination module 46, for determining head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint;
Removing module 47, for deleting the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
In an embodiment of the present invention, above-mentioned second determination module 46 also for:
Video file consistent for local fingerprint matching is carried out burst according to designated length, obtains multiple video-frequency band, and calculate the fingerprint of each video-frequency band;
According to the fingerprint of each video-frequency band, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
In an embodiment of the present invention, above-mentioned second matching module 43 also for:
Judge whether the video length of the video file of client is less than the video length of local video file.
The said apparatus of the embodiment of the present invention: server returns to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server, head fingerprint and afterbody fingerprint are sent to server by client, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band, without the need to client again to server uploaded videos file, save data resource.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1., based on a video file processing method of HTML5, be applied to client, it is characterized in that, comprising:
Determine fingerprint and the video length of local video file to be uploaded;
The address of this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in described request to server;
Consistent but the video length of the video file of client of the fingerprint matching that reception server returns is less than the feedback information of the video length of the video file of server;
Calculate the head fingerprint of head video-frequency band of local video document measured length and the afterbody fingerprint of the afterbody video-frequency band of designated length respectively;
Head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
2. method according to claim 1, is characterized in that, also comprises:
The fingerprint of video file is sent to server as the filename of video file.
3., based on a video file processing method of HTML5, be applied to server, it is characterized in that, comprising:
Receive the request of searching video file from client, in described request, carry fingerprint and the video length of video file;
The fingerprint of the fingerprint of the video file of the client received with local video file is mated;
When fingerprint matching is consistent, the video length of the video length of the video file of client with local video file is mated;
When the video length of the video file of client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server;
Receive the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length in the video file of client;
Determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint, and delete the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
4. method according to claim 3, is characterized in that, describedly determines head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint, comprising:
Video file consistent for local fingerprint matching is carried out burst according to designated length, obtains multiple video-frequency band, and calculate the fingerprint of each video-frequency band;
According to the fingerprint of each video-frequency band, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
5. method according to claim 3, is characterized in that, is describedly mated by the video length of the video length of the video file of client with local video file, comprising:
Judge whether the video length of the video file of client is less than the video length of local video file.
6., based on a video file processing unit of HTML5, be applied to client, it is characterized in that, comprising:
First determination module, for determining fingerprint and the video length of local video file to be uploaded;
Request sending module, the address for this locality pointed to by HTML5 control is adjusted to the address of default server, sends the request of searching video file, carry fingerprint and the video length of video file in described request to server;
Feedback information receiver module, the consistent but video length of the video file of client of the fingerprint matching returned for reception server is less than the feedback information of the video length of the video file of server;
Computing module, for the afterbody fingerprint of the afterbody video-frequency band of the head fingerprint and designated length that calculate the head video-frequency band of local video document measured length respectively;
Fingerprint sending module, for head fingerprint and afterbody fingerprint are sent to server, thus the head video-frequency band corresponding with head fingerprint and afterbody video-frequency band corresponding to afterbody fingerprint in the consistent video file of the fingerprint matching of server determination server side, and the video data in the consistent video file of the fingerprint matching of deleting server side before head video-frequency band and after afterbody video-frequency band.
7. device according to claim 6, is characterized in that, described request sending module also for:
The fingerprint of video file is sent to server as the filename of video file.
8., based on a video file processing unit of HTML5, be applied to server, it is characterized in that, comprising:
Request receiving module, for receiving the request of searching video file from client, carries fingerprint and the video length of video file in described request;
First matching module, the fingerprint for the video file by the client received mates with the fingerprint of local video file;
Second matching module, for when fingerprint matching is consistent, mates the video length of the video length of the video file of client with local video file;
Feedback information sending module, when video length for the video file when client is less than the video length of local video file, send to client the feedback information that the consistent but video length of the video file of client of fingerprint matching is less than the video length of the video file of server;
Fingerprint receiver module, for receive client video file in the head fingerprint of head video-frequency band of designated length and the afterbody fingerprint of the afterbody video-frequency band of designated length;
Second determination module, for determining head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint;
Removing module, for deleting the video data in the consistent video file of local fingerprint matching before head video-frequency band and after afterbody video-frequency band.
9. device according to claim 8, is characterized in that, described second determination module also for:
Video file consistent for local fingerprint matching is carried out burst according to designated length, obtains multiple video-frequency band, and calculate the fingerprint of each video-frequency band;
According to the fingerprint of each video-frequency band, determine head video-frequency band corresponding with head fingerprint in the video file that local fingerprint matching is consistent and afterbody video-frequency band corresponding to afterbody fingerprint.
10. device according to claim 9, is characterized in that, described second matching module also for:
Judge whether the video length of the video file of client is less than the video length of local video file.
CN201510298951.6A 2015-06-03 2015-06-03 A kind of video file processing method and processing device based on HTML5 Expired - Fee Related CN104936045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510298951.6A CN104936045B (en) 2015-06-03 2015-06-03 A kind of video file processing method and processing device based on HTML5

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510298951.6A CN104936045B (en) 2015-06-03 2015-06-03 A kind of video file processing method and processing device based on HTML5

Publications (2)

Publication Number Publication Date
CN104936045A true CN104936045A (en) 2015-09-23
CN104936045B CN104936045B (en) 2018-05-15

Family

ID=54122954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510298951.6A Expired - Fee Related CN104936045B (en) 2015-06-03 2015-06-03 A kind of video file processing method and processing device based on HTML5

Country Status (1)

Country Link
CN (1) CN104936045B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177847A1 (en) * 2003-03-07 2005-08-11 Richard Konig Determining channel associated with video stream
CN102156751A (en) * 2011-04-26 2011-08-17 深圳市迅雷网络技术有限公司 Method and device for extracting video fingerprint
CN102214210A (en) * 2011-05-16 2011-10-12 成都市华为赛门铁克科技有限公司 Method, device and system for processing repeating data
CN102323948A (en) * 2011-09-07 2012-01-18 上海大学 Automatic detection method for title sequence and tail leader of TV play video
CN104639629A (en) * 2015-01-30 2015-05-20 英华达(上海)科技有限公司 File comparing method and system at client and cloud

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177847A1 (en) * 2003-03-07 2005-08-11 Richard Konig Determining channel associated with video stream
CN102156751A (en) * 2011-04-26 2011-08-17 深圳市迅雷网络技术有限公司 Method and device for extracting video fingerprint
CN102214210A (en) * 2011-05-16 2011-10-12 成都市华为赛门铁克科技有限公司 Method, device and system for processing repeating data
CN102323948A (en) * 2011-09-07 2012-01-18 上海大学 Automatic detection method for title sequence and tail leader of TV play video
CN104639629A (en) * 2015-01-30 2015-05-20 英华达(上海)科技有限公司 File comparing method and system at client and cloud

Also Published As

Publication number Publication date
CN104936045B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN107483627B (en) File distribution method, file download method, distribution server, client and system
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN106537380B (en) Automatic archiving of user-generated media files
US20180255359A1 (en) Method for sharing a captured video clip and electronic device
US20170162229A1 (en) Play method and device
US10264329B2 (en) Descriptive metadata extraction and linkage with editorial content
CN106657213A (en) File transmission method and device
US20170195384A1 (en) Video Playing Method and Electronic Device
EP3902266A1 (en) Processing method for dragging video data and proxy server
CN105573667A (en) Data reading method and storage server
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
US10694263B2 (en) Descriptive metadata extraction and linkage with editorial content
CN105763960A (en) Method and apparatus for network video playing
CN103945259A (en) Online video playing method and device
EP2897060B1 (en) Subtitle processing method, device and system, and storage medium
WO2017036183A1 (en) Differential upgrade package processing method and device, upgrade method, system and device
WO2018233539A1 (en) Video processing method, computer storage medium, and device
US10277652B2 (en) Transmission apparatus, transmission method, and program
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
KR101472016B1 (en) Creation method of complex file having image file and additional data inserted in the image file and data record apparatus recording the complex file
US20150074223A1 (en) Information processing system, information processing method, communication terminal, server, and control methods and control programs thereof
KR101779791B1 (en) Transmitting information based on reading speed
CN105025343A (en) Caching method and device of TS video
CN105610596B (en) Resource directory management method and network terminal
US20150326686A1 (en) Method, Apparatus and System for Processing User Generated Content

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Wu Xiaolong

Inventor after: Zhan Li

Inventor before: Wu Xiaolong

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A video file processing method and device based on HTML5

Effective date of registration: 20210104

Granted publication date: 20180515

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001517

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180515

Termination date: 20210603

CF01 Termination of patent right due to non-payment of annual fee