CN109889883A - A kind of Wonderful time video recording method and device - Google Patents
A kind of Wonderful time video recording method and device Download PDFInfo
- Publication number
- CN109889883A CN109889883A CN201910070376.2A CN201910070376A CN109889883A CN 109889883 A CN109889883 A CN 109889883A CN 201910070376 A CN201910070376 A CN 201910070376A CN 109889883 A CN109889883 A CN 109889883A
- Authority
- CN
- China
- Prior art keywords
- video file
- time
- thread
- wonderful
- 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.)
- Pending
Links
Abstract
The embodiment of the invention discloses a kind of Wonderful time video recording method and devices, and wherein method includes: the first process of configuration, wherein the first process includes first thread and the second thread;It calls first thread to record the first video file of terminal plays, obtains the second video file;If obtaining first initial time and first finish time of the Wonderful time feature in the second video file by calling the second thread to detect in the second video file comprising Wonderful time feature;Wherein, Wonderful time feature is used to characterize the excellent characteristic of the second video file;It calls the second thread to be cut according to the first initial time and the first finish time of the Wonderful time feature to the second video file, obtains third video file.Implement the application can solve the Wonderful time Video Roundup existing in the prior art that can not obtain video file within first time, improves user experience by two parallel threads.
Description
Technical field
The present invention relates to technical field of video processing more particularly to a kind of Wonderful time video recording methods and device.
Background technique
With the fast development of present computer technology, user has various demands for game experiencing, wherein
More outstanding to be: user wants viewing oneself existing Wonderful time picture in gaming, for example, continuous several times are beaten opponents
Pictures such as (such as: two double hits are broken, three even decide the issue of the battle, five companies are peerless), also mean that and need to preserve in terminal from game video
The above-mentioned Wonderful time picture of middle acquisition.
In the prior art, the identification about the Wonderful time feature in video (for example, game video), generally comprises: first
First, terminal realizes the recording of video;Then, whether comprising Wonderful time feature in the video that terminal detection records.In reality
In it can be found that since the game video that terminal is recorded is that user inputs beginning record command to recording stop instruction
Between video, the video recorded it is general long in time, content is more, and some contents in video may
User loses interest in, and Wonderful time Video Roundup can not be obtained within first time so as to cause user.
Summary of the invention
The embodiment of the present invention provides a kind of Wonderful time video recording method and device can by two parallel threads
With realize present terminal play video file recording and simultaneously identify in the video file Wonderful time feature (namely
Identified when recording), so as to solve existing in the prior art not obtaining the excellent of video file within first time
Moment Video Roundup, improves user experience.
In a first aspect, the embodiment of the invention provides a kind of Wonderful time video recording methods, this method comprises:
Configure the first process, wherein first process includes first thread and the second thread;
It calls the first thread to record the first video file of terminal plays, obtains the second video file;
If being obtained by calling second thread to detect in second video file comprising Wonderful time feature
First initial time and first finish time of the Wonderful time feature in second video file;Wherein, described
Wonderful time feature is used to characterize the excellent characteristic of second video file;
Call second thread according to the first initial time and the first finish time of the Wonderful time feature to institute
It states the second video file to be cut, obtains third video file.
By implementing the embodiment of the present invention, terminal is by calling two parallel threads to realize the video of present terminal broadcasting
File is identified when recording, wherein for recording to the video file of terminal plays, the second thread is used for first thread
While first thread is recorded, Wonderful time feature of the identification in the video file under recording state, so as to solve
The Wonderful time Video Roundup certainly existing in the prior art that video file can not be obtained within first time, improves user's body
It tests.
Optionally, described that the first thread is called to record the first video file of terminal plays, obtain second
After video file, further includes:
If by calling second thread to be not detected in second video file comprising the Wonderful time feature,
Second video file is not saved then.
By implementing the embodiment of the present invention, terminal is calling second video text of the second thread identification under recording state
In the case where the Wonderful time feature of part, when Wonderful time feature is not detected, terminal abandons the second video file, to avoid
The memory of the long-term occupied terminal of the second video file is recorded early period, so as to improve the processing speed of terminal.
Optionally, if it is described by calling second thread to detect in second video file comprising Wonderful time
Feature then obtains first initial time and first finish time of the Wonderful time feature in second video file
Later, further includes:
The second initial time is obtained according to first initial time by calling second thread, and according to described
First finish time obtained for the second finish time;Wherein, first before second initial time is first initial time
Point at the time of in preset time period;Second finish time is in the second preset time period after first finish time
Moment point;
First initial time that second thread is called according to the Wonderful time feature and the first finish time
Second video file is cut, third video file is obtained, comprising:
Call second thread according to second initial time and second finish time to second view
Frequency file is cut, and third video file is obtained.
By implementing the embodiment of the present invention, terminal carried out by initial time to Wonderful time feature before to processing and
To processing after being carried out to finish time, the available place mat and later period state early period to Wonderful time feature, so as to
Guarantee the integrality of Wonderful time video.
Optionally, when the quantity of the third video file is M, M is the positive integer greater than 1;It is described to call described the
Two threads carry out second video file according to the first initial time and the first finish time of the Wonderful time feature
It cuts, after obtaining third video file, further includes:
It calls second thread to splice the M third video file, obtains the 4th video file.
It can be more to this when terminal gets multiple Wonderful time video small fragments by implementing the embodiment of the present invention
A Wonderful time video small fragment is spliced, to obtain the complete Wonderful time of the first currently playing video file of terminal
User experience can be improved in video clip.
Optionally, when including preset casting text, preset barrage text and preset in second video file
One of picture or it is a variety of when, include the Wonderful time feature in second video file;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, in second video file
Include the Wonderful time feature.
Second aspect, the embodiment of the invention provides a kind of Wonderful time video recording device, the apparatus may include:
Configuration unit, for configuring the first process, wherein first process includes first thread and the second thread;
Recording elements obtain for calling the first thread to record the first video file of terminal plays
Two video files;
Acquiring unit, for when including excellent by calling second thread to detect in second video file
When carving feature, at the end of obtaining first initial time of the Wonderful time feature in second video file and first
It carves;Wherein, the Wonderful time feature is used to characterize the excellent characteristic of second video file;
Unit is cut, for calling second thread according to the first initial time and first of the Wonderful time feature
Finish time cuts second video file, obtains third video file.
Optionally, described device further include:
Discarding unit, for by calling second thread to be not detected in second video file comprising described
When Wonderful time feature, second video file is not saved.
Optionally, described device further include:
Processing unit, when for by calling second thread to obtain the second starting according to first initial time
It carves, and the second finish time was obtained according to first finish time;Wherein, second initial time is the first
At the time of point in first preset time period before moment beginning;Second finish time is second after first finish time
Point at the time of in preset time period;
The cutting unit, is specifically used for:
Call second thread according to second initial time and second finish time to second view
Frequency file is cut, and third video file is obtained.
Optionally, when the quantity of the third video file is M, M is the positive integer greater than 1;Described device further include:
Concatenation unit obtains the 4th view for calling second thread to splice the M third video file
Frequency file.
Optionally, when including preset casting text, preset barrage text and preset in second video file
One of picture or it is a variety of when, include the Wonderful time feature in second video file;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, in second video file
Include the Wonderful time feature.
The third aspect, the embodiment of the invention provides another terminal, including processor, input equipment, output equipment and
Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing branch
The computer program that terminal executes the above method is held, the computer program includes program instruction, and the processor is configured to use
In calling described program instruction, the method for executing above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer storage medium
It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor
State the method that processor executes above-mentioned first aspect.
5th aspect, the embodiment of the invention provides a kind of computer program, the computer program includes program instruction,
Described program instructs the method for making the processor execute above-mentioned first aspect when being executed by a processor.
Implement the embodiment of the present invention, terminal is by calling two parallel threads to realize the video file of present terminal broadcasting
Identify when recording, wherein first thread is for recording the video file of terminal plays, and the second thread is for the
While one thread is recorded, Wonderful time feature of the identification in the video file under recording state is existing so as to solve
There is the Wonderful time Video Roundup that can not obtain video file present in technology within first time, improves user experience.
In addition, in the acquisition process of Wonderful time video, it is ensured that the integrality of Wonderful time video.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described.
Fig. 1 is a kind of schematic flow diagram of Wonderful time video recording method provided in an embodiment of the present invention;
Fig. 2 be another embodiment of the present invention provides a kind of Wonderful time video recording method schematic flow diagram;
Fig. 3 A is a kind of schematic block diagram of Wonderful time video recording device provided in an embodiment of the present invention;
Fig. 3 B is the schematic block diagram of another Wonderful time video recording device provided in an embodiment of the present invention;
Fig. 3 C is the schematic block diagram of another Wonderful time video recording device provided in an embodiment of the present invention;
Fig. 3 D is the schematic block diagram of another Wonderful time video recording device provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides a kind of terminal schematic block diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
In the specific implementation, terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but there is touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed at the terminal can be used such as touch sensitive surface at least one is public
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch
Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
Below with reference to the flow diagram of Wonderful time video recording method provided in an embodiment of the present invention shown in FIG. 1,
Illustrate the embodiment of the present invention is how to extract Wonderful time picture included in video, can include but is not limited to as
Lower step S101- step S104:
Step S101, the first process is configured, wherein first process includes first thread and the second thread.
Here, terminal can configure the first process for some concrete application program, and specifically, process is to be currently running
Application program example.
In a wherein possible implementation, the first process includes two parallel threads, for example, first thread and
Second thread.Specifically, here, thread is the code sequence executed in process context.
Step S102, it calls the first thread to record the first video file of terminal plays, obtains the second view
Frequency file.
Here, the first video file can be the game video file that user is playing, or user is in viewing
Video file (for example, segment of making laughs) etc., the embodiment of the present invention is not especially limited.
In a wherein embodiment, when the broadcasting of the first video file starts, first thread is called to regard to first
Frequency file is recorded.
In wherein another embodiment, in the first video file during broadcasting, when terminal receives user
When the record command of input, the first video file is recorded.
In wherein another embodiment, when terminal detects the data variation width of the first video file in Installed System Memory
When degree is greater than preset threshold, the first video file is recorded.
In practical recording process, terminal is by calling first thread to execute specified interface Media
Terminal screen data being played on is rendered into EGL by Projection.createVirtualDisplay, and then, it is fixed to start
When obtain screen data and rendered, and encoded, so as to realize the recording to the first video file.
If step S103, special comprising Wonderful time in second video file by calling second thread to detect
Sign, then obtain first initial time and first finish time of the Wonderful time feature in second video file;
Wherein, the Wonderful time feature is used to characterize the excellent characteristic of second video file.
In the specific implementation, terminal passes through while first video file of the first thread to terminal plays is recorded
It whether calls in the second video file of the second thread detection real-time recording comprising Wonderful time feature.Here, Wonderful time is special
It takes over for use in the excellent characteristic for characterizing the second video file.
In a wherein possible implementation, when in second video file include preset casting text, in advance
If barrage text and one of preset picture or it is a variety of when, it is special comprising the Wonderful time in second video file
Sign;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, in second video file
Include the Wonderful time feature.
In the specific implementation, the Wonderful time feature for including in the second video file may include: all-conquering, four Lian Chao
All, two double hits are broken, three even decide the issue of the battle, five consecutive victories generation, good luck, I will eat chicken etc., and the present invention is not especially limited.It is understood that
, in practical applications, since the type of video is different, the also difference of Wonderful time feature included in video.
Specifically, in practical applications, first video file difference of the preset casting text because of terminal plays.Example
Such as, when the first video file of terminal plays is user's game on line video file " eating chicken " game, the preset casting text
Word can be " good luck, I will eat chicken ".In another example when the first video file of terminal plays is funny video file (example
Such as, goddess and female man) when, which can be " goddess and female man ".
In practical applications, preset barrage text can be the comment data of user, for example, preset barrage text can
To include " old to move!", it also may include " too ox ", can also include " mind operation (alternatively, the operation of this wave is slipped very much) " etc.
Deng the embodiment of the present invention is not especially limited.
In practical applications, preset icon can be the figure for being greater than the threshold value set with the similarity of Target Photo
Piece.
In practical applications, the variation width that terminal passes through the data of the second video file cached in monitoring system memory
Degree, when terminal monitoring to the data variation amplitude be greater than preset threshold when, terminal determine in the second video file include it is excellent when
Carve feature.For example, data variation amplitude is greater than preset threshold in the time-continuing process that game is fought fiercely.In another example applause is lasting
In continuous situation, data variation amplitude is greater than preset threshold.It is understood that the performance state of data variation amplitude is a variety of
Multiplicity, it is within the scope of the present invention.
In a wherein possible implementation, optical character identification (Optical Character is can be used in terminal
Recognition, OCR) method detect the second video file in whether include Wonderful time feature.
Specifically, terminal can call the Software Development Kit (Software Development Kit, SDK) of OCR
Development interface recognition function, the video pictures of the second video file that above-mentioned terminal is extracted input above-mentioned recognition function,
Then the detection for Wonderful time feature included in the second video file may be implemented.
In a wherein possible implementation, terminal can detect the second video file by perceptual hash algorithm
In whether include Wonderful time feature.Specifically, when excellent in the video pictures that terminal detects in the second video file
When carving the distance between the cryptographic Hash of feature and the cryptographic Hash of target signature less than in the case where preset threshold, terminal determines second
It include Wonderful time feature in video file.
For example, terminal determine initial time of the Wonderful time feature in the second video file be 1 point 30 seconds, finish time
For 1 point 45 seconds.
In addition, in embodiments of the present invention, terminal is in the first initial time and the first finish time for determining Wonderful time
Later, terminal can obtain the second initial time according to first initial time by the second thread of calling, and according to institute
Stating for the first finish time obtained for the second finish time;Wherein, the before second initial time is first initial time
At the time of point in one preset time period;Second finish time is in the second preset time period after first finish time
At the time of point.
So, in this case, described to call second thread according to the first of the Wonderful time feature the starting
Moment and the first finish time cut second video file, obtain third video file, comprising:
Call second thread according to second initial time and second finish time to second view
Frequency file is cut, and third video file is obtained.
For example, terminal determines of Wonderful time feature (for example, good luck, I will eat chicken) in the second video file
One initial time be 31 points 30 seconds, the first finish time be 31 points 45 seconds.Later, terminal obtains second according to the first initial time
Initial time, and the second finish time was obtained according to the first finish time.In the specific implementation, true according to the first initial time
During fixed second initial time, terminal determines the second starting before the first initial time in the first preset time period when
It carves, terminal determined for the second finish time after the first finish time in the second preset time period.Here, the first preset time period
It is terminal setting with the second preset time period, when terminal detects in the first preset time period (or second preset time period) not
When comprising Wonderful time feature, corresponding video file data will not in first preset time period (or second preset time period)
It abandons, but is cached in system memory immediately, for example, the first preset time period is 5 seconds, that is, the first preset time period
For 31 points 30 seconds 25 seconds to 31 points;Second preset time period be 3 seconds namely the second preset time period be 31 points 45 seconds to 31 points
48 seconds.Then, terminal can determine the second initial time in above-mentioned first preset time period, and when above-mentioned second is default
Between determined for the second finish time in section.For example, 23 seconds in available to 31 points 25 seconds to 31 points 48 seconds this periods of terminal
Wonderful time video file.In another example 20 seconds in terminal available 31 points of 48 seconds 28 seconds to 31 points row unification periods
Wonderful time video file.It is understood that terminal carried out by initial time to Wonderful time feature before to processing with
And to processing after being carried out to finish time, the available place mat and later period state early period to Wonderful time feature, so as to
To guarantee the integrality of Wonderful time video.
Step S104, second thread is called to be terminated according to the first initial time of the Wonderful time feature and first
Moment cuts second video file, obtains third video file.
As previously mentioned, when terminal determine initial time of the Wonderful time feature in the second video file be 1 point 30 seconds, knot
When the beam moment is 1 point and 45 seconds, terminal cuts the second video file according to the initial time and finish time that determine, with
15 seconds third video files are obtained, here, third video file namely Wonderful time video file.
By implementing the embodiment of the present invention, terminal is by calling two parallel threads to realize the video of present terminal broadcasting
File is identified when recording, wherein for recording to the video file of terminal plays, the second thread is used for first thread
While first thread is recorded, Wonderful time feature of the identification in the video file under recording state, so as to solve
The Wonderful time Video Roundup certainly existing in the prior art that video file can not be obtained within first time, improves user's body
It tests.
It is understood that in embodiments of the present invention, when the quantity of the third video file is M, M is greater than 1
Positive integer;First initial time that second thread is called according to the Wonderful time feature and the first finish time
Second video file is cut, after obtaining third video file, further includes:
It calls second thread to splice the M third video file, obtains the 4th video file for example, M
When=3, terminal can splice this 3 video files, obtain the 4th video file.Here, the 4th video file has been
Whole Wonderful time video file.When terminal gets multiple Wonderful time video small fragments, when can be multiple excellent to this
It carves video small fragment to be spliced, to obtain the complete Wonderful time piece of video of the first currently playing video file of terminal
Section, can be improved user experience.
In wherein another possible implementation, after executing above-mentioned steps S102, terminal can also be held terminal
Row step S105, specifically, refer to Fig. 2, be another embodiment of the present invention provides Wonderful time video recording method stream
Journey schematic diagram, next, will be described in the specific implementation process of step S105:
If S105, being not detected in second video file by calling second thread comprising the Wonderful time
Feature does not save second video file then.
As previously mentioned, not including Wonderful time feature in the second video file (for example, preset casting when terminal detects
Text, preset barrage text etc.) when, terminal does not save the second video file.It should be noted that it is referred to herein not
Save the second video file be not abandon the second video file immediately, but, in terminal system memory cache certain predetermined when
The second long video file, after one section of small time interval, terminal can not just save the second video file.It needs
Bright, the size of the second video file of the certain time length cached in terminal system controls within preset range, for example,
5M.In this implementation, present terminal broadcasting is may be implemented by two parallel first threads and the second thread in terminal
Video file recording and identify Wonderful time feature while recording (namely while identify) in the video file simultaneously, when not
When detecting Wonderful time feature, terminal abandons the second video file, accounts for for a long time to avoid the second video file is recorded early period
With the memory of terminal, so as to improve the processing speed of terminal.
For the ease of the above method of the better implementation embodiment of the present invention, the embodiment of the present invention is also described and above-mentioned figure
Embodiment of the method described in 1- Fig. 2 belongs to a kind of structural representation of Wonderful time video recording device under same inventive concept
Figure.It is described in detail with reference to the accompanying drawing
As shown in Figure 3A, which may include: configuration unit 300, recording elements 302, acquiring unit 304 and cuts out
Cut unit 306;
Wherein, the configuration unit 300, for configure the first process, wherein first process include first thread and
Second thread;
The recording elements 302, for calling the first thread to record the first video file of terminal plays,
Obtain the second video file;
The acquiring unit 304, for being wrapped by calling second thread to detect in second video file
When feature containing Wonderful time, first initial time and of the Wonderful time feature in second video file are obtained
One finish time;Wherein, the Wonderful time feature is used to characterize the excellent characteristic of second video file;
The cutting unit 306, when for calling second thread according to the first of the Wonderful time feature the starting
It carves and the first finish time cut second video file, obtain third video file.
In a wherein possible implementation, as shown in Figure 3B, described device 30 can also include:
Discarding unit 308, for recording elements 302 call the first thread to the first video file of terminal plays into
Row is recorded, after obtaining the second video file, by calling second thread to be not detected in second video file
When comprising the Wonderful time feature, second video file is not saved.
In a wherein possible implementation, as shown in Figure 3 C, described device 30 can also include:
Processing unit 3010, for acquiring unit 304 by calling second thread to detect second video
Comprising obtaining first of the Wonderful time feature in second video file in the case where Wonderful time feature in file
Initial time and after the first finish time, by calling second thread to obtain second according to first initial time
Initial time, and the second finish time was obtained according to first finish time;Wherein, second initial time is described
At the time of point in first preset time period before first initial time;Second finish time be first finish time it
At the time of point in second preset time period afterwards;
The cutting unit 306, is specifically used for:
Call second thread according to second initial time and second finish time to second view
Frequency file is cut, and third video file is obtained.
In a wherein possible implementation, as shown in Figure 3D, described device 30 can also include:
Concatenation unit 3012 calls second thread according to the of the Wonderful time feature for cutting unit 306
One initial time and the first finish time cut second video file, after obtaining third video file, call
Second thread splices the M third video file, obtains the 4th video file.
Optionally, when including preset casting text, preset barrage text and preset in second video file
One of picture or it is a variety of when, include the Wonderful time feature in second video file;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, in second video file
Include the Wonderful time feature.
By implementing the embodiment of the present invention, terminal is by calling two parallel threads to realize the video of present terminal broadcasting
File is identified when recording, wherein for recording to the video file of terminal plays, the second thread is used for first thread
While first thread is recorded, Wonderful time feature of the identification in the video file under recording state, so as to solve
The Wonderful time Video Roundup certainly existing in the prior art that video file can not be obtained within first time, improves user's body
It tests.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention also it is corresponding provides it is another eventually
End is described in detail with reference to the accompanying drawing:
The structural schematic diagram of terminal provided in an embodiment of the present invention as shown in Figure 4, terminal 40 may include processor
401, memory 404 and communication module 405, processor 401, memory 404 and communication module 405 can pass through 406 phase of bus
It connects.Memory 404 can be high speed random access memory (Random Access Memory, RAM) memory, can also
To be non-volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 404 can
Choosing can also be that at least one is located remotely from the storage system of aforementioned processor 401.Memory 404 is for storing application program
Code, may include operating system, network communication module, Subscriber Interface Module SIM and data processor, and communication module 405 is used
In with external equipment carry out information exchange;Processor 401 is configured for calling the program code, executes following steps:
Configure the first process, wherein first process includes first thread and the second thread;
It calls the first thread to record the first video file of terminal plays, obtains the second video file;
If being obtained by calling second thread to detect in second video file comprising Wonderful time feature
First initial time and first finish time of the Wonderful time feature in second video file;Wherein, described
Wonderful time feature is used to characterize the excellent characteristic of second video file;
Call second thread according to the first initial time and the first finish time of the Wonderful time feature to institute
It states the second video file to be cut, obtains third video file.
Wherein, the processor 401 calls the first thread to record the first video file of terminal plays, obtains
To after the second video file, can also include:
If by calling second thread to be not detected in second video file comprising the Wonderful time feature,
Second video file is not saved then.
Wherein, if the processor 401 is used for by calling second thread to detect in second video file
Comprising Wonderful time feature, then obtain first initial time of the Wonderful time feature in second video file and
After first finish time, can also include:
The second initial time is obtained according to first initial time by calling second thread, and according to described
First finish time obtained for the second finish time;Wherein, first before second initial time is first initial time
Point at the time of in preset time period;Second finish time is in the second preset time period after first finish time
Moment point;
The processor 401 calls second thread according to the first initial time and first of the Wonderful time feature
Finish time cuts second video file, obtains third video file, may include:
Call second thread according to second initial time and second finish time to second view
Frequency file is cut, and third video file is obtained.
Wherein, when the quantity of the third video file is M, M is the positive integer greater than 1;The processor 401 calls
Second thread is according to the first initial time and the first finish time of the Wonderful time feature to the second video text
Part is cut, and after obtaining third video file, can also include:
It calls second thread to splice the M third video file, obtains the 4th video file.
Wherein, when in second video file include preset casting text, preset barrage text and preset figure
One of piece or it is a variety of when, include the Wonderful time feature in second video file;Or, when the second video text
It include the Wonderful time feature in second video file when amplitude of variation of data in part is greater than preset threshold.
It should be noted that the execution step of processor can refer to above-mentioned each method in terminal 40 in the embodiment of the present invention
The specific implementation of terminal operating in embodiment in Fig. 1 and Fig. 2 embodiment, which is not described herein again.
In the concrete realization, terminal 40 may include cell phone, tablet computer, personal digital assistant
(PersonalDigital Assistant, PDA), mobile internet device (Mobile Internet Device, MID), intelligence
The equipment that energy wearable device (such as smartwatch, Intelligent bracelet) various users can be used, the embodiment of the present invention are not made specifically
It limits.
It should be understood that the application scenarios that method provided by the embodiments of the present application can be applicable in are intended only as a kind of example, it is practical
It is not limited to this in.
It should also be understood that the application involved in first, second, third and various digital numbers only for convenience of description into
Capable differentiation, is not intended to limit scope of the present application.
It should be understood that term "and/or" in the application, a kind of only incidence relation for describing affiliated partner, expression can be with
There are three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three feelings of individualism B
Condition.In addition, character "/" in the application, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
In addition, magnitude of the sequence numbers of the above procedures are not meant to execute sequence in each embodiment of the application
It is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application
Journey constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
Those skilled in the art can be clearly understood that, for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above
Energy.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module and unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.
The unit as illustrated by the separation member, which can be, to be physically separated, and be may not be and is physically separated,
Component shown as a unit can be physical unit, may not be physical unit, it can in one place, Huo Zheye
It can be distributed over a plurality of network elements.It can select some or all of unit therein according to the actual needs to realize this
Apply for the purpose of example scheme.
In addition, each functional unit involved in each embodiment of the application can integrate in one processing unit,
It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units.Above-mentioned collection
At unit both can take the form of hardware realization, can also realize in the form of software functional units, the application is to this
It is not construed as limiting.
The embodiment of the invention also provides a kind of computer storage medium, finger is stored in the computer readable storage medium
It enables, when it runs on a computer or a processor, so that computer or processor execute side described in any of the above-described a embodiment
One or more steps in method.If each comprising modules of above-mentioned apparatus are realized in the form of SFU software functional unit and as only
Vertical product when selling or using, can store in the computer-readable storage medium, based on this understanding, this Shen
Substantially all or part of the part that contributes to existing technology or the technical solution can in other words for technical solution please
To be expressed in the form of software products, which is stored in a computer-readable storage medium.
Above-mentioned computer readable storage medium can be the internal storage unit of terminal described in previous embodiment, such as firmly
Disk or memory.Above-mentioned computer readable storage medium is also possible to the External memory equipment of above-mentioned terminal, such as the grafting of outfit
Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, above-mentioned computer readable storage medium can also both include the storage inside of above-mentioned terminal
Unit also includes External memory equipment.Above-mentioned computer readable storage medium is for storing above-mentioned computer program and above-mentioned end
Other programs and data needed for end.Above-mentioned computer readable storage medium can be also used for temporarily storing exported or
The data that will be exported.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, can pass through
Computer program is completed to instruct relevant hardware, and the program of the computer can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.And storage medium above-mentioned include: ROM,
The medium of the various program storage codes such as RAM, magnetic or disk.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.
Module in the embodiment of the present application device can be combined, divided and deleted according to actual needs.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the range of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of Wonderful time video recording method characterized by comprising
Configure the first process, wherein first process includes first thread and the second thread;
It calls the first thread to record the first video file of terminal plays, obtains the second video file;
If by calling second thread to detect in second video file comprising Wonderful time feature, obtain described in
First initial time and first finish time of the Wonderful time feature in second video file;Wherein, described excellent
Moment feature is used to characterize the excellent characteristic of second video file;
Call second thread according to the first initial time and the first finish time of the Wonderful time feature to described
Two video files are cut, and third video file is obtained.
2. the method according to claim 1, wherein described call the first thread to the first of terminal plays
Video file is recorded, after obtaining the second video file, further includes:
If by calling second thread to be not detected in second video file comprising the Wonderful time feature, no
Save second video file.
3. if the method according to claim 1, wherein described described by calling second thread to detect
Include Wonderful time feature in second video file, then obtains the of the Wonderful time feature in second video file
One initial time and after the first finish time, further includes:
The second initial time is obtained according to first initial time by calling second thread, and according to described first
Finish time obtained for the second finish time;Wherein, first is default before second initial time is first initial time
Point at the time of in period;At the time of second finish time is in the second preset time period after first finish time
Point;
It is described to call second thread according to the first initial time and the first finish time of the Wonderful time feature to institute
It states the second video file to be cut, obtains third video file, comprising:
Call second thread according to second initial time and second finish time to the second video text
Part is cut, and third video file is obtained.
4. the method according to claim 1, wherein M is big when the quantity of the third video file is M
In 1 positive integer;It is described that second thread is called to be terminated according to the first initial time of the Wonderful time feature and first
Moment cuts second video file, after obtaining third video file, further includes:
It calls second thread to splice the M third video file, obtains the 4th video file.
5. method according to claim 1-4, which is characterized in that when in second video file comprising default
One of casting text, preset barrage text and preset picture or it is a variety of when, include in second video file
The Wonderful time feature;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, include in second video file
The Wonderful time feature.
6. a kind of Wonderful time video recording device characterized by comprising
Configuration unit, for configuring the first process, wherein first process includes first thread and the second thread;
Recording elements obtain the second view for calling the first thread to record the first video file of terminal plays
Frequency file;
Acquiring unit, for special comprising Wonderful time in second video file by calling second thread to detect
When sign, first initial time and first finish time of the Wonderful time feature in second video file are obtained;
Wherein, the Wonderful time feature is used to characterize the excellent characteristic of second video file;
Unit is cut, for calling second thread to terminate according to the first initial time of the Wonderful time feature and first
Moment cuts second video file, obtains third video file.
7. device according to claim 6, which is characterized in that described device further include:
Discarding unit, for by calling second thread to be not detected in second video file comprising described excellent
When moment feature, second video file is not saved.
8. device according to claim 6, which is characterized in that described device further include:
Processing unit, for obtaining the second initial time according to first initial time by calling second thread, with
And the second finish time was obtained according to first finish time;Wherein, when second initial time is the described first starting
At the time of point in first preset time period before quarter;Second finish time is default for after first finish time second
Point at the time of in period;
The cutting unit, is specifically used for:
Call second thread according to second initial time and second finish time to the second video text
Part is cut, and third video file is obtained.
9. device according to claim 6, which is characterized in that when the quantity of the third video file is M, M is big
In 1 positive integer;Described device further include:
Concatenation unit obtains the 4th video text for calling second thread to splice the M third video file
Part.
10. according to the described in any item devices of claim 6-9, which is characterized in that when in second video file comprising pre-
If one of casting text, preset barrage text and preset picture or it is a variety of when, wrap in second video file
Containing the Wonderful time feature;Or,
When the amplitude of variation of the data in second video file is greater than preset threshold, include in second video file
The Wonderful time feature.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910070376.2A CN109889883A (en) | 2019-01-23 | 2019-01-23 | A kind of Wonderful time video recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910070376.2A CN109889883A (en) | 2019-01-23 | 2019-01-23 | A kind of Wonderful time video recording method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109889883A true CN109889883A (en) | 2019-06-14 |
Family
ID=66926885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910070376.2A Pending CN109889883A (en) | 2019-01-23 | 2019-01-23 | A kind of Wonderful time video recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109889883A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112632329A (en) * | 2020-12-18 | 2021-04-09 | 咪咕互动娱乐有限公司 | Video extraction method and device, electronic equipment and storage medium |
CN113225510A (en) * | 2021-04-30 | 2021-08-06 | 深圳创维-Rgb电子有限公司 | Television program recording method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593236A (en) * | 2013-11-14 | 2014-02-19 | 华为技术有限公司 | Computer equipment, method and device for scheduling service process |
CN104424116A (en) * | 2013-08-19 | 2015-03-18 | 中国科学院声学研究所 | Disk caching method and system for embedded browser |
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机系统有限公司 | Game video recording method and game video recording device |
US20160365116A1 (en) * | 2015-06-11 | 2016-12-15 | Yaron Galant | Video editing apparatus with participant sharing |
CN106803987A (en) * | 2015-11-26 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The acquisition methods of video data, device and system |
CN109120987A (en) * | 2018-09-20 | 2019-01-01 | 珠海市君天电子科技有限公司 | A kind of video recording method, device, terminal and computer readable storage medium |
-
2019
- 2019-01-23 CN CN201910070376.2A patent/CN109889883A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424116A (en) * | 2013-08-19 | 2015-03-18 | 中国科学院声学研究所 | Disk caching method and system for embedded browser |
CN103593236A (en) * | 2013-11-14 | 2014-02-19 | 华为技术有限公司 | Computer equipment, method and device for scheduling service process |
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机系统有限公司 | Game video recording method and game video recording device |
US20160365116A1 (en) * | 2015-06-11 | 2016-12-15 | Yaron Galant | Video editing apparatus with participant sharing |
CN106803987A (en) * | 2015-11-26 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The acquisition methods of video data, device and system |
CN109120987A (en) * | 2018-09-20 | 2019-01-01 | 珠海市君天电子科技有限公司 | A kind of video recording method, device, terminal and computer readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112632329A (en) * | 2020-12-18 | 2021-04-09 | 咪咕互动娱乐有限公司 | Video extraction method and device, electronic equipment and storage medium |
CN113225510A (en) * | 2021-04-30 | 2021-08-06 | 深圳创维-Rgb电子有限公司 | Television program recording method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110868631B (en) | Video editing method, device, terminal and storage medium | |
CN112153462B (en) | Video processing method, device, terminal and storage medium | |
US11679334B2 (en) | Dynamic gameplay session content generation system | |
CN110730387B (en) | Video playing control method and device, storage medium and electronic device | |
CN109120987A (en) | A kind of video recording method, device, terminal and computer readable storage medium | |
CN108874485A (en) | icon display method, device and terminal | |
CN107050850A (en) | The recording and back method of virtual scene, device and playback system | |
EP4300431A1 (en) | Action processing method and apparatus for virtual object, and storage medium | |
CN108776565B (en) | Animation display method and device, electronic equipment and storage medium | |
WO2009113052A2 (en) | Selection system for gaming | |
CN113453040B (en) | Short video generation method and device, related equipment and medium | |
CN104866275B (en) | Method and device for acquiring image information | |
US20180143741A1 (en) | Intelligent graphical feature generation for user content | |
AU2019229391A1 (en) | Method and system for generating interactive media content | |
CN104091608B (en) | A kind of video editing method and device based on ios device | |
US20230129509A1 (en) | Previewing method and apparatus for effect application, and device, and storage medium | |
CN109889883A (en) | A kind of Wonderful time video recording method and device | |
CN109966742A (en) | The method and device of rendering performance data is obtained in game running | |
KR20200099427A (en) | Method and system for editing moving picture based on context understanding using artificial intelligence | |
CN110507992A (en) | Technical support approach, device, equipment and storage medium in a kind of virtual scene | |
CN106879263A (en) | A kind of image pickup method and mobile device | |
CN107626105B (en) | Game picture display method and device, storage medium and electronic equipment | |
US10922867B2 (en) | System and method for rendering of an animated avatar | |
CN107592118A (en) | The coding/decoding method and device of Variable Length Code file | |
CN110442819A (en) | Data processing method, device, storage medium and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |