CN107801106A - A kind of video segment intercept method and electronic equipment - Google Patents

A kind of video segment intercept method and electronic equipment Download PDF

Info

Publication number
CN107801106A
CN107801106A CN201710999787.0A CN201710999787A CN107801106A CN 107801106 A CN107801106 A CN 107801106A CN 201710999787 A CN201710999787 A CN 201710999787A CN 107801106 A CN107801106 A CN 107801106A
Authority
CN
China
Prior art keywords
moment
video
fragment
video file
instruction
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
CN201710999787.0A
Other languages
Chinese (zh)
Other versions
CN107801106B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710999787.0A priority Critical patent/CN107801106B/en
Publication of CN107801106A publication Critical patent/CN107801106A/en
Application granted granted Critical
Publication of CN107801106B publication Critical patent/CN107801106B/en
Active 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/635Overlay text, e.g. embedded captions in a TV program
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

The present invention provides a kind of video segment intercept method and electronic equipment.This method includes:Obtain and instruction is intercepted to the fragment of video file;Fragment interception instruction includes keyword;In playing video file, text identification is carried out to the barrage shown in video pictures corresponding to video file;If the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, the video segment played between the 3rd moment and the first moment is intercepted;3rd moment did sth. in advance the first preset duration than the first moment, and the first moment did sth. in advance the second preset duration than the second moment.It can be seen that in the present invention, the interception process of video segment is without relying on manual identified, and therefore, compared with prior art, the present invention can quickly and accurately intercept video segment.

Description

A kind of video segment intercept method and electronic equipment
Technical field
The present invention relates to communication technical field, more particularly to a kind of video segment intercept method and electronic equipment.
Background technology
With the continuous development of the communication technology, the popularization more and more higher of the electronic equipment such as smart mobile phone, tablet personal computer, this A little electronic equipments can provide colourful study and entertainment life for owning user, for example, these electronic equipments can carry For video playback capability.At present, there is the demand of interception video segment in user or video producer under many circumstances, such as cut The demand of the goal fragment in football match video file is taken, existing interception way generally relies on manual identified, i.e., artificial clear The video file is look to find goal fragment, and indicates that electronic equipment intercepts the goal fragment.It can be seen that existing video segment is cut Method is taken to need to rely on manual identified, intelligence degree is low, therefore existing video segment intercept method can not quickly and accurately be cut Take video segment.
The content of the invention
The embodiment of the present invention provides a kind of video segment intercept method and electronic equipment, is cut with solving existing video segment Method is taken to need to rely on manual identified, it is impossible to the problem of quickly and accurately intercepting video segment.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, the embodiment of the present invention provides a kind of video segment intercept method, methods described includes:
Obtain and instruction is intercepted to the fragment of video file;Wherein, the fragment interception instruction includes:Keyword;
When playing the video file, text is carried out to the barrage shown in video pictures corresponding to the video file Identification;
If the number for occurring the keyword between the first moment and the second moment in the barrage is more than preset times, interception The video segment played between 3rd moment and first moment;
Wherein, the 3rd moment does sth. in advance the first preset duration than first moment, and first moment is than described Two moment did sth. in advance the second preset duration.
Second aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes:
Acquisition module, the fragment for obtaining to video file intercept instruction;Wherein, wrapped in the fragment interception instruction Include:Keyword;
Identification module, for when playing the video file, to being shown in video pictures corresponding to the video file Barrage carry out text identification;
Interception module, if being more than for the number for the keyword occur in the barrage between the first moment and the second moment Preset times, intercept the video segment played between the 3rd moment and first moment;
Wherein, the 3rd moment does sth. in advance the first preset duration than first moment, and first moment is than described Two moment did sth. in advance the second preset duration.
The third aspect, the present invention implement to provide a kind of electronic equipment, including processor, memory, are stored in the storage On device and the computer program that can run on the processor, the computer program are realized during the computing device The step of video segment intercept method stated.
In the embodiment of the present invention, as long as being inputted to electronic equipment to video file, and carry and piece of video to be intercepted The fragment interception instruction of the associated keyword of the type of section, electronic equipment will be while the video file be played to video The barrage shown in picture carries out text identification, and intercepts corresponding video segment automatically according to text identification result.It can be seen that this In inventive embodiments, electronic equipment is automatically real based on the barrage shown in the keyword and video pictures in fragment interception instruction The interception of existing video segment, without relying on manual identified during the interception of video segment, therefore, compared with prior art, The embodiment of the present invention can quickly and accurately intercept video segment.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Take other accompanying drawings.
Fig. 1 is the first flow chart of video segment intercept method provided in an embodiment of the present invention;
Fig. 2 is second of flow chart of video segment intercept method provided in an embodiment of the present invention;
Fig. 3 is the first structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 4 is second of structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 5 is the third structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 6 is the 4th kind of structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 7 is the 5th kind of structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 8 is the hardware architecture diagram of another electronic equipment provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, those of ordinary skill in the art's every other implementation acquired under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Video segment intercept method provided in an embodiment of the present invention is illustrated first below.
It should be noted that video segment intercept method provided in an embodiment of the present invention is applied to electronic equipment.Specifically, The electronic equipment can be the electronic equipment held by personal user, such as:Mobile phone, tablet personal computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access electronic equipment (Mobile Internet Device, MID), wearable device (Wearable Device) etc.;Certainly, the electronic equipment can also be background server being equipped with by video producer etc..
Referring to Fig. 1, the first flow chart of video segment intercept method provided in an embodiment of the present invention is shown in figure.Such as Shown in Fig. 1, this method comprises the following steps:
Step 101, obtain and instruction is intercepted to the fragment of video file;Wherein, fragment interception instruction includes:Keyword.
Wherein, the video file that is directed to of fragment interception instruction both can be Online Video data (such as live class video counts According to) or local video data.
It should be noted that the keyword in fragment interception instruction can be associated with the type of video segment to be intercepted. Specifically, if the video file that fragment interception instruction is directed to is section of football match video file, and video segment to be intercepted is goal Fragment, then, the keyword in fragment interception instruction can be " goal ", " shooting " etc.;If fragment interception instruction is directed to Video file is singing contest video file, and video segment to be intercepted is the piece for existing a certain star welcome guest (such as Zhou Jielun) Section, then, the keyword in fragment interception instruction can be " Zhou Jielun ", " Jie Lun " etc..
It is understood that when getting the fragment interception instruction to video file, electronic equipment may be played The video file, now, electronic equipment directly performs follow-up step 102.Certainly, the fragment section to video file is being got During instruction fetch, electronic equipment may also not play the video file, and now, electronic equipment is broadcast to the video file automatically Put, and follow-up step 102 is performed in playing process.
Step 102, in playing video file, text is carried out to the barrage shown in video pictures corresponding to video file Identification.
At present, many video producers are provided which barrage function, and the function refers to that user can be real-time when watching video file Issue can be directly displayed at the function of the interactive comment on video pictures, and the function can bring many to video-see process Enjoyment.
For electronic equipment, by carrying out text knowledge to the barrage shown in video pictures corresponding to video file Not, it can recognize that each word that the barrage that each video pictures are shown includes, and at the time of record each word and occur.
Step 103, if the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, interception The video segment played between 3rd moment and the first moment.
Wherein, the 3rd moment did sth. in advance the first preset duration than the first moment, and it is pre- that the first moment than the second moment did sth. in advance second If duration.
Wherein, the first preset duration can be 20 seconds, 30 seconds or 40 seconds, and the second preset duration can be 3 minutes, 4 points Clock or 5 minutes, certainly, the value of the first preset duration and the second preset duration is not limited to several feelings listed above Condition, it can specifically be determined according to actual conditions, the embodiment of the present invention does not do any restriction to this.
The specific implementation process of the embodiment of the present invention is illustrated below by example X.
In example X, the first preset duration is 30 seconds, and the second preset duration is 5 minutes, and preset times are 50 times, electronics Equipment is the background server that video producer is equipped with.
First, the staff of video producer inputs to background server and the fragment of a certain section of football match video file is cut Instruction fetch, fragment interception instruction include keyword " goal ".After fragment interception instruction is obtained, background server is being broadcast While putting the section of football match video file, the barrage shown in video pictures corresponding to the section of football match video file is carried out Identification, to record the number for occurring " goal " this keyword in barrage.
It can be sent out it is understood that once there occurs goal event, many fanatic football fans in football match on barrage The interactive comment of cloth, these interaction comments can be included in " goal ", " scoring finally " and " so just scoring soon " etc. Hold, then, the number for occurring " goal " this keyword in the barrage shown within the short time after goal event occurs can be non- Chang Duo.Therefore, if by identification, background server determines 0 second 25 minutes (may be considered the first moment above) at 8 points extremely The number of appearance " goal " is in the barrage that 8 points 0 second 30 minutes (may be considered the second moment above) show in this 5 minutes 60 times (i.e. more than 50 times), it is believed that 8 points before 0 second 25 minutes, distance 8 point 25 minute plays in 0 second nearer period Video pictures in goal event be present.At this moment, background server is automatically with than 8 points the 3rd moment of 30 seconds ahead of time 0 second 25 minutes The video pictures that (i.e. 8: 30 24 :) plays are interception starting point, the video segment of a length of 30 seconds during interception.After that is, The video segment of platform server interception is 8 points of 00 25: 30 seconds 24 minutes to 8: video segments played.In general, football The duration of goal event is shorter in match, and therefore, the when video segment of a length of 30 seconds of background server interception can wrap Include complete goal fragment.
In the embodiment of the present invention, as long as being inputted to electronic equipment to video file, and carry and piece of video to be intercepted The fragment interception instruction of the associated keyword of the type of section, electronic equipment will be while the video file be played to video The barrage shown in picture carries out text identification, and intercepts corresponding video segment automatically according to text identification result.It can be seen that this In inventive embodiments, electronic equipment is automatically real based on the barrage shown in the keyword and video pictures in fragment interception instruction The interception of existing video segment, without relying on manual identified during the interception of video segment, therefore, compared with prior art, The embodiment of the present invention can quickly and accurately intercept video segment.
Referring to Fig. 2, second of flow chart of video segment intercept method provided in an embodiment of the present invention is shown in figure.Such as Shown in Fig. 2, this method comprises the following steps:
Step 201, obtain and instruction is intercepted to the fragment of video file;Wherein, fragment interception instruction includes:Keyword.
Wherein, the specific implementation process of step 201 will not be repeated here with reference to the explanation to step 101.
Step 202, if video file is Online Video file, judge that online viewing number is corresponding to Online Video file It is no to be more than or equal to default value;If so, step 203 is performed, if it is not, performing step 205.
Wherein, default value can be 8000,10000 or 15000, and certainly, the value of default value is not limited to This, can specifically determine, the present embodiment does not do any restriction to this according to actual conditions.
Step 203, in playing video file, text is carried out to the barrage shown in video pictures corresponding to video file Identification.
Step 204, if the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, interception The video segment played between 3rd moment and the first moment.
Wherein, the 3rd moment did sth. in advance the first preset duration than the first moment, and it is pre- that the first moment than the second moment did sth. in advance second If duration.
Wherein, step 203 to the specific implementation process of step 204 with reference to the explanation of step 102 to step 103, It will not be repeated here.
Step 205, prompt message is exported;Wherein, prompt message is used to prompt online viewing number to be less than default value.
Wherein, the display interface that prompt message can be in electronic equipment in the form of suspended frame is shown.
Step 206, judge that fragment interception whether is regained in the 3rd preset duration after exporting prompt message to be referred to Order, if so, performing step 203.
Wherein, the 3rd preset duration can be 3 seconds, 5 seconds or 10 seconds, certainly, the value of the 3rd preset duration not office It is limited to this, can be specifically determined according to actual conditions, the present embodiment does not do any restriction to this.
It should be noted that the present embodiment is particularly suitable for use in, electronic equipment is the feelings for the background server that video producer is equipped with Condition.
When it is implemented, the staff of video producer can be inputted to background server to a certain section of football match video text The fragment interception instruction of part.After background server obtains fragment interception instruction, if the section of football match video file is to regard online Frequency file, background server determines online viewing number corresponding to the section of football match video file first, and will determine Line watches number compared with default value.
If it is determined that online viewing number be more than or equal to default value, the people of the online viewing video file of this explanation Number is enough, then, it is believed that the football match is very concerned, therefore, fragment is carried out to the section of football match video file Interception has larger value.At this moment, background server in video pictures corresponding to the section of football match video file directly to showing The barrage shown carries out text identification, and carries out the interception of goal fragment automatically according to recognition result.
If it is determined that online viewing number be less than default value, the number of the online viewing video file of this explanation is inadequate It is more, then, it is believed that the football match is less concerned, therefore, fragment interception is carried out to the section of football match video file Value is little.At this moment, the background server not barrage directly to being shown in video pictures corresponding to the section of football match video file Text identification is carried out, but exports prompt message, it is default to prompt online viewing number to be less than to the staff of video producer The situation of numerical value.If staff still desires to carry out video segment to the section of football match video file after prompt message is known Interception, staff can input fragment interception instruction to background server again in 5 seconds after receiving prompt message. Afterwards, after the fragment re-entered interception instruction is obtained, background server can be to corresponding to the section of football match video file The barrage shown in video pictures carries out text identification, and carries out the interception of video segment automatically according to recognition result.If work Personnel are not intended to carry out the section of football match video file interception of video segment after prompt message is known, staff can be with Fragment interception instruction no longer is inputted to background server, so, background server will not carry out the interception of video segment.
It is Online Video file in video file as can be seen that in the present embodiment, and the feelings that online viewing number is insufficient Under condition, background server can prompt the situation to staff.
Alternatively, fragment interception instruction includes:At least two keywords.Specifically, fragment interception instruction includes The quantity of keyword can be two, three or more than three.
If the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, intercepted for the 3rd moment The video segment played between the first moment, including:
If the number for occurring any keyword in fragment interception instruction between the first moment and the second moment in barrage is more than Preset times, intercept the video segment played between the 3rd moment and the first moment.
The example X continued below in above-described embodiment illustrates to the specific implementation process of the present embodiment.
In this example, background server obtain fragment interception instruction include two keywords, be respectively " goal " and " shooting ".
While section of football match video file is played, background server is drawn to video corresponding to section of football match video file The barrage shown in face is identified.It is understood that there occurs during goal event in football match, the fanatic ball in part Fan, which may be more likely to the issue on barrage, includes contents such as " shootings ", " shooting finally " and " so just shooting soon " Interactive comment, then, appearance " shooting " this keyword in the barrage shown within the short time after goal event occurs Number can be very more.Therefore, if by identification, background server determines at 8 points in this 5 minutes 0 second 30 minutes 0 second 25 minutes to 8 points The number for occurring " goals " in the barrage of display is 30 times, but the number of appearance " shooting " is 65 times (i.e. more than 50 times), can be with Think goal thing be present in 8 points of video pictures before 0 second 25 minutes, being played in 0 second nearer period of distance 8 point 25 minute Part.At this moment, background server is automatically using 8 points of 30 seconds 24 minutes video pictures played to intercept starting point, a length of 30 seconds during interception Video segment.It can easily be seen that the video segment that background server this time intercepts also includes the goal fragment completed.
As can be seen that in the present embodiment, electronic equipment is at least two keywords in being instructed based on fragment interception to enter The interception of row video segment, so, electronic equipment can be truncated to all video segments of meet demand as far as possible.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction.
Assuming that the video file that fragment interception instruction is directed to is ball game video file, it is ball according to what is used in match The difference of type, there is difference for the scene information in fragment interception instruction.For example, if the ball used in match is football, It is football match that scene information in fragment interception instruction, which is used to characterize the match, and the scene information subsequently is referred to as into the first kind Scene information;If the ball used in match is hockey, the scene information in fragment interception instruction is used to characterize the match for song Rod ball is competed, and the scene information subsequently is referred to as into the second class scene information.
In the present embodiment, if the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, Before intercepting the video segment played between the 3rd moment and the first moment, this method also includes:
According to the corresponding relation between the scene information and duration prestored, the scene letter in fragment interception instruction is determined Duration corresponding to breath;
Using duration corresponding to the scene information in fragment interception instruction as the first preset duration.
The example A continued below in above-described embodiment illustrates to the specific implementation process of the present embodiment.
For the staff of video producer, its can be obtained ahead of time the goal fragment of 100 football matches and The goal fragment of 100 hockey tournaments.Assuming that the duration of the goal fragment of this 100 football matches be respectively M1, M2 ..., M100, the duration of the goal fragment of this 100 hockey tournaments be respectively N1, N2 ..., N100, pass through calculating M1 to M100 average value M and N1 to N100 average value N can be obtained.It is understood that M may be considered football ratio The average duration of the goal fragment of match, N may be considered the average duration of the goal fragment of hockey tournament, and staff can incite somebody to action The corresponding relation of first kind scene information and M, and the second class scene information and N corresponding relation are stored in background server.
Afterwards, background server, which obtains, intercepts instruction to the fragment of a certain section of football match video file, and fragment interception refers to Order can also include scene information corresponding to section of football match video file in addition to including " goal " this keyword, i.e., and the A kind of scene information.So, according to two corresponding relations that itself is stored, background server is capable of determining that first kind scene is believed A length of M when corresponding to breath, therefore, subsequently when carrying out the interception of goal fragment, each goal fragment of background server interception Duration (i.e. the first preset duration) be M.
As can be seen that in the present embodiment, electronic equipment can determine that corresponding first is pre- based on different scene informations If duration, to ensure that the duration of the video segment of interception is consistent with scene information.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction.
Assuming that the video file that fragment interception instruction is directed to is ball game video file, it is ball according to what is used in match The difference of type, there is difference for the scene information in fragment interception instruction.For example, if the ball used in match is football, It is football match that scene information in fragment interception instruction, which is used to characterize the match, and the scene information subsequently is referred to as into the first kind Scene information;If the ball used in match is hockey, the scene information in fragment interception instruction is used to characterize the match for song Rod ball is competed, and the scene information subsequently is referred to as into the second class scene information.
If the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, intercepted for the 3rd moment Before the video segment played between the first moment, this method also includes:
According to the corresponding relation between the scene information and number prestored, the scene letter in fragment interception instruction is determined Number corresponding to breath;
Using number corresponding to the scene information in fragment interception instruction as preset times.
Assuming that electronic equipment storage scene information and number between corresponding relation in, corresponding to first kind scene information Number is 50 times, and number corresponding to the second class scene information is 45 times, and electronic equipment obtains and a certain hockey tournament is regarded The fragment interception instruction of frequency file, in fragment interception instruction in addition to including " goal " this keyword, in addition to hockey stick Scene information, i.e. the second class scene information corresponding to ball match video file.So, electronic equipment is capable of determining that the second class field Number corresponding to scape information is 45 times, and when subsequently carrying out file identification to barrage to realize the interception of video segment, electronics is set It is standby to be specifically used as preset times using 45 times, therefore, occur " entering in the barrage that each goal fragment that electronic equipment intercepts is shown The number of this keyword of ball " is all higher than 45 times.
As can be seen that in the present embodiment, electronic equipment can determine corresponding preset times based on different scene informations, To ensure that preset times are consistent with scene information.
Alternatively, according to the corresponding relation between the scene information and number prestored, determine in fragment interception instruction Scene information corresponding to before number, this method also includes:
The multiple video files of scene information identical corresponding to acquisition, and play multiple video files of acquisition.
Wherein, electronic equipment obtain video file quantity be specifically as follows 100,200,300 or other Any number.
When playing any video file obtained, if receiving the identification instruction to any video file, determine any Target video fragment corresponding to video file;Wherein, when a length of first preset duration of target video fragment, target video fragment Starting video pictures be receive identification instruction at the time of video pictures;
Text identification is carried out to the barrage shown in video pictures corresponding to each target video fragment respectively, determines target word The total degree occurred in video pictures corresponding to all target video fragments;Wherein, target word is either objective video segment Any one word in the barrage shown in corresponding video pictures;
The most target word of the total degree occurred is chosen, and the target word for determining to select respectively is in each target video fragment The number occurred in the barrage shown in corresponding video pictures;
The number that numerical value is minimum in each number determined is chosen, scene corresponding to multiple video files of acquisition is stored and believes Cease the corresponding relation between the number that selects.
The specific implementation process of the present embodiment is illustrated with a specific example below.
Assuming that background server obtains 100 video files that corresponding scene information is first kind scene information, Be exactly that electronic equipment obtains 100 section of football match video files, it is assumed that this 100 section of football match video files be respectively D1, D2、……、D100。
Next, staff can to background server send play instruction so that background server respectively to D1 extremely D100 is played out.During D1 is played, if staff identifies the video pictures at a certain moment by manual type In there is goal picture, staff can input identification instruction to background server, so that background server will originate in D1 Picture is the goal picture, and when a length of first preset duration (such as 5 minutes) video segment be defined as target video fragment. During D2 to D100 is played, background server also can determine whether corresponding target video fragment.
After all target video fragments corresponding to D1 to D100 are determined, background server is to all target video fragments Text identification is carried out, with determine that each target word occurs in video pictures corresponding to all target video fragments total time Number, wherein, occur in the barrage that target word is as shown in video pictures corresponding to any target video fragment any one Word.
Assuming that the quantity of target word is 30, be respectively C1, C2 ..., C30, C1 go out in all target video fragments Existing total degree is X1, the total degree that C2 occurs in all target video fragments be X2 ..., C30 is in all target videos The total degree occurred in fragment is X30, also, the total degree X5 that C5 (such as " goal ") occurs is most, at this moment, background server The number that C5 occurs in each target video fragment can be determined respectively, and chooses the number that numerical value is minimum in the number determined. Assuming that the number that background server selects is 50 times, then, background server can store first kind scene information and 50 times Between corresponding relation.So, when the fragment interception instruction that background server subsequently obtains includes first kind scene information, According to the corresponding relation that itself is stored, background server is capable of determining that number corresponding to first kind scene information is 50 times, and Using 50 times as preset times.
As can be seen that the present embodiment can build the corresponding relation between scene information and number, in order to electronic equipment Corresponding preset times are determined after the fragment for carrying scene information interception instruction is obtained.
To sum up, compared with prior art, the present embodiment can quickly and accurately intercept video segment.
Referring to Fig. 3, the structural representation of electronic equipment provided in an embodiment of the present invention (i.e. electronic equipment 100) is shown in figure Figure.As shown in figure 3, electronic equipment 100 includes:
Acquisition module 31, the fragment for obtaining to video file intercept instruction;Wherein, fragment interception instruction includes: Keyword;
Identification module 32, in playing video file, to the barrage shown in video pictures corresponding to video file Carry out text identification;
Interception module 33, if being more than default time for occurring the number of keyword in barrage between the first moment and the second moment Number, intercept the video segment played between the 3rd moment and the first moment;
Wherein, the 3rd moment did sth. in advance the first preset duration than the first moment, and it is pre- that the first moment than the second moment did sth. in advance second If duration.
Alternatively, on the basis of embodiment illustrated in fig. 3, as shown in figure 4, electronic equipment 100 also includes:
Judge module 41, after in acquisition to the fragment interception instruction of video file, if video file is to regard online Frequency file, judge whether online viewing number is more than or equal to default value corresponding to Online Video file;If so, triggering is known Other module 32;If it is not, triggering output module 42;
Output module 42, for exporting prompt message;Wherein, prompt message is used to prompt online viewing number less than default Numerical value;
Trigger module 43, if referring to for regaining fragment interception in the 3rd preset duration after prompt message is exported Order, trigger identification module 32.
Alternatively, fragment interception instruction includes:At least two keywords;
Interception module 33, is specifically used for:
If the number for occurring any keyword in fragment interception instruction between the first moment and the second moment in barrage is more than Preset times, intercept the video segment played between the 3rd moment and the first moment.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction;
On the basis of embodiment illustrated in fig. 3, as shown in figure 5, electronic equipment 100 also includes:
First determining module 51, if being more than for the number for keyword occur in the barrage between the first moment and the second moment Preset times, before intercepting the video segment played between the 3rd moment and the first moment, according to the scene information prestored with Corresponding relation between duration, determine duration corresponding to the scene information in fragment interception instruction;
Second determining module 52, when being preset for duration corresponding to the scene information during fragment interception is instructed as first It is long.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction;
On the basis of embodiment illustrated in fig. 3, as shown in fig. 6, electronic equipment 100 also includes:
3rd determining module 61, if being more than for the number for keyword occur in the barrage between the first moment and the second moment Preset times, before intercepting the video segment played between the 3rd moment and the first moment, according to the scene information prestored with Corresponding relation between number, determine number corresponding to the scene information in fragment interception instruction;
4th determining module 62, for using number corresponding to the scene information in fragment interception instruction as preset times.
Alternatively, on the basis of embodiment illustrated in fig. 6, as shown in fig. 7, electronic equipment 100 also includes:
Playing module 71, for according to the corresponding relation between the scene information and number that prestore, determining fragment Before number corresponding to scene information in interception instruction, the multiple video files of scene information identical corresponding to acquisition, and broadcast Put multiple video files of acquisition;
5th determining module 72, for play obtain any video file when, if receiving to any video file Identification instruction, determine target video fragment corresponding to any video file;Wherein, target video fragment when it is a length of first pre- If duration, the starting video pictures of target video fragment are video pictures at the time of receiving identification instruction;
6th determining module 73, for being carried out respectively to the barrage shown in video pictures corresponding to each target video fragment Text identification, determine the total degree that target word occurs in video pictures corresponding to all target video fragments;Wherein, target word For any one word in the barrage that is shown in video pictures corresponding to either objective video segment;
7th determining module 74, for choosing the most target word of total degree occurred, and the mesh selected is determined respectively The number occurred in the barrage that mark word is shown in video pictures corresponding to each target video fragment;
Memory module 75, for choosing the number that numerical value is minimum in each number determined, store multiple videos text of acquisition Corresponding relation between scene information corresponding to part and the number selected.
It should be noted that electronic equipment 100 provided in an embodiment of the present invention can realize electricity in above method embodiment Each process that sub- equipment is realized, to avoid repeating, is repeated no more here.It can be seen that in the embodiment of the present invention, electronic equipment 100 It is the interception for realizing video segment automatically based on the barrage shown in the keyword and video pictures in fragment interception instruction, depending on Without relying on manual identified during the interception of frequency fragment, therefore, compared with prior art, the embodiment of the present invention can quickly, Video segment is intercepted exactly.
Referring to Fig. 8, a kind of electronic equipment (i.e. electronic equipment 200) of each embodiment of the realization present invention is shown in figure Hardware architecture diagram.As shown in figure 8, electronic equipment 200 includes but is not limited to:Radio frequency unit 801, mixed-media network modules mixed-media 802, audio Output unit 803, input block 804, sensor 805, display unit 806, user input unit 807, interface unit 808, deposit The parts such as reservoir 809, processor 810 and power supply 811.It will be understood by those skilled in the art that the electronics shown in Fig. 8 is set Standby structure does not form the restriction to electronic equipment 200, and electronic equipment 200 can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.In embodiments of the present invention, electronic equipment 200 includes but is not limited to Mobile phone, tablet personal computer, notebook computer, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 810, it is used for:
Obtain and instruction is intercepted to the fragment of video file;Wherein, fragment interception instruction includes:Keyword;
In playing video file, text identification is carried out to the barrage shown in video pictures corresponding to video file;
If the number for occurring keyword between the first moment and the second moment in barrage is more than preset times, intercepted for the 3rd moment The video segment played between the first moment;
Wherein, the 3rd moment did sth. in advance the first preset duration than the first moment, and it is pre- that the first moment than the second moment did sth. in advance second If duration.
It can be seen that in the embodiment of the present invention, electronic equipment 200 is based on the keyword and video pictures in fragment interception instruction The barrage of middle display realizes the interception of video segment automatically, without relying on manual identified during the interception of video segment, because This, compared with prior art, the embodiment of the present invention can quickly and accurately intercept video segment.
Alternatively, processor 810, it is additionally operable to:
After obtaining to the fragment interception instruction of video file, if video file is Online Video file, judge online Whether viewing number is more than or equal to default value online corresponding to video file;
If so, performing in playing video file, style of writing is entered to the barrage shown in video pictures corresponding to video file The step of this identification;
If it is not, output prompt message;Wherein, prompt message is used to prompt online viewing number to be less than default value;
If regaining fragment interception instruction in the 3rd preset duration after exporting prompt message, perform and playing video During file, the step of text identification is carried out to the barrage that is shown in video pictures corresponding to video file.
Alternatively, fragment interception instruction includes:At least two keywords;
Processor 810, is specifically used for:
If the number for occurring any keyword in fragment interception instruction between the first moment and the second moment in barrage is more than Preset times, intercept the video segment played between the 3rd moment and the first moment.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction;
Processor 810, is additionally operable to:
If the number for occurring keyword in barrage between the first moment and the second moment is more than preset times, when intercepting the 3rd Carve before the video segment that plays between the first moment, according to the corresponding relation between the scene information and duration prestored, Determine duration corresponding to the scene information in fragment interception instruction;
Using duration corresponding to the scene information in fragment interception instruction as the first preset duration.
Alternatively, scene information corresponding to video file is also included in fragment interception instruction;
Processor 810, is additionally operable to:
If the number for occurring keyword in barrage between the first moment and the second moment is more than preset times, when intercepting the 3rd Carve before the video segment that plays between the first moment, according to the corresponding relation between the scene information and number prestored, Determine number corresponding to the scene information in fragment interception instruction;
Using number corresponding to the scene information in fragment interception instruction as preset times.
Alternatively, processor 810, it is additionally operable to:
According to the corresponding relation between the scene information and number that prestore, the scene in fragment interception instruction is determined Before number corresponding to information, the multiple video files of scene information identical corresponding to acquisition, and play multiple videos of acquisition File;
When playing any video file obtained, if receiving the identification instruction to any video file, determine any Target video fragment corresponding to video file;Wherein, when a length of first preset duration of target video fragment, target video fragment Starting video pictures be receive identification instruction at the time of video pictures;
Text identification is carried out to the barrage shown in video pictures corresponding to each target video fragment respectively, determines target word The total degree occurred in video pictures corresponding to all target video fragments;Wherein, target word is either objective video segment Any one word in the barrage shown in corresponding video pictures;
The most target word of the total degree occurred is chosen, and the target word for determining to select respectively is in each target video fragment The number occurred in the barrage shown in corresponding video pictures;
The number that numerical value is minimum in each number determined is chosen, stores scene information corresponding to multiple video files of acquisition With the corresponding relation between the number that selects.
It should be understood that in the embodiment of the present invention, radio frequency unit 801 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 810;In addition, will be up Data are sent to base station.Generally, radio frequency unit 801 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 801 can also by wireless communication system and network and other set Standby communication.
Electronic equipment has provided the user wireless broadband internet by mixed-media network modules mixed-media 802 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 803 can be receiving by radio frequency unit 801 or mixed-media network modules mixed-media 802 or in memory 809 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 803 can also provide and electricity The audio output for the specific function correlation that sub- equipment 200 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 803 includes loudspeaker, buzzer and receiver etc..
Input block 804 is used to receive audio or video signal.Input block 804 can include graphics processor (Graphics Processing Unit, GPU) 8041 and microphone 8042, graphics processor 8041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 806.Picture frame after the processing of graphics processor 8041 can be deposited Storage is transmitted in memory 809 (or other storage mediums) or via radio frequency unit 801 or mixed-media network modules mixed-media 802.Mike Wind 8042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 801 by being converted in the case of telephone calling model.
Electronic equipment 200 also includes at least one sensor 805, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 8061, and proximity transducer can close when electronic equipment 200 is moved in one's ear Display panel 8061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification electronic equipment posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 806 is used for the information for showing the information inputted by user or being supplied to user.Display unit 806 can wrap Display panel 8061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 8061.
User input unit 807 can be used for the numeral or character information for receiving input, and produce the use with electronic equipment The key signals input that family is set and function control is relevant.Specifically, user input unit 807 include contact panel 8071 and Other input equipments 8072.Contact panel 8071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 8071 or in contact panel 8071 Neighbouring operation).Contact panel 8071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 810, receiving area Manage the order that device 810 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 8071.Except contact panel 8071, user input unit 807 can also include other input equipments 8072.Specifically, other input equipments 8072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 8071 can be covered on display panel 8061, when contact panel 8071 is detected at it On or near touch operation after, send processor 810 to determine the type of touch event, be followed by subsequent processing device 810 according to touch The type for touching event provides corresponding visual output on display panel 8061.Although in fig. 8, contact panel 8071 and display Panel 8061 is the part independent as two to realize the input of electronic equipment and output function, but in some embodiments In, can be integrated by contact panel 8071 and display panel 8061 and realize input and the output function of electronic equipment, it is specific this Place does not limit.
Interface unit 808 is the interface that external device (ED) is connected with electronic equipment 200.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 808 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in electronic equipment 200 can be used in the He of electronic equipment 200 Data are transmitted between external device (ED).
Memory 809 can be used for storage software program and various data.Memory 809 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 809 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 810 is the control centre of electronic equipment, utilizes each of various interfaces and the whole electronic equipment of connection Individual part, by running or performing the software program and/or module that are stored in memory 809, and call and be stored in storage Data in device 809, the various functions and processing data of electronic equipment are performed, so as to carry out integral monitoring to electronic equipment.Place Reason device 810 may include one or more processing units;Preferably, processor 810 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 810.
Electronic equipment 200 can also include the power supply 811 (such as battery) to all parts power supply, it is preferred that power supply 811 Can be logically contiguous by power-supply management system and processor 810, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, electronic equipment 200 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of electronic equipment, including processor 810, memory 809, is stored in On memory 809 and the computer program that can be run on the processor 810, the computer program are performed by processor 810 Each process of video segment intercept method embodiment above-mentioned Shi Shixian, and identical technique effect can be reached, to avoid weight It is multiple, repeat no more here.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake of above-mentioned video segment intercept method embodiment when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (13)

1. a kind of video segment intercept method, it is characterised in that methods described includes:
Obtain and instruction is intercepted to the fragment of video file;Wherein, the fragment interception instruction includes:Keyword;
When playing the video file, text knowledge is carried out to the barrage shown in video pictures corresponding to the video file Not;
If the number for occurring the keyword between the first moment and the second moment in the barrage is more than preset times, interception the 3rd The video segment played between moment and first moment;
Wherein, the 3rd moment does sth. in advance the first preset duration than first moment, when first moment is than described second Carve and do sth. in advance the second preset duration.
2. according to the method for claim 1, it is characterised in that described obtain intercepts instruction to the fragment of video file Afterwards, methods described also includes:
If the video file is Online Video file, judge whether online viewing number is big corresponding to the Online Video file In or equal to default value;
If so, described in performing when playing the video file, to the bullet shown in video pictures corresponding to the video file Curtain carries out the step of text identification;
If it is not, output prompt message;Wherein, the prompt message is used to prompt the online viewing number to be less than the present count Value;
If reacquiring the fragment interception instruction in the 3rd preset duration after exporting the prompt message, perform it is described When playing the video file, the step of text identification is carried out to the barrage shown in video pictures corresponding to the video file Suddenly.
3. according to the method for claim 1, it is characterised in that the fragment interception instruction includes:At least two is crucial Word;
If the number for occurring the keyword between first moment and the second moment in the barrage is more than preset times, interception The video segment played between 3rd moment and first moment, including:
If occurs the number of any keyword in the fragment interception instruction between the first moment and the second moment in the barrage More than preset times, the video segment played between the 3rd moment and first moment is intercepted.
4. according to the method any one of claim 1-3, it is characterised in that also include institute in the fragment interception instruction State scene information corresponding to video file;
If the number for occurring the keyword between first moment and the second moment in the barrage is more than preset times, interception Before the video segment played between 3rd moment and first moment, methods described also includes:
According to the corresponding relation between the scene information and duration prestored, the scene letter in the fragment interception instruction is determined Duration corresponding to breath;
Using duration corresponding to the scene information in fragment interception instruction as the first preset duration.
5. according to the method any one of claim 1-3, it is characterised in that also include institute in the fragment interception instruction State scene information corresponding to video file;
If the number for occurring the keyword between first moment and the second moment in the barrage is more than preset times, interception Before the video segment played between 3rd moment and first moment, methods described also includes:
According to the corresponding relation between the scene information and number prestored, the scene letter in the fragment interception instruction is determined Number corresponding to breath;
Using number corresponding to the scene information in fragment interception instruction as preset times.
6. according to the method for claim 5, it is characterised in that between scene information and number that the basis prestores Corresponding relation, before determining number corresponding to the scene information in fragment interception instruction, methods described also includes:
The multiple video files of scene information identical corresponding to acquisition, and play the multiple video file of acquisition;
When playing any video file obtained, if the identification instruction to any video file is received, it is determined that described Target video fragment corresponding to any video file;Wherein, when a length of first preset duration of the target video fragment, it is described The starting video pictures of target video fragment are video pictures at the time of receiving the identification instruction;
Text identification is carried out to the barrage shown in video pictures corresponding to each target video fragment respectively, determines target word in institute There is the total degree occurred in video pictures corresponding to target video fragment;Wherein, the target word is either objective video segment Any one word in the barrage shown in corresponding video pictures;
The most target word of the total degree occurred is chosen, and the target word for determining to select respectively corresponds in each target video fragment Video pictures in the number that occurs in the barrage that shows;
The number that numerical value is minimum in each number determined is chosen, stores scene information corresponding to the multiple video file of acquisition With the corresponding relation between the number that selects.
7. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Acquisition module, the fragment for obtaining to video file intercept instruction;Wherein, the fragment interception instruction includes:Close Keyword;
Identification module, for when playing the video file, to the bullet shown in video pictures corresponding to the video file Curtain carries out text identification;
Interception module, if for occurring the number of the keyword in the barrage between the first moment and the second moment more than default Number, intercept the video segment played between the 3rd moment and first moment;
Wherein, the 3rd moment does sth. in advance the first preset duration than first moment, when first moment is than described second Carve and do sth. in advance the second preset duration.
8. electronic equipment according to claim 7, it is characterised in that the electronic equipment also includes:
Judge module, after in acquisition to the fragment interception instruction of video file, if the video file is Online Video File, judge whether online viewing number is more than or equal to default value corresponding to the Online Video file;If so, triggering The identification module;If it is not, triggering output module;
Output module, for exporting prompt message;Wherein, the prompt message is used to prompt the online viewing number to be less than in advance If numerical value;
Trigger module, if referring to for reacquiring the fragment interception in the 3rd preset duration after the prompt message is exported Order, triggers the identification module.
9. electronic equipment according to claim 7, it is characterised in that the fragment interception instruction includes:At least two Keyword;
The interception module, is specifically used for:
If occurs the number of any keyword in the fragment interception instruction between the first moment and the second moment in the barrage More than preset times, the video segment played between the 3rd moment and first moment is intercepted.
10. according to the electronic equipment any one of claim 7-9, it is characterised in that in the fragment interception instruction also Including scene information corresponding to the video file;
The electronic equipment also includes:
First determining module, if big for occurring the number of the keyword in the barrage between the first moment and the second moment In preset times, before intercepting the video segment played between the 3rd moment and first moment, according to the scene prestored Corresponding relation between information and duration, determine duration corresponding to the scene information in the fragment interception instruction;
Second determining module, when being preset for duration corresponding to the scene information during fragment interception is instructed as first It is long.
11. according to the electronic equipment any one of claim 7-9, it is characterised in that in the fragment interception instruction also Including scene information corresponding to the video file;
The electronic equipment also includes:
3rd determining module, if big for occurring the number of the keyword in the barrage between the first moment and the second moment In preset times, before intercepting the video segment played between the 3rd moment and first moment, according to the scene prestored Corresponding relation between information and number, determine number corresponding to the scene information in the fragment interception instruction;
4th determining module, for using number corresponding to the scene information in fragment interception instruction as preset times.
12. electronic equipment according to claim 11, it is characterised in that the electronic equipment also includes:
Playing module, for according to the corresponding relation between the scene information and number that prestore, determining that the fragment is cut Before number corresponding to scene information in instruction fetch, the multiple video files of scene information identical corresponding to acquisition, and play The multiple video file obtained;
5th determining module, for play obtain any video file when, if receiving to any video file Identification instruction, determines target video fragment corresponding to any video file;Wherein, the target video fragment when it is a length of First preset duration, the starting video pictures of the target video fragment are that video at the time of receiving the identification instruction is drawn Face;
6th determining module, for carrying out text knowledge to the barrage shown in video pictures corresponding to each target video fragment respectively Not, the total degree that target word occurs in video pictures corresponding to all target video fragments is determined;Wherein, the target word is Any one word in the barrage shown in video pictures corresponding to either objective video segment;
7th determining module, for choosing the most target word of total degree occurred, and the target word for determining to select respectively exists The number occurred in the barrage shown in video pictures corresponding to each target video fragment;
Memory module, for choosing the number that numerical value is minimum in each number determined, store the multiple video file of acquisition Corresponding relation between corresponding scene information and the number selected.
13. a kind of electronic equipment, it is characterised in that including processor, memory is stored on the memory and can be described The computer program run on processor, the computer program are realized during the computing device as in claim 1-6 The step of video segment intercept method described in any one.
CN201710999787.0A 2017-10-24 2017-10-24 A kind of video clip intercept method and electronic equipment Active CN107801106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710999787.0A CN107801106B (en) 2017-10-24 2017-10-24 A kind of video clip intercept method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710999787.0A CN107801106B (en) 2017-10-24 2017-10-24 A kind of video clip intercept method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107801106A true CN107801106A (en) 2018-03-13
CN107801106B CN107801106B (en) 2019-10-15

Family

ID=61534441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710999787.0A Active CN107801106B (en) 2017-10-24 2017-10-24 A kind of video clip intercept method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107801106B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218835A (en) * 2018-09-30 2019-01-15 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of essence video
CN109587578A (en) * 2018-12-21 2019-04-05 麒麟合盛网络技术股份有限公司 The processing method and processing device of video clip
CN110012337A (en) * 2019-03-28 2019-07-12 联想(北京)有限公司 Video intercepting method, apparatus and electronic equipment
CN110401872A (en) * 2019-07-26 2019-11-01 青岛海尔科技有限公司 Event-prompting method, device and storage medium based on smart home operating system
WO2019223536A1 (en) * 2018-05-21 2019-11-28 Qingdao Hisense Electronics Co., Ltd. Display apparatus with intelligent user interface
CN110933511A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Video sharing method, electronic device and medium
CN111935503A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Short video generation method and device, electronic equipment and storage medium
CN112637618A (en) * 2020-12-08 2021-04-09 广州博冠信息科技有限公司 Live playback video generation method and device, electronic equipment and computer medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260082A (en) * 2013-05-21 2013-08-21 王强 Video processing method and device
CN106412702A (en) * 2015-07-27 2017-02-15 腾讯科技(深圳)有限公司 Video clip interception method and device
CN107241645A (en) * 2017-06-09 2017-10-10 成都索贝数码科技股份有限公司 A kind of method that splendid moment of scoring is automatically extracted by the subtitle recognition to video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260082A (en) * 2013-05-21 2013-08-21 王强 Video processing method and device
CN106412702A (en) * 2015-07-27 2017-02-15 腾讯科技(深圳)有限公司 Video clip interception method and device
CN107241645A (en) * 2017-06-09 2017-10-10 成都索贝数码科技股份有限公司 A kind of method that splendid moment of scoring is automatically extracted by the subtitle recognition to video

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019223536A1 (en) * 2018-05-21 2019-11-28 Qingdao Hisense Electronics Co., Ltd. Display apparatus with intelligent user interface
CN109218835A (en) * 2018-09-30 2019-01-15 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of essence video
US11140462B2 (en) 2018-09-30 2021-10-05 Baidu Online Network Technology (Beijing) Co., Ltd. Method, apparatus, and device for generating an essence video and storage medium
CN109587578A (en) * 2018-12-21 2019-04-05 麒麟合盛网络技术股份有限公司 The processing method and processing device of video clip
CN110012337A (en) * 2019-03-28 2019-07-12 联想(北京)有限公司 Video intercepting method, apparatus and electronic equipment
CN110401872A (en) * 2019-07-26 2019-11-01 青岛海尔科技有限公司 Event-prompting method, device and storage medium based on smart home operating system
CN110933511A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Video sharing method, electronic device and medium
CN111935503A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Short video generation method and device, electronic equipment and storage medium
CN112637618A (en) * 2020-12-08 2021-04-09 广州博冠信息科技有限公司 Live playback video generation method and device, electronic equipment and computer medium
CN112637618B (en) * 2020-12-08 2023-09-08 广州博冠信息科技有限公司 Live broadcast playback video generation method and device, electronic equipment and computer medium

Also Published As

Publication number Publication date
CN107801106B (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN107801106B (en) A kind of video clip intercept method and electronic equipment
CN108762640A (en) A kind of display methods and terminal of barrage information
CN107786827B (en) Video shooting method, video playing method and device and mobile terminal
CN108347704A (en) Information recommendation method and mobile terminal
CN108182019A (en) A kind of suspension control display processing method and mobile terminal
CN108509660A (en) A kind of broadcasting object recommendation method and terminal device
CN110465080A (en) Control method, apparatus, mobile terminal and the computer readable storage medium of vibration
CN107635110A (en) A kind of video interception method and terminal
CN107808084A (en) A kind of touch operation method and mobile terminal
CN107911735A (en) A kind of audio and video playing processing method, device and terminal
CN111124207B (en) Multimedia file playing method and electronic equipment
CN109857494A (en) A kind of message prompt method and terminal device
CN107678829A (en) A kind of application control method and mobile terminal
CN109862266A (en) A kind of image sharing method and terminal
CN109510940A (en) A kind of image display method and terminal device
CN107633850A (en) A kind of volume adjusting method and electronic equipment
CN110519699A (en) A kind of air navigation aid and electronic equipment
CN109151176A (en) A kind of information acquisition method and terminal
CN107992250A (en) A kind of display methods of electronic book documentary content, mobile terminal
CN109451178A (en) Video broadcasting method and terminal
CN115767164A (en) Information display method, client, electronic equipment and storage medium
CN109120853A (en) A kind of long exposure image image pickup method and terminal
CN108664288A (en) A kind of image interception method and mobile terminal
CN108769822A (en) A kind of image display method and terminal device
CN108319833A (en) A kind of control method and mobile terminal of application program

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