Summary of the invention
The inventors discovered that the video recorded during screen recording in the prior art may all be much to repeat,
If all preserved, a large amount of memory space can be occupied, the viewer's viewing experience that will also result in recorded video is bad.In addition, making
With client carry screen recording function can not self-defined screen recording beginning and the end time, make user can not flexibly it is right
Recording time is selected, and uses screen recording software, and user is needed to trigger the beginning and end of screen recording manually, is operated
It is complex, reduce the usage experience of user.
In view of the above problems, the basic thought of the present invention is:Calculate current screen recording process recording result with
Video variance between the recording result of other saved screen recording processes, when video variance is more than predetermined threshold value,
Preserve the recording of current screen recording process as a result, with the recording result of current recording process that is preserved with it is saved
Other screen recording processes recording result between there is certain otherness, avoid and similar recording result repeated to protect
It deposits.In addition, by can when a triggering condition is met be automatically begun to the trigger condition of the beginning of self-defined screen recording or end
Or terminating screen recording, trigger condition setting is flexible, need not also trigger manually, improves the convenience of screen recording operation.
After the basic principle for describing the present invention, lower mask body introduces the various non-limiting embodiment party of the present invention
Formula.
Application scenarios overview
It is the exemplary application scene that can be implemented within according to the embodiment of the present invention referring initially to Fig. 1, Fig. 1.
Wherein, user is interacted by the client 102 on user equipment with the server 101 for providing application service.This field skill
Art personnel are appreciated that application scenarios shown in FIG. 1 only and are one that embodiments of the present invention can be achieved wherein
Example.The scope of application of embodiment of the present invention is not limited by any aspect of the scene.
It should be noted that user equipment herein can be existing, researching and developing or research and development in the future, Neng Goutong
It crosses any type of wiredly and/or wirelessly connection (for example, Wi-Fi, LAN, honeycomb, coaxial cable etc.) and realizes client thereon
The 102 any user equipmenies interacted with server 101, including but not limited to:Existing, researching and developing or research and development in the future intelligence
It can mobile phone, non-smart mobile phone, tablet computer, laptop PC, desktop personal computer, minicomputer, medium-sized
Computer, mainframe computer etc..
It is also to be noted that server 101 herein be only it is existing, researching and developing or in the future research and development, can
Provide a user an example of the equipment of application service.Embodiments of the present invention are unrestricted in this regard.
Based on frame shown in FIG. 1, server 101 or client 102 can calculate the record of current screen recording process
Video variance between result processed and the recording result of other saved screen recording processes;In response to the video variance
More than predetermined threshold value, the recording result of the current screen recording process is preserved.
It is understood that in the application scenarios of the present invention, although the action description of embodiment of the present invention is served as reasons
Server 101 or client 102 execute, but the present invention is unrestricted in terms of executive agent, as long as performing the present invention
Action disclosed in embodiment.
Illustrative methods
With reference to the application scenarios of Fig. 1, described according to exemplary embodiment of the invention with reference to figure 2-4 for shielding
The method that curtain is recorded.It should be noted that above application scene is merely for convenience of understanding spirit and principles of the present invention and showing
Go out, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to it is applicable
Any scene.
For example, with reference to Fig. 2, the flow chart of one embodiment of method of screen recording in the present invention is shown, such as specifically may be used
To include the following steps:
Step 201:Calculate the recording result of current screen recording process and other saved screen recording processes
Record the video variance between result.
Screen recording records the full content on current display screen, the recording result one of screen recording process
As be saved as video format, all kinds of behaviour of user during screen recording can be reflected by the recording result recorded
Make.Screen recording process is generally completed by client, and user can be shielded by triggering the screen recording function in client
Curtain is recorded.In some possible embodiments, can be by client end response in the first preset trigger condition, automatic trigger starts
Screen recording process;And/or in response to the second preset trigger condition, automatic trigger terminates screen recording process.First is default tactile
Clockwork spring part and the second preset trigger condition can pre-save in the client, can also by client be arranged menu by with
Family is flexibly arranged.Client end response can be started or tied with automatic trigger in the first preset trigger condition or the second preset trigger condition
Beam screen recording, it is no longer necessary to which user is manually operated, and reduces the complexity of operation, while the first preset trigger condition or second
Preset trigger condition can be arranged by user flexibility, then improve the flexibility that triggering screen recording starts or terminates.
In practical applications, by taking client is game class client as an example, the first preset trigger condition is default tactile with second
Clockwork spring part can be related to game process data, for example, when game proceed in a certain office, distance close bottom also have certain distance or
The condition setting can be the first preset trigger condition, set this innings of game over to the second preset trigger condition by the time.
In the concrete realization, client can read game process data in real time, in representated by the game process data read
Appearance matches with the first preset trigger condition, then for client end response in the first preset trigger condition, automatic trigger starts screen record
Process processed, the content representated by the game process data read match with the second preset trigger condition, then client is rung
It should terminate screen recording process in the second preset trigger condition, automatic trigger, to realize automatically beginning to or tying for screen recording
Beam.
In some possible embodiments, the specific implementation of step 201 can be:It obtains during screen recording
Action type and the corresponding number of operations of the action type;It is corresponding according to the action type and the action type
Number of operations calculates the recording result of the recording result and other saved screen recording processes of current screen recording process
Between video variance.
Action type refers to operation item of the user conducted in screen recording process, for example, user is in game process
Used in movements in martial arts or operation, each action type correspond to different number of operations, recorded to calculate different screen
Video variance between journey needs to obtain the action type conducted in different screen recording process and corresponding operation time
Number.The action type and the corresponding number of operations of the action type during screen recording are obtained, it can be by client
Execution can also be executed by server.
In some possible embodiments, the action type when acquisition during screen recording and the operation class
The corresponding number of operations of type can be by client executing, the then specific implementation of the step:The client records current screen
Action type in recording process and the corresponding number of operations of the action type, and obtain saved other screens record
Action type during system and the corresponding number of operations of the action type.
Client can record action type and corresponding number of operations in current screen recording process, and other screens
Curtain recording process in action type and the corresponding number of operations of the action type can by client from it is local obtain, from
Other clients are obtained, and/or are obtained from server.Client is proceeded by triggering after current screen records, then is started pair
The action type for the operations that user is carried out and corresponding number of operations record, until triggering terminates screen record
System, to obtain the action type and the corresponding number of operations of the action type in current screen recording process.Meanwhile visitor
Family end can preserve action type and the corresponding number of operations of the action type during other screen recordings,
Other clients and server may also preserve action type and the action type during other screen recordings
Corresponding number of operations, then client can obtain saved its from local client, other clients and/or server
Action type during his screen recording and the corresponding number of operations of the action type.It is understood that in order to complete
Face obtains data, and client can obtain all saved other from local client, other clients and server
Action type during screen recording and the corresponding number of operations of the action type, so that the video difference subsequently carried out
Different calculating has more comprehensively data basis.
In some possible embodiments, the action type when acquisition during screen recording and the operation class
The corresponding number of operations of type is executed by server, then the specific implementation of the step can be:The server receives client note
Action type in the current screen recording process of record and the corresponding number of operations of the action type, and obtain saved
Other screen recordings during action type and the corresponding number of operations of the action type.
Client can record action type in current screen recording process and corresponding number of operations, server can
To receive action type and the corresponding number of operations in the current screen recording process that client uploads.Meanwhile server
The operation class having been saved in during other screen recordings in each client uploaded can be received from each client
Type and the corresponding number of operations of the action type, server local can also preserve the behaviour during other screen recordings
Make type and the corresponding number of operations of the action type, then server can have been protected from local, each client acquisition
Action type during other screen recordings deposited and the corresponding number of operations of the action type.It is understood that
For Overall Acquisition data, server can obtain all saved from local, each client being connected with server
Other screen recordings during action type and the action type corresponding number of operations, so as to subsequently be carried out
Video variance calculating has more comprehensively data basis.
After action type and the corresponding number of operations of action type during getting screen recording, calculate
Video difference between the recording result of current screen recording process and the recording result of other saved screen recording processes
It is different, it can also be executed by server by client executing.The recording result for the different screen recording process being calculated it
Between video variance it is bigger, represent record result between otherness it is bigger, otherwise represent record result between otherness it is small.
Specifically, in some possible embodiments, it can be according to the action type and the action type pair
The number of operations answered establishes other vectorial and saved screen recording processes of the action type of current screen recording process
Action type vector;Calculate other vectorial and saved screen recording mistakes of the action type of current screen recording process
The vectorial Euclidean distance of the action type vector of journey, recording result and saved other as current screen recording process
Video variance between the recording result of screen recording process.
If obtaining the action type involved by each screen recording process and corresponding number of operations, can obtain
Obtain current screen recording process and all operationss type involved during other saved screen recordings.For example, working as
Forth screen recording process is related to action type A, B, D, and respective operations number is 3,4,5 respectively, a certain other saved screens
Curtain recording process is related to action type A, C, D, and respective operations number is 2,3,6 respectively, another saved other screens record
Process processed is related to action type A, D, and respective operations number is 3,5 respectively, then can be informed in institute during each screen recording
The all operationss type being related to includes A, B, C, D.
Other vectorial and saved screen recording processes of the action type of current screen recording process are established later
Action type vector.Included number of elements is identical in the action type vector of different screen recording process, number of elements
For the quantity of all operationss type, element value is then the number of operations corresponding to action type.For example, current screen recording process
It is related to action type A, B, D, respective operations number is 3,4,5 respectively, and it is that C is corresponding that may further supplement and obtain action type
Number of operations is 0, then the action type vector of current screen recording process is an one-dimensional vector for including 4 elements, operation
The element value of type vector is respectively 3,4,0,5, and action type vector is [3,4,0,5].Similarly, a certain saved other
Screen recording process is related to action type A, C, D, and respective operations number is 2,3,6 respectively, then action type vector be [2,0,3,
6], another other saved screen recording processes are related to action type A, D, and respective operations number is 3,5 respectively, then operates
Type vector is [3,0,0,5].
The action type vector and each other saved screens for finally calculating separately current screen recording process are recorded
The vectorial Euclidean distance of the action type vector of process processed.Vectorial Euclidean distance is each corresponding element difference in two vectors
Evolution again after quadratic sum, still with above-mentioned data instance, calculate current screen recording process action type vector [3,4,0,
5] it is ((2-3) with the vectorial Euclidean distance of the action type of other saved screen recording processes vectorial [2,0,3,6]2+
(0-4)2+(3-0)2+(6-5)2)1/2≈5.2.Calculate the action type vectorial [3,4,0,5] of current screen recording process with it is another
The vectorial Euclidean distance of the action type of other saved screen recording processes vectorial [3,0,0,5] is ((3-3)2+(0-
4)2+(0-0)2+(5-5)2)1/2=4.By above description, the recording result of current screen recording process and other different screens
There can be different video variances between the recording result of curtain recording process.Acquisition current screen may further be calculated to record
The vectorial Euclidean distance of the action type vector of journey and the action type vector of each other saved screen recording processes,
As regarding between the recording result and the recording result of other saved screen recording processes of current screen recording process
Frequency difference is different.
There is different weights alternatively, it is also possible to which action type is arranged, the weight total value of each action type can be 1,
It can be to calculate weighing vector Euclidean distance to calculate vectorial Euclidean distance, that is, calculate the action type of current screen recording process to
The weighing vector Euclidean distance of amount and the action type vector of each other saved screen recording processes.Weighing vector Europe
Formula distance is evolution again after the weighted sum of squares of each corresponding element difference in two vectors, still with above-mentioned data instance,
In another example the weight that action type calculates A, B, C, D is respectively 0.1,0.2,0.5,0.2, then the operation of current screen recording process
The weighting of type vector [3,4,0,5] and the action type vectorial [2,0,3,6] of saved other screen recording processes to
Amount Euclidean distance is (0.1* (2-3)2+0.2*(0-4)2+0.5*(3-0)2+0.2*(6-5)2)1/2≈2.8.Calculate current screen
The action type vector of the action type of recording process vectorial [3,4,0,5] and another other saved screen recording processes
[3,0,0,5] weighing vector Euclidean distance is (0.1* (3-3)2+0.2*(0-4)2+0.5*(0-0)2+0.2*(5-5)2)1/2≈
1.8.The action type vector for obtaining current screen recording process and each other saved screens may further be calculated
The weighing vector Euclidean distance of the action type vector of recording process, as current screen recording process recording result with
Video variance between the recording result of other screen recording processes preserved.
Step 202:It is more than predetermined threshold value in response to the video variance, preserves the recording of the current screen recording process
As a result.
When video variance is more than predetermined threshold value, the recordings result of current screen recording process and saved other are represented
The recording result of screen recording process has larger difference, then can preserve the recording result of forth screen recording process.It can manage
Solution, if there is the recording of multiple other saved screen recording processes is as a result, then need current screen recording process
Recording result and the recording result of multiple other saved screen recording processes between video variance be all higher than it is default
Threshold value just preserves the recording of current screen recording process as a result, to ensure not having repetition between preserved recording result
Property.Preserving the recording result of current screen recording process can also be executed by client executing by server.
In some possible embodiments, when the recording result for preserving the current screen recording process is held by client
It goes, can be in the specific implementation of step 202:The client end response is more than predetermined threshold value in the video variance, local to protect
The recording of the current screen recording process is deposited as a result, and the recording result of the current screen recording process is uploaded to service
Device in the server so that preserve.
In some possible embodiments, when the recording result for preserving the current screen recording process is held by server
It goes, can be in the specific implementation of step 202:The server is more than predetermined threshold value in response to the video variance, triggers institute
It states client and preserves the recording of current screen recording process as a result, and being received from the client in locally preservation described current
The recording result of screen recording process.
In addition, in some possible embodiments, can also include:In response to the recording result watching request of user,
The recording result of the screen recording process preserved in the server is sent from the server to client.
The recording result of the screen recording process preserved can carry label, when identifying the generation of the screen recording process
Between or position, user can use user end to server send record result watching request, record result watching request in can
To carry label, the recording of the screen recording process preserved in server is watched as a result, for example, user can select to see with selection
See that a certain process section or the different of certain time period record result in a certain game.
In this way, according to the method for the screen recording of embodiment of the present invention, by the record for calculating current screen recording process
Video variance between result processed and the recording result of other saved screen recording processes is only more than in video variance pre-
If when threshold value, being preserved to the recording result of current screen recording process, it can ensure preserved screen recording mistake in this way
There is larger difference between the recording result of journey, avoid and the recording result largely repeated is preserved, save storage
Space, and for the viewer for recording result, the recording result preserved has diversity, to improve recording result
Viewability, bring better experience for user.In addition, client end response is default tactile in the first preset trigger condition or second
Clockwork spring part can be started or be terminated screen recording with automatic trigger, it is no longer necessary to and user is manually operated, and reduces the complexity of operation,
The first preset trigger condition or the second preset trigger condition can be arranged by user flexibility simultaneously, improve triggering screen recording and open
The flexibility begun or terminated.
In conjunction with concrete application example, above-described embodiment is further illustrated.For example, with reference to Fig. 3, this hair is shown
The flow chart of another embodiment of method of bright middle screen recording, such as can specifically include following steps:
Step 301:Client records action type and the corresponding operation of action type in current screen recording process
Number.
Step 302:Client obtains other saved screens from local client, other clients and/or server
Action type in curtain recording process and the corresponding number of operations of action type.
Step 303:Client calculates current screen and records according to action type and the corresponding number of operations of action type
Video variance between the recording result of process and the recording result of other saved screen recording processes.
Specifically, can establish current screen according to action type and the corresponding number of operations of action type and recorded
The action type vector of other vectorial and saved screen recording processes of the action type of journey;Current screen is calculated to record
The vectorial Euclidean distance of the action type vector of other vectorial and saved screen recording processes of the action type of process,
As regarding between the recording result and the recording result of other saved screen recording processes of current screen recording process
Frequency difference is different.
Step 304:Client end response is more than predetermined threshold value, the local record for preserving current screen recording process in video variance
Result processed.
Step 305:Client uploads onto the server the recording result of current screen recording process so that in server
It preserves.
In the present embodiment, the recording result of current screen recording process and other saved screen recording mistakes are calculated
Video variance between the recording result of journey is more than predetermined threshold value in response to video variance, preserves current screen recording process
Result is recorded by client executing, client by the recording result of the screen recording process finally preserved be sent to server into
Row preserves.
In another example referring to Fig. 4, the flow chart of the method another embodiment of screen recording in the present invention is shown, such as have
Body may include steps of:
Step 401:Client records action type and the corresponding operation of action type in current screen recording process
Number.
Step 402:Server receives action type and operation class in the current screen recording process of client record
The corresponding number of operations of type.
Step 403:Server obtains the behaviour during other saved screen recordings from local or each client
Make type and the corresponding number of operations of action type.
Step 404:Server calculates current screen and records according to action type and the corresponding number of operations of action type
Video variance between the recording result of process and the recording result of other saved screen recording processes.
Specifically, can establish current screen according to action type and the corresponding number of operations of action type and recorded
The action type vector of other vectorial and saved screen recording processes of the action type of journey;Current screen is calculated to record
The vectorial Euclidean distance of the action type vector of other vectorial and saved screen recording processes of the action type of process,
As regarding between the recording result and the recording result of other saved screen recording processes of current screen recording process
Frequency difference is different.
Step 405:Server is more than predetermined threshold value in response to video variance, and triggering client preserves current screen and recorded
The recording of journey is as a result, and in the recording result for locally preserving the current screen recording process received from client.
In the present embodiment, the action type in current screen recording process and the corresponding number of operations of action type
Record is needed by client executing, and server obtains action type and operation class in current screen recording process from client
The corresponding number of operations of type and behaviour during other saved screen recordings is obtained from local or other clients
Make type and the corresponding number of operations of action type, and calculate the recording result of current screen recording process with it is saved
Video variance between the recording result of other screen recording processes.It is understood that in practical applications, by server meter
The efficiency of calculation is better than the efficiency calculated by client.Finally it is more than predetermined threshold value in response to video variance, server needs to touch
Hair client preserves the recording of current screen recording process as a result, simultaneously being preserved simultaneously locally.
It should be noted that above-mentioned two embodiment is only the exemplary theory of the method for screen recording provided by the invention
Bright, embodiments of the present invention are not limited to this.
In this way, according to the method for the screen recording of embodiment of the present invention, by the record for calculating current screen recording process
Video variance between result processed and the recording result of other saved screen recording processes is only more than in video variance pre-
If when threshold value, being preserved to the recording result of current screen recording process, it can ensure preserved screen recording mistake in this way
There is larger difference between the recording result of journey, avoid and the recording result largely repeated is preserved, save storage
Space, and for the viewer for recording result, the recording result preserved has diversity, to improve recording result
Viewability, bring better experience for user.
Example devices
After describing the method for exemplary embodiment of the invention, next, with reference to figure 5 to the exemplary reality of the present invention
Apply mode, illustrate for the device of screen recording.
Referring to Fig. 5, the structure chart of one embodiment of device of screen recording in the present invention is shown, such as can specifically wrap
It includes:
Computing unit 501, the recording result for calculating current screen recording process are recorded with other saved screens
Video variance between the recording result of process processed.
Storage unit 502 preserves the current screen and recorded for being more than predetermined threshold value in response to the video variance
The recording result of journey.
In some possible embodiments, the computing unit may include:
Subelement 5011 is obtained, for obtaining action type and the action type correspondence during screen recording
Number of operations.
Computation subunit 5012, for according to the action type and the corresponding number of operations of the action type, meter
Calculate the video between the recording result and the recording result of other saved screen recording processes of current screen recording process
Difference.
In some possible embodiments, the computation subunit 5012 can be specifically used for:
According to the action type and the corresponding number of operations of the action type, current screen recording process is established
The action type vector of other vectorial and saved screen recording processes of action type;
Calculate the behaviour of other vectorial and saved screen recording processes of action type of current screen recording process
The vectorial Euclidean distance for making type vector, recording result and other saved screens as current screen recording process are recorded
Video variance between the recording result of process processed.
In some possible embodiments, described device can be applied to client, then the acquisition subelement 5011
It can be specifically used for:
The action type and the corresponding number of operations of the action type in current screen recording process are recorded, and is obtained
Action type during other saved screen recordings and the corresponding number of operations of the action type.
In some possible embodiments, described device can be applied to server, then the acquisition subelement 5011
It can also be specifically used for:
Receive the action type in the current screen recording process of client record and the corresponding behaviour of the action type
Make number, and obtains the action type during other saved screen recordings and the corresponding operation of the action type
Number.
In some possible embodiments, described device can be applied to client, then the storage unit 502 can be with
It is specifically used for:
It is more than predetermined threshold value, the local recording knot for preserving the current screen recording process in response to the video variance
Fruit, and the recording result of the current screen recording process is uploaded onto the server so that being preserved in the server.
In some possible embodiments, described device can be applied to server, then the storage unit 502 also may be used
To be specifically used for:
It is more than predetermined threshold value in response to the video variance, triggers the record that the client preserves current screen recording process
System is as a result, and in the recording result for locally preserving the current screen recording process received from the client.
In addition, in some possible embodiments, it can be automatic to touch in response to the first preset trigger condition by client
Hair starts screen recording process;And/or in response to the second preset trigger condition, automatic trigger terminates screen recording process.
In some possible embodiments, described device can be applied to server, then described device can also include:
Transmission unit sends institute for the recording result watching request in response to user from the server to client
State the recording result of the screen recording process preserved in server.
In this way, according to the method and device of the screen recording of embodiment of the present invention, recorded by calculating current screen
Video variance between the recording result of journey and the recording result of other saved screen recording processes, only in video variance
When more than predetermined threshold value, the recording result of current screen recording process is preserved, can ensure preserved screen in this way
There is larger difference between the recording result of recording process, avoid and the recording result largely repeated is preserved, save
Memory space, and for the viewer for recording result, the recording result preserved has diversity, to improve record
The viewability of result processed brings better experience for user.In addition, client end response is in the first preset trigger condition or second
Preset trigger condition can be started or be terminated screen recording with automatic trigger, it is no longer necessary to which user is manually operated, and reduces operation
Complexity, while the first preset trigger condition or the second preset trigger condition can be arranged by user flexibility, then improve triggering
The flexibility that screen recording starts or terminates.
It should be noted that although being referred to several units or subelement of the device of screen recording in above-detailed,
But it is this division be only exemplary it is not enforceable.In fact, according to the embodiment of the present invention, it is above-described
The feature and function of two or more units can embody in a unit.Conversely, the spy of an above-described unit
Function of seeking peace can be further divided into be embodied by multiple units.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or
Hint must execute these operations according to the particular order, or have to carry out shown in whole operation could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one
Step is decomposed into execution of multiple steps.
Although by reference to several spirit and principle that detailed description of the preferred embodimentsthe present invention has been described, it should be appreciated that, this
It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects
Combination is this to divide the convenience merely to statement to be benefited.The present invention is directed to cover appended claims spirit and
Included various modifications and equivalent arrangements in range.