CN109788251A - Method for processing video frequency, device and storage medium - Google Patents

Method for processing video frequency, device and storage medium Download PDF

Info

Publication number
CN109788251A
CN109788251A CN201910052420.7A CN201910052420A CN109788251A CN 109788251 A CN109788251 A CN 109788251A CN 201910052420 A CN201910052420 A CN 201910052420A CN 109788251 A CN109788251 A CN 109788251A
Authority
CN
China
Prior art keywords
analysis task
file
server
file identification
target video
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
CN201910052420.7A
Other languages
Chinese (zh)
Other versions
CN109788251B (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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201910052420.7A priority Critical patent/CN109788251B/en
Publication of CN109788251A publication Critical patent/CN109788251A/en
Application granted granted Critical
Publication of CN109788251B publication Critical patent/CN109788251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

This application involves a kind of method for processing video frequency, device and storage mediums, belong to field of computer technology, this method comprises: obtaining the first file identification of target video file;Determine whether the target video file of the first file identification instruction has uploaded;When the target video file of the first file identification instruction has uploaded, the first analysis task of target video file is obtained, the first analysis task includes the network address of target video file;First analysis task is sent to first server, so that first server determines whether the first analysis task has executed, and returns to last time implementing result when the first analysis task has executed;It can solve the problem of second server repeats to receive the same target video file of electronic equipment upload, leads to the storage resource for wasting second server and the bandwidth resources of transmission objectives video file;The storage resource of second server and the bandwidth resources of transmission objectives video file can be saved.

Description

Method for processing video frequency, device and storage medium
Technical field
This application involves method for processing video frequency, device and storage mediums, belong to field of computer technology.
Background technique
With popularizing for safety defense monitoring system application, the video resource that each video acquisition end uploads is more and more, accordingly The video resource analyzed of needs it is also more and more.
Currently, the mode analyzed video resource includes: that the video resource that is analysed to of client is uploaded to storage Server;Analysis server analyzes the video resource in storage server according to analysis demand.
However, the analysis demand according to video resource is different, same video resource may be repeatedly uploaded to by client and be deposited Server is stored up, such as: analysis demand 1 is to analyze video resource x with parser type A;Analysis demand 2 is by video Resource x is analyzed with parser type B, at this point, client needs to storage server to upload video resource x twice, The bandwidth resources etc. consumed when in this way, will lead to the storage resource in waste storage server, same video resource is transmitted several times Problem.
Summary of the invention
This application provides a kind of method for processing video frequency, device and storage mediums, can solve second server and repeat to connect The same target video file for receiving electronic equipment upload leads to the storage resource and transmission objectives video that waste second server The problem of bandwidth resources of file.The application provides the following technical solutions:
In a first aspect, providing a kind of method for processing video frequency, which comprises
Obtain the first file identification of target video file;
Determine whether the target video file of the first file identification instruction has uploaded;
When the target video file of first file identification instruction has uploaded, the of the target video file is obtained One analysis task, first analysis task include the network address of the target video file;
First analysis task is sent to first server, so that the first server determines first analysis Whether task has executed, and last time implementing result is returned when first analysis task has executed.
Optionally, the method also includes:
When the target video file of first file identification instruction does not upload, the target video file is uploaded to Second server;
The network address of the target video file returned according to the second server generates the second analysis task;
Second analysis task is sent to the first server;So that the first server determines described second Whether analysis task has executed, and last time implementing result is returned when second analysis task has executed.
Optionally, whether the target video file of the determination the first file identification instruction has uploaded, comprising:
First file identification is sent to second server, first file identification is used to supply the second service Whether the second file identification that device detects uploaded videos file includes file identification identical with first file identification;? First file identification is determined when including file identification identical with first file identification in second file identification The target video file of instruction has uploaded, and returns to the network address;Do not include and described in second file identification It determines that the target video file of the first file identification instruction does not upload when the identical file identification of one file identification, returns not Upload response.
Optionally, first analysis task for obtaining the video to be uploaded, comprising:
Obtain the parser type and network address of the video to be uploaded;
First analysis is generated according to the parser type, the network address and first file identification to appoint Business.
Second aspect provides a kind of method for processing video frequency, which comprises
The analysis task that electronic equipment is sent is received, the target that the analysis task is used to upload the electronic equipment regards Frequency file is analyzed;
Detect whether the analysis task has executed;
When the analysis task has executed, last time implementing result is sent to the electronic equipment.
Optionally, the method also includes:
When the analysis task is not carried out, the analysis task is sent to third server;The analysis task is used Corresponding analysis is carried out to the target video file in the confession third server;
It receives and stores the third server and executes the implementing result obtained after the analysis task.
Optionally, the analysis task includes the network address of the target video file, parser type and first File identification;
Whether the detection analysis task has executed, comprising:
Whether the third file identification for detecting the video file analyzed includes text identical with first file identification Part mark, and whether the corresponding parser type of the third file identification includes parser class in the analysis task Type;
It include file identification identical with first file identification in the third file identification, and the third file When to identify corresponding parser type include the parser type in the analysis task, whether the analysis task is determined It has executed;
It does not include file identification identical with first file identification or third text in the third file identification Part mark includes file identification identical with first file identification and the corresponding parser class of the third file identification When type does not include the parser type in the analysis task, determine that the analysis task is not carried out.
The third aspect, provides a kind of video process apparatus, and described device includes:
Identifier acquisition module, for obtaining the first file identification of target video file;
Determining module is uploaded, for determining whether the target video file of the first file identification instruction has uploaded;
Task acquisition module when the target video file for indicating in first file identification has uploaded, obtains institute The first analysis task of target video file is stated, first analysis task includes the network address of the target video file;
Task sending module, for first analysis task to be sent to first server, for the first service Device determines whether first analysis task has executed, and return last time executes knot when first analysis task has executed Fruit.
Fourth aspect, provides a kind of video process apparatus, and described device includes:
Task receiving module, for receiving the analysis task of electronic equipment transmission, the analysis task is used for the electricity The target video file that sub- equipment uploads is analyzed;
Determining module is executed, for detecting whether the analysis task has executed;
Result return module, for when the analysis task has executed, last time implementing result to be sent to the electronics Equipment.
5th aspect, provides a kind of video process apparatus, described device includes processor and memory;In the memory It is stored with program, described program is loaded as the processor and executed to realize method for processing video frequency described in first aspect;Or Person realizes method for processing video frequency described in second aspect.
6th aspect, provides a kind of computer readable storage medium, program, described program is stored in the storage medium It is loaded as the processor and is executed to realize method for processing video frequency described in first aspect;Alternatively, realizing described in second aspect Method for processing video frequency.
The beneficial effects of the present application are as follows: the first file identification by obtaining target video file;Determine the first file Whether the target video file of mark instruction has uploaded;When the target video file of the first file identification instruction has uploaded, obtain The first analysis task of target video file is taken, which includes the network address of target video file;By first Analysis task is sent to first server, so that first server determines whether the first analysis task has executed, and at first point Last time implementing result is returned when analysis task has executed;It can solve second server to repeat to receive the same of electronic equipment upload Target video file, cause waste second server storage resource and transmission objectives video file bandwidth resources the problem of; Since electronic equipment can determine whether the target video file of analysis task instruction has uploaded before sending analysis task, and It is not repeated to send the target video resource to second server when having uploaded, therefore, depositing for second server can be saved Store up the bandwidth resources of resource and transmission objectives video file.
In addition, receiving the analysis task that electronic equipment is sent by first server;Determine whether the analysis task has been held Row;Analysis directly, which is returned, to electronic equipment when having executed appoints as a result, can solve third server and repeatedly analyze same analysis The problem of waste operation resource is with the time is executed caused by business;Since for same analysis task, third server only needs to analyze Once, other identical analysis task first servers can directly return to last time implementing result, therefore, can both save analysis The execution time of task, and the operation resource of third server can be saved.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be implemented in accordance with the contents of the specification, with the preferred embodiment of the application and cooperate attached drawing below detailed description is as follows.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the processing system for video that the application one embodiment provides;
Fig. 2 is the flow chart for the method for processing video frequency that the application one embodiment provides;
Fig. 3 be the application one embodiment provide the first file identification of determination instruction target video file whether on The flow chart of the method for biography;
Fig. 4 be the application one embodiment provide corresponding analysis is carried out to target video file according to analysis task The flow chart of method;
Fig. 5 is the block diagram for the video process apparatus that the application one embodiment provides;
Fig. 6 is the block diagram for the video process apparatus that the application one embodiment provides;
Fig. 7 is the block diagram for the video process apparatus that the application one embodiment provides.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.Implement below Example is not limited to scope of the present application for illustrating the application.
Fig. 1 is the structural schematic diagram for the processing system for video that the application one embodiment provides, as shown in Figure 1, the system It includes at least: electronic equipment 110, first server 120, second server 130 and third server 140.
Electronic equipment 110 is submitted to first server 120 to the target for obtaining target video file to be uploaded The analysis task that video file is analyzed.Electronic equipment 110 can be the terminals such as mobile phone, computer, tablet computer;Alternatively, It is also possible to server;The target video file that electronic equipment 110 is got can be it is pre-stored, or acquisition equipment It acquires and sends in real time, the source of the type to electronic equipment 110 and target video file does not limit the present embodiment.
Analysis task is used to indicate the target video file that third server 140 uploads electronic equipment and analyzes.
Schematically, it includes: that electronic equipment 110 obtains target video text that electronic equipment 110, which sends the process of analysis task, First file identification of part;Determine whether the target video file of the first file identification instruction has uploaded;In the first file identification When the target video file of instruction has uploaded, the first analysis task of target video file is obtained;First analysis task is sent To first server 120;When the target video file of the first file identification instruction does not upload, which is uploaded To second server 130;The network address of the target video file returned according to second server 130 generates the second analysis and appoints Business;Second analysis task is sent to first server 120.
Wherein, for uniquely identifying target video file, which can be is based on the first file identification Message Digest 5 (Message Digest Algorithm, MD5) is to the calculated hashed value of target video file;Alternatively, It is the title, number, acquisition date etc. of target video file, the present embodiment does not limit the type of the first file identification.
First analysis task includes the network address of target video file.First server 120 is for determining the first analysis Whether task has executed, and the last time implementing result of the first analysis task is returned when the first analysis task has executed.
Second analysis task includes the network address of target video file.First server 120 is also used to determine second point Whether analysis task has executed, and the last time implementing result of the second analysis task is returned when the second analysis task has executed.
Optionally, electronic equipment 110 passes through with first server 120 and second server 130 wired or wireless respectively The mode of communication is connected.
Schematically, data boundary transmitting, monitoring private network proxy server and the number are passed through with electronic equipment 110 in Fig. 1 According to the connected security boundary access platform of boundary transmission private monitoring network proxy server and with the security boundary access platform phase Data boundary transmitting, monitoring private network proxy server even accesses public network, and first server 120 and second server 130 connect Enter the public network, thus for realizing the communication connection of electronic equipment 110 and first server 120 and second server 130 It is illustrated.Wherein, security boundary access platform is used to provide the safety of internal network and the access function of outer net;Data boundary Transmitting, monitoring private network proxy server is used to provide access service to third party's non-standard platforms.Certainly, electronic equipment 110 can also It establishes and communicates to connect to be directly accessed public network and first server 120 and second server 130, the present embodiment is not to electronics The mode that equipment 110 establishes communication connection with first server 120 and second server 130 limits.
Second server 130 can be independent server host, alternatively, it is also possible to server cluster, the present embodiment The type of second server 130 is not limited.Second server 130 is used to manage the target video of the upload of electronic equipment 110 File.Second server is referred to as storage server, storage platform etc., and the present embodiment is not to the name of second server 130 Referred to as limit.
Schematically, second server 130 is used to receive the first file identification of the transmission of electronic equipment 110;In detection Whether the second file identification for passing video file includes file identification identical with the first file identification;In the second file identification Including determining that the target video file of the first file identification instruction has uploaded when file identification identical with the first file identification, return Return network address;The first files-designated is determined when not including file identification identical with the first file identification in the second file identification The target video file for knowing instruction does not upload, and return does not upload response.
Wherein, network address is the address that second server 130 stores target video file.
First server 120 can be independent server host, alternatively, it is also possible to server cluster, the present embodiment The type of first server 120 is not limited.First server 120 is used to manage the analysis task of the transmission of electronic equipment 110. First server 120 and second server 130 may belong to same server host;Alternatively, also may belong to different services Device host, the present embodiment are not construed as limiting this.It is flat that first server 120 is referred to as intelligent management server, intelligent management Platform etc., this example, which is not referred to as the name of first server 120, to be limited.
Schematically, first server 120 receives the analysis task that electronic equipment is sent;Whether to detect the analysis task It executes;When analysis task has executed, last time implementing result is sent to electronic equipment 110;It, will when analysis task is not carried out Analysis task is sent to third server 140;It receives and stores third server 140 and executes the execution knot obtained after analysis task Fruit.
Analysis task is used to carry out corresponding analysis to target video file for third server.
Optionally, first server 120 can also include other functions, such as: it is taken based on load balancing principle to third The function for the transmission analysis task of device 140 of being engaged in, to guarantee that the load capacity of each third server 140 is balanced;For another example: data are more New function deletes the analysis task not improved in preset duration, the analysis task newly submitted is inserted into, is right It modifies and inquires in the analysis task uploaded;For another example: monitoring resource being carried out to node server and ties monitoring Fruit is sent to monitor client;When resource utilization is higher than preset value, alarm prompt etc. is sent to monitor client;Again Such as: realize the time between node server and Network Time Protocol (Network Time Protocol, NTP) server Synchronous function etc..The present embodiment does not enumerate the function of first server 120 herein.
Optionally, first server 120 is connected by way of wired or wireless communication with third server 140.Show Meaning property, first server 120 is connected with third server 140 by public network communication.
Third server 140 can be independent server host, alternatively, it is also possible to server cluster, the present embodiment The type of third server 140 is not limited.Third server 140 can be with first server 120 and second server 130 Belong to same server host;Alternatively, also may belong to different server hosts, the present embodiment is not construed as limiting this.Third Server 140 is referred to as intellectual analysis server, Analysis server, analysis platform etc., and the present embodiment is not to third service The name of device 140, which is referred to as, to be limited.
Third server 140 is for dividing target video file according to the analysis task that first server 120 is sent Analysis.
Schematically, analysis task includes the network address and parser type of target video file;Third server 140 receive and obtain target video file according to the network address after the analysis task, using the parser type to target Video file carries out corresponding analysis.
Fig. 2 is the flow chart for the method for processing video frequency that the application one embodiment provides, and the present embodiment is applied in this way It is illustrated in processing system for video shown in FIG. 1.This method includes at least following steps:
Step 201, electronic equipment obtains the first file identification of target video file.
In the application, file identification be can be for uniquely identifying target video file, this document mark based on message Digest algorithm (Message Digest Algorithm, MD5) is to the calculated hashed value of target video file;Alternatively, being mesh The title, number, acquisition date etc. of video file are marked, the present embodiment does not limit the type of file identification.Schematically, originally It is illustrated so that file identification is based on the calculated hashed value of MD5 as an example in embodiment, once in this way, target video file changes Become, which can also change.Wherein, file identification includes the first file identification.
Optionally, for electronic equipment after getting target video file, which is decoded, To obtain the encoded information of the target video file and the video requency frame data of the target video file.Encoded information include but It is not limited to the encoder that target video file uses, in this way, can determine corresponding solution according to encoder for third server Code device improves third server and determines the efficiency of decoder when analyzing target video file, to improve video point The efficiency of analysis.Video requency frame data includes but is not limited to: the information such as frame per second, resolution ratio and size of target video file, in this way, can To reduce the amount of analysis of third server, third server is improved to the analysis speed of target video file.
Step 202, electronic equipment determines whether the target video file of the first file identification instruction has uploaded.
Optionally, when the target video file of the first file identification instruction has uploaded, step 203 is executed;In the first text When the target video file of part mark instruction does not upload, target video file is uploaded to second server;According to second service The network address for the target video file that device returns generates the second analysis task;Second analysis task is sent to first service Device.Wherein, first server is for determining whether the second analysis task has executed, and the return when the second analysis task has executed Last time implementing result.
Optionally, the second analysis task includes but is not limited to: network address that electronic equipment is got, the first file identification With parser type.Certainly, the second analysis task can also include the other information such as encoded information, video requency frame data, this reality The content that example does not include to the second analysis task is applied to limit.
Optionally, uploading speed upper limit when uploading target video file can also be arranged in electronic equipment, can keep away in this way Exempt to upload the target video file and occupy wide bandwidth, thus the problem of influencing other transformation tasks.
With reference to Fig. 3, electronic equipment determines whether the target video file of the first file identification instruction has uploaded, including step 31-36:
Step 31, the first file identification is sent to second server by electronic equipment.
Second server is used to store the video file of electronic equipment upload, and foundation has each video file and the video Corresponding relationship between second file identification of file.
Step 32, second server receives the first file identification, and detects the second file identification of uploaded videos file It whether include file identification identical with the first file identification;It include identical with the first file identification in the second file identification When file identification, step 33 is executed;When not including file identification identical with the first file identification in the second file identification, hold Row step 34.
Since target video file has unique first file identification, if the second file identification of second server storage Including first file identification, illustrate to have received the target video file before second server, that is, target video file is It uploads.
Step 33, the first file is determined when including file identification identical with the first file identification in the second file identification The target video file of mark instruction has uploaded, and second server returns to network address to electronic equipment.
Network address is used to indicate the storage address of target video file.
Step 34, electronic equipment receives the network address of target video file, determines the target of the first file identification instruction Video file has uploaded, and process terminates.
Step 35, the first text is determined when not including file identification identical with the first file identification in the second file identification The target video file of part mark instruction does not upload, and second server does not upload response to electronic equipment return.
Step 36, electronic equipment reception do not upload response, determine the first file identification indicate target video file not on It passes, process terminates.
Certainly, electronic equipment can also determine otherwise the first file identification instruction target video file whether It has been uploaded that, such as: second server synchronizes the second files-designated of the video file uploaded every preset duration to electronic equipment Know, electronic equipment determines whether the second file identification for receiving includes the first file identification, includes the in the second file identification Determine that the target video file of the first file identification instruction has uploaded when one file identification;It does not include first in the second file identification Determine that the target video file of the first file identification instruction does not upload when file identification.
Step 203, when the target video file of the first file identification instruction has uploaded, the of target video file is obtained One analysis task.
Wherein, the first analysis task includes the network address of target video file.
Electronic equipment obtains the first analysis task, comprising: obtains the parser type and network address of video to be uploaded; The first analysis task is generated according to parser type, network address and the first file identification.
Optionally, electronic equipment shows parser type selection control in the user interface;According to acting on this point The trigger action for analysing algorithm types selection control obtains parser type.Such as: the parser class shown in user interface It includes: general bayonet parser control, video frequency abstract parser control, personnel's bayonet parser control that type, which selects control, Part, vehicle bayonet parser control and human face analysis algorithm control act on general bayonet parser control receiving On trigger action when the parser type that gets be general bayonet parser;Video frequency abstract point is acted on receiving The parser type got when analysing the trigger action on algorithm control is video frequency abstract parser;It is acted on receiving The parser type got when trigger action on personnel's bayonet parser control is personnel's bayonet parser;It is connecing The parser type got when receiving the trigger action acted on vehicle bayonet parser control is vehicle bayonet point Analyse algorithm;The parser type got when receiving the trigger action acted on human face analysis algorithm control is face Parser.
Network address is to send for storing the second server of target video file.
Wherein, generating the first analysis task according to parser type, network address and the first file identification includes, and will divide Algorithm types, network address and the first file identification is analysed to carry in the first analysis task.Optionally, the first analysis task may be used also To include other information, such as: the other information such as encoded information, video requency frame data of target video file, the present embodiment be not right The content that first analysis task includes limits.
Step 204, the first analysis task is sent to first server by electronic equipment, so that first server determines first Whether analysis task has executed, and last time implementing result is returned when the first analysis task has executed.
Optionally, task is shown in the user interface of electronic equipment and sends control, acts on task hair receiving The first analysis task that electronic equipment will acquire when sending the trigger action of control is sent to first server.
Step 205, first server receives the analysis task that electronic equipment is sent.
Analysis task is for analyzing the target video file that electronic equipment uploads.Optionally, analysis task can be with It is the first analysis task;Alternatively, being also possible to the second analysis task.
Step 206, first server tests and analyzes whether task has executed.
Optionally, analysis task includes the network address of target video file, parser type and the first file identification; First server is used to manage the analysis task that each electronic equipment is sent, and is stored with the third text for the video file analyzed The corresponding relationship of part mark, parser type and implementing result.At this point, first server tests and analyzes whether task has been held Row, comprising: whether the third file identification for the video file that detection has been analyzed includes files-designated identical with the first file identification Know, and whether the corresponding parser type of third file identification includes parser type in analysis task;In third text Part mark includes file identification identical with the first file identification, and the corresponding parser type of third file identification includes point When parser type in analysis task, determine whether analysis task has executed;Do not include and the first text in third file identification Part identifies identical file identification or third file identification includes file identification identical with the first file identification and third text Part identifies corresponding parser type when not including the parser type in analysis task, determines that analysis task is not carried out.
Optionally, step 207 is executed when analysis task has executed;When analysis task is not carried out, analysis task is sent out It send to third server;Correspondingly, third server carries out corresponding analysis to target video file after receiving analysis task, And implementing result is sent to first server;First server is received and stored after third server executes analysis task and is obtained Implementing result.Wherein, analysis task is used to carry out corresponding analysis to target video file for third server.
With reference to Fig. 4, third server carries out corresponding analysis, including step to target video file according to analysis task 41-51:
Step 41, the analysis task that first server is sent is obtained.
Step 42, determine whether the parser type in analysis task is general bayonet parser;It is calculated in the analysis When method type is general bayonet parser, step 43 is executed;When the parser type is not general bayonet parser, Execute step 44.
Step 43, the video data in decoder parsing target video file is called, general bayonet parser pair is used It parses obtained video data to be analyzed, process terminates.
Optionally, the analysis task that third server receives includes the encoded information of target video file, third service The encoder that device is indicated according to the encoded information calls corresponding decoder to parse the target video file.
Optionally, third server can also call one by one different decoders to parse target video file, directly Stop when to successfully resolved.
It, can be to target video file when third server calls decoder parses the video data in target video file It is decoded and/or the operation such as transcoding.
Step 44, determine whether the parser type in analysis task is video frequency abstract parser;It is calculated in the analysis When method type is video frequency abstract parser, step 45 is executed;When the parser type is not video frequency abstract parser, Execute step 46.
Step 45, the video data in decoder parsing target video file is called, is calculated using video frequency abstract analysis to solution It analyses obtained video data to be analyzed, process terminates.
Step 46, determine whether the parser type in analysis task is personnel's bayonet parser;It is calculated in the analysis When method type is personnel's bayonet parser, step 47 is executed;When the parser type is not personnel's bayonet parser, Execute step 48.
Step 47, the video data in decoder parsing target video file, user of service's bayonet parser pair are called It parses obtained video data to be analyzed, process terminates.
Step 48, determine whether the parser type in analysis task is vehicle bayonet parser;It is calculated in the analysis When method type is vehicle bayonet parser, step 49 is executed;When the parser type is not vehicle bayonet parser, Execute step 50.
Step 49, the video data in decoder parsing target video file is called, vehicle bayonet parser pair is used It parses obtained video data to be analyzed, process terminates.
Step 50, determine whether the parser type in analysis task is human face analysis algorithm;In the parser class When type is human face analysis algorithm, step 51 is executed;Step is executed again when the parser type is not human face analysis algorithm 41。
Step 51, the video data in decoder parsing target video file is called, using human face analysis algorithm to parsing Obtained video data is analyzed.
Step 207, when analysis task has executed, last time implementing result is sent to electronic equipment by first server.
Since implementing result can be back to first server after having executed analysis task by third server, When analysis task has executed, first server can be stored by the corresponding implementing result of the analysis task, at this point it is possible to directly will The implementing result is back to electronic equipment, to improve the analysis speed of analysis task.
In conclusion method for processing video frequency provided in this embodiment, by the first files-designated for obtaining target video file Know;Determine whether the target video file of the first file identification instruction has uploaded;In the target video of the first file identification instruction When file has uploaded, the first analysis task of target video file is obtained, which includes target video file Network address;First analysis task is sent to first server, so that whether first server determines the first analysis task It executes, and returns to last time implementing result when the first analysis task has executed;It can solve second server to repeat to receive electricity The same target video file that sub- equipment uploads leads to the storage resource for wasting second server and transmission objectives video file The problem of bandwidth resources;Since electronic equipment can determine whether the target video text of analysis task instruction before sending analysis task Whether part has uploaded, and is not repeated to send the target video resource to second server when having uploaded, and therefore, can save The storage resource of second server and the bandwidth resources of transmission objectives video file.
In addition, receiving the analysis task that electronic equipment is sent by first server;Determine whether the analysis task has been held Row;Analysis directly, which is returned, to electronic equipment when having executed appoints as a result, can solve third server and repeatedly analyze same analysis The problem of waste operation resource is with the time is executed caused by business;Since for same analysis task, third server only needs to analyze Once, other identical analysis task first servers can directly return to last time implementing result, therefore, can both save analysis The execution time of task, and the operation resource of third server can be saved.
Optionally, step 201-204 can be implemented separately as the embodiment of the method for electronic equipment side;Step 205-207 can be single Solely it is embodied as the embodiment of the method for first server side.
Fig. 5 is the block diagram for the video process apparatus that the application one embodiment provides, and the present embodiment is applied to the device It is illustrated for electronic equipment 110 in processing system for video shown in FIG. 1.The device includes at least following module: Identifier acquisition module 510 uploads determining module 520, task acquisition module 530 and task sending module 540.
Identifier acquisition module 510, for obtaining the first file identification of target video file;
Determining module 520 is uploaded, for determining whether the target video file of the first file identification instruction has uploaded;
Task acquisition module 530 when the target video file for indicating in first file identification has uploaded, obtains First analysis task of the target video file, first analysis task include the network of the target video file Location;
Task sending module 540, for first analysis task to be sent to first server, for first clothes Business device determines whether first analysis task has executed, and return last time executes knot when first analysis task has executed Fruit.
Correlative detail refers to above method embodiment.
Fig. 6 is the block diagram for the video process apparatus that the application one embodiment provides, and the present embodiment is applied to the device It is illustrated for first server 120 in processing system for video shown in FIG. 1.The device includes at least following mould Block: task receiving module 610 executes determining module 620, result return module 630.
Task receiving module 610, for receiving the analysis task of electronic equipment transmission, the analysis task is used for described The target video file that electronic equipment uploads is analyzed;
Determining module 620 is executed, for detecting whether the analysis task has executed;
Result return module 630, for when the analysis task has executed, last time implementing result to be sent to the electricity Sub- equipment.
Correlative detail refers to above method embodiment.
It should be understood that the video process apparatus provided in above-described embodiment is when carrying out video processing, only with above-mentioned The division progress of each functional module can according to need and for example, in practical application by above-mentioned function distribution by different Functional module is completed, i.e., the internal structure of video process apparatus is divided into different functional modules, described above to complete All or part of function.In addition, video process apparatus provided by the above embodiment and method for processing video frequency embodiment belong to together One design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Fig. 7 is the block diagram for the video process apparatus that the application one embodiment provides, which can be view shown in FIG. 1 The device of electronic equipment 110 in frequency processing system;Alternatively, first server 120.The device includes at least 701 He of processor Memory 702.
Processor 701 may include one or more processing cores, such as: 4 core processors, 8 core processors etc..Place Reason device 701 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 701 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 701 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 701 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 702 may include one or more computer readable storage mediums, which can To be non-transient.Memory 702 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 702 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 701 for realizing this Shen Please in embodiment of the method provide method for processing video frequency.
In some embodiments, video process apparatus is also optional includes: peripheral device interface and at least one periphery are set It is standby.It can be connected by bus or signal wire between processor 701, memory 702 and peripheral device interface.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment includes but is not limited to: Radio circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, video process apparatus can also include less or more component, and the present embodiment is not construed as limiting this.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium It is stored with program, described program is loaded by processor and executed the method for processing video frequency to realize above method embodiment.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium Matter is stored with program in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side The method for processing video frequency of method embodiment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of method for processing video frequency, which is characterized in that the described method includes:
Obtain the first file identification of target video file;
Determine whether the target video file of the first file identification instruction has uploaded;
When the target video file of first file identification instruction has uploaded, first point of the target video file is obtained Analysis task, first analysis task include the network address of the target video file;
First analysis task is sent to first server, so that the first server determines first analysis task Whether execute, and has returned to last time implementing result when first analysis task has executed.
2. the method according to claim 1, wherein the method also includes:
When the target video file of first file identification instruction does not upload, the target video file is uploaded to second Server;
The network address of the target video file returned according to the second server generates the second analysis task;
Second analysis task is sent to the first server, so that the first server determines second analysis Whether task has executed, and last time implementing result is returned when second analysis task has executed.
3. the method according to claim 1, wherein the target view of the determination the first file identification instruction Whether frequency file has uploaded, comprising:
First file identification is sent to second server, first file identification is used to examine for the second server Whether the second file identification for surveying uploaded videos file includes file identification identical with first file identification;Described The first file identification instruction is determined when including file identification identical with first file identification in the second file identification Target video file uploaded, return to the network address;Do not include and first text in second file identification Part determines that the target video file of the first file identification instruction does not upload when identifying identical file identification, return does not upload Response.
4. method according to any one of claims 1 to 3, which is characterized in that described to obtain the first of the video to be uploaded Analysis task, comprising:
Obtain the parser type and network address of the video to be uploaded;
First analysis task is generated according to the parser type, the network address and first file identification.
5. a kind of method for processing video frequency, which is characterized in that the described method includes:
The analysis task that electronic equipment is sent is received, the target video text that the analysis task is used to upload the electronic equipment Part is analyzed;
Detect whether the analysis task has executed;
When the analysis task has executed, last time implementing result is sent to the electronic equipment.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
When the analysis task is not carried out, the analysis task is sent to third server;The analysis task is for supplying The third server carries out corresponding analysis to the target video file;
It receives and stores the third server and executes the implementing result obtained after the analysis task.
7. according to the method described in claim 5, it is characterized in that, the analysis task includes the net of the target video file Network address, parser type and the first file identification;
Whether the detection analysis task has executed, comprising:
Whether the third file identification for detecting the video file analyzed includes files-designated identical with first file identification Know, and whether the corresponding parser type of the third file identification includes parser type in the analysis task;
It include file identification identical with first file identification in the third file identification, and the third file identification When corresponding parser type includes the parser type in the analysis task, determine whether the analysis task has been held Row;
It does not include file identification identical with first file identification or the third files-designated in the third file identification Knowledge include file identification identical with first file identification and the corresponding parser type of the third file identification not When including parser type in the analysis task, determine that the analysis task is not carried out.
8. a kind of video process apparatus, which is characterized in that described device includes:
Identifier acquisition module, for obtaining the first file identification of target video file;
Determining module is uploaded, for determining whether the target video file of the first file identification instruction has uploaded;
Task acquisition module obtains the mesh when target video file for indicating in first file identification has uploaded The first analysis task of video file is marked, first analysis task includes the network address of the target video file;
Task sending module, for first analysis task to be sent to first server, so that the first server is true Whether fixed first analysis task has executed, and last time implementing result is returned when first analysis task has executed.
9. a kind of video process apparatus, which is characterized in that described device includes:
Task receiving module, for receiving the analysis task of electronic equipment transmission, the analysis task is for setting the electronics The standby target video file uploaded is analyzed;
Determining module is executed, for detecting whether the analysis task has executed;
Result return module, for when the analysis task has executed, last time implementing result to be sent to the electronic equipment.
10. a kind of video process apparatus, which is characterized in that described device includes processor and memory;It is deposited in the memory Program is contained, described program is loaded by the processor and executed to realize such as the described in any item videos of Claims 1-4 Reason method;Alternatively, realizing such as the described in any item method for processing video frequency of claim 5 to 7.
11. a kind of computer readable storage medium, which is characterized in that be stored with program, described program quilt in the storage medium For realizing the described in any item method for processing video frequency of such as Claims 1-4 when processor executes;Alternatively, realizing as right is wanted Seek 5 to 7 described in any item method for processing video frequency.
CN201910052420.7A 2019-01-21 2019-01-21 Video processing method, device and storage medium Active CN109788251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910052420.7A CN109788251B (en) 2019-01-21 2019-01-21 Video processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910052420.7A CN109788251B (en) 2019-01-21 2019-01-21 Video processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109788251A true CN109788251A (en) 2019-05-21
CN109788251B CN109788251B (en) 2021-02-23

Family

ID=66500994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910052420.7A Active CN109788251B (en) 2019-01-21 2019-01-21 Video processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109788251B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460217A (en) * 2020-03-31 2020-07-28 苏州科达科技股份有限公司 Video retrieval system and method for operating a video retrieval system
CN112015535A (en) * 2020-08-28 2020-12-01 苏州科达科技股份有限公司 Task processing method and device, electronic equipment and storage medium
CN113992687A (en) * 2021-12-28 2022-01-28 浙江宇视科技有限公司 Intelligent service cluster scheduling method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2137595A2 (en) * 2007-03-12 2009-12-30 Broadband ITV, Inc. Converting, navigating and displaying video content uploaded from the internet to a digital tv video-on-demand platform
CN102681867A (en) * 2011-12-15 2012-09-19 中兴通讯股份有限公司 Video analysis task processing method and device
CN104331325A (en) * 2014-11-25 2015-02-04 深圳市信义科技有限公司 Resource exploration and analysis-based multi-intelligence scheduling system and resource exploration and analysis-based multi-intelligence scheduling method for video resources
CN106649721A (en) * 2016-12-22 2017-05-10 创新科存储技术有限公司 Method and device for duplication removal of file
CN109151059A (en) * 2018-09-27 2019-01-04 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2137595A2 (en) * 2007-03-12 2009-12-30 Broadband ITV, Inc. Converting, navigating and displaying video content uploaded from the internet to a digital tv video-on-demand platform
CN102681867A (en) * 2011-12-15 2012-09-19 中兴通讯股份有限公司 Video analysis task processing method and device
CN104331325A (en) * 2014-11-25 2015-02-04 深圳市信义科技有限公司 Resource exploration and analysis-based multi-intelligence scheduling system and resource exploration and analysis-based multi-intelligence scheduling method for video resources
CN106649721A (en) * 2016-12-22 2017-05-10 创新科存储技术有限公司 Method and device for duplication removal of file
CN109151059A (en) * 2018-09-27 2019-01-04 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460217A (en) * 2020-03-31 2020-07-28 苏州科达科技股份有限公司 Video retrieval system and method for operating a video retrieval system
CN112015535A (en) * 2020-08-28 2020-12-01 苏州科达科技股份有限公司 Task processing method and device, electronic equipment and storage medium
CN112015535B (en) * 2020-08-28 2023-09-08 苏州科达科技股份有限公司 Task processing method, device, electronic equipment and storage medium
CN113992687A (en) * 2021-12-28 2022-01-28 浙江宇视科技有限公司 Intelligent service cluster scheduling method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109788251B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN109120679B (en) Task allocation method and device
CN107566786A (en) A kind of method, apparatus and terminal device for obtaining monitor video
CN104301443B (en) A kind of method and system that end ability interface is called on web page
CN104683422B (en) Data transmission method and device
CN105718540B (en) Data loading method and device
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN109218133A (en) Network speed testing system, method, apparatus and computer readable storage medium
CN109788251A (en) Method for processing video frequency, device and storage medium
CN108228444B (en) Test method and device
CN108521353A (en) Processing method, equipment and the readable storage medium storing program for executing of positioning performance bottleneck
CN110297944B (en) Distributed XML data processing method and system
CN108875328B (en) Identity verification method, device and storage medium
CN112261094A (en) Message processing method and proxy server
CN112035182A (en) Kong-based API gateway monitoring method and system
CN107168844B (en) Performance monitoring method and device
US20200012545A1 (en) Event to serverless function workflow instance mapping mechanism
CN108733545B (en) Pressure testing method and device
CN117633102A (en) Block chain data integration method, device, computer equipment and storage medium
CN110599581A (en) Image model data processing method and device and electronic equipment
CN109710502A (en) Log transmission method, apparatus and storage medium
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN113746665B (en) Log data processing method, device and storage medium
CN112965767B (en) Job processing method and device, electronic equipment and storage medium
CN109032787A (en) A kind of method for allocating tasks and device
CN114928562A (en) Flow processing method and system for graph computing platform

Legal Events

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