CN106998494A - A kind of video recording method and relevant apparatus - Google Patents
A kind of video recording method and relevant apparatus Download PDFInfo
- Publication number
- CN106998494A CN106998494A CN201710272363.4A CN201710272363A CN106998494A CN 106998494 A CN106998494 A CN 106998494A CN 201710272363 A CN201710272363 A CN 201710272363A CN 106998494 A CN106998494 A CN 106998494A
- Authority
- CN
- China
- Prior art keywords
- video
- event
- file
- object event
- moment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000008569 process Effects 0.000 claims abstract description 25
- 239000012634 fragment Substances 0.000 claims description 51
- 238000003780 insertion Methods 0.000 claims description 3
- 230000037431 insertion Effects 0.000 claims description 3
- 230000015572 biosynthetic process Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 7
- 230000006870 function Effects 0.000 description 10
- 230000008859 change Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- XDDAORKBJWWYJS-UHFFFAOYSA-N glyphosate Chemical compound OC(=O)CNCP(O)(O)=O XDDAORKBJWWYJS-UHFFFAOYSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
A kind of video recording method and relevant apparatus are disclosed in the embodiment of the present invention, the display content in the application interface to be recorded of application is recorded, the first video file is obtained;It is determined that event information configuration file corresponding with the first video file, determines to include the object event set of object event from event information configuration file;Determine object event each self-corresponding target video moment in object event set;According to target video moment and the first video file, the second video file is generated.Due to recording each event having in the first video file in event information configuration file, and each event corresponding video moment, object event each self-corresponding target video moment can be determined directly from event information configuration file, so as to according to the target video moment, editing generates the second video file from the first video file, the present invention generates the process of the second video file according to the target video moment, and without other Video processing softwares, mode of operation is simple.
Description
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of video recording method and relevant apparatus.
Background technology
Application program refers to operate in client, interacted by application interface with user, completes a certain or multinomial spy
Fixed operation, with the development of network technology, user not merely rests on the exact operations to application to the demand of application program
Aspect, user proposes higher requirement to experience in the application.Such as to aobvious in application program application interface
Show that content carries out video record, by video record function, user can preserve the display content in application interface.
Existing video recording method can only be according to user beginning record command, start to application program wait record application
Display content in interface is recorded, and according to the recording stop instruction of user, is terminated to treat and recorded aobvious in application interface
Show the recording of content, so as to obtain the video file of recording.
However, the particular moment corresponding video clipping in video file can not be come out in the prior art, if real
The video clipping of existing particular moment, in addition it is also necessary to come to carry out editing to the video file of generation by other Video processing softwares, because
This, realizes that the mode of particular moment video clipping is cumbersome in the prior art.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of video recording method and relevant apparatus, solves in the prior art
Realize the problem of mode of particular moment video clipping is cumbersome.
To achieve the above object, the embodiment of the present invention provides following technical scheme:
A kind of video recording method, including:
Display content in the application interface to be recorded of application is recorded, the first video file is obtained;
It is determined that remembering in event information configuration file corresponding with first video file, the event information configuration file
Record has each event in the first video file, and each event corresponding video moment;
Determination includes the object event set of object event from the event information configuration file;
Determine object event each self-corresponding target video moment in object event set;
According to object event each self-corresponding target video moment and the first video file, the second video file is generated.
A kind of video recording device, including:
Module is recorded, is recorded for the display content in the application interface to be recorded to application, obtains the first video
File;
Event information configuration file determining module, for determining event information configuration corresponding with first video file
Record has each event in the first video file, and the corresponding video of each event in file, the event information configuration file
Moment;
Object event set determining module, for determining to include object event from the event information configuration file
Object event set;
Target video moment determining module, for determining that each self-corresponding target of the object event in object event set is regarded
The frequency moment;
Second video file generation module, for being regarded according to object event each self-corresponding target video moment and first
Frequency file, generates the second video file.
Based on above-mentioned technical proposal, a kind of video recording method and relevant apparatus are disclosed in the embodiment of the present invention, including:
Display content in the application interface to be recorded of application is recorded, the first video file is obtained;It is determined that being regarded with described first
The corresponding event information configuration file of frequency file, determines to include the target of object event from the event information configuration file
Event sets;Determine object event each self-corresponding target video moment in object event set;According to object event each
Corresponding target video moment and the first video file, generate the second video file.Due to true in advance in the embodiment of the present invention
Having determined record in event information configuration file corresponding with first video file, the event information configuration file has first
Each event in video file, and each event corresponding video moment, therefore can be directly from event information configuration file
Object event each self-corresponding target video moment is determined, so that according to the target video moment, the editing from the first video file
Generate during generating the second video file according to the target video moment in the second video file, the application, without it
His Video processing software, mode of operation is simple.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of video recording method flow chart provided in an embodiment of the present invention;
Fig. 2 is another video recording method flow chart provided in an embodiment of the present invention;
Fig. 3 is another video recording method flow chart provided in an embodiment of the present invention;
Fig. 4 is another video recording method flow chart provided in an embodiment of the present invention;
Fig. 5 is another video recording method flow chart provided in an embodiment of the present invention;
Fig. 6 is a kind of setting interface schematic diagram of game class application software provided in an embodiment of the present invention;
Fig. 7 is another video recording method flow chart provided in an embodiment of the present invention;
Fig. 8 is a kind of interface schematic diagram of playing a game of playing provided in an embodiment of the present invention;
Fig. 9 is a kind of game class application software display interface schematic diagram provided in an embodiment of the present invention;
Figure 10 is a kind of structured flowchart of video recording device provided in an embodiment of the present invention;
Figure 11 is a kind of hardware block diagram of video recording device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of video recording method flow chart provided in an embodiment of the present invention, can be realized by terminal, terminal specifically may be used
Think the terminal devices such as PC, mobile phone or tablet personal computer, application software is installed thereon.Application software can be any type,
Such as game class application software, social class application software, shopping class application software etc..Reference picture 1, methods described can include:
Step S100, the display content in the application interface to be recorded of application is recorded, obtain the first video file;
It should be noted that starting in the embodiment of the present invention after application, into application interface, user is applied by triggering one
The corresponding video record button in interface, starts the video record function of the application interface, starts application circle of video record function
Face is application interface to be recorded, and any application interface that the embodiment of the present invention can be in the application or is set in certain application-specific interface
Video record button is put, does not do and has in setting video record button, the embodiment of the present invention in setting interface that also can be in the application
Body is limited.
Video record process in the embodiment of the present invention can be directed to the application interface of any application shown in the terminal
Recorded, such as can enter to the application interface game class application software, social class application software, shopping class application software
Row is recorded, and the embodiment of the present invention is not specifically limited.
Optionally, the display content in the application interface to be recorded of the application is recorded in the embodiment of the present invention,
Obtaining the process of the first video file can be:The beginning record command that user sends is received, according to the beginning record command,
The angle of view of terminal where obtaining user, the angle of view of terminal where from user, in the application interface to be recorded
Display content is recorded, corresponding first video file of angle of view of terminal where obtaining user.
It should be noted that the process recorded of the above-mentioned display content in the application interface to be recorded can be with
For:Respectively to the display content progress audio/video collection in the application interface to be recorded, the sound that audio/video is collected/
Video file carries out audio/video coding respectively, and audio/video is encoded to obtained file and carries out audio frequency and video multiplexing, sound is regarded
File after frequency is multiplexed is stored as the first video file.
Wherein, carry out that during Video coding audio/video coder (hardware coder or software encoder can be passed through
Deng) video file is encoded into H.264 form, audio coding into AAC forms, and sound is regarded by audio frequency and video Multiplexing module
Frequency these are only a kind of optional mode in the embodiment of the present invention according to the first video file for being multiplexed into MP4 forms, the present invention
It is not specifically limited in embodiment for audio/video coding form and audio frequency and video multiplexed format.
It should be noted that due to the different operating system of different terminals possible application, such as:Android operation system
Or IOS, for the gatherer process of video, for different operating system, acquisition mode is different, for example:Ios platform
It is that the view data in application interface to be recorded is obtained using OpenGL ES relevant interface;Android platform, below 5.0
System in, the view data in application interface to be recorded is obtained using the related interfaces of OpenGL ES;More than 5.0 is
In system, the view data in application interface to be recorded is obtained using the VirtualDisplay mirror of android system;Such as
Fruit is the android system that ROOT is crossed, and the SurfaceComposerClient interfaces provided by system, which are obtained, to be waited to record application
View data in interface.
In addition, for the gatherer process of audio, for different operating system, acquisition mode is also different, such as:IOS is grasped
Make to gather using AVAudioSession under system uses OpenSL to gather Mike under microphone voice, Android operation system
Sound of the wind sound.
Step S110, determination event information configuration file corresponding with first video file;
Record has each event in the first video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
Optionally, the process that the event information configuration file in the embodiment of the present invention can be generated in the first video file
In, generate simultaneously.
Each event in first video file refers to occurring the event in the first video file, can be answered for social class
The event changed with picture, word shown in software application interface, can also be void in game class application software scene of game
The event of the movement displaying change of anthropomorphic thing, for example:The fire change of virtual portrait, battlefield pair in shooting game scene
Certainly hitting for virtual portrait kills action change etc. in class scene of game.
It should be noted that the event information configuration file in the embodiment of the present invention can be stored in end side, can also
Server side is stored in, can be with when terminal determines event information configuration file corresponding with first video file
Directly obtained from server.
Step S120, determine from the event information configuration file to include the object event set of object event;
It should be noted that the object event in the embodiment of the present invention also refers to be identified with the mesh of unified predetermined mark
Mark event, can also for different user set have different user identify object event, can also be for user close
The type of the video content of note, is identified with the object event of different video mark, can also be and be identified with different game identifiers
Object event etc., the embodiment of the present invention is not specifically limited.
Step S130, the object event determined in object event set each self-corresponding target video moment;
Optionally, can be in event information configuration file in the embodiment of the present invention, the species of foundation object event, it is determined that
Object event each self-corresponding target video moment.
Step S140, foundation object event each self-corresponding target video moment and the first video file, generation second
Video file.
Optionally, foundation object event each self-corresponding target video moment and first disclosed in the embodiment of the present invention
Video file, the process of the second video file of generation can include:To the audio frequency and video at each moment in first video file
Content is identified;Obtain the audio-video frequency content before and after the target video moment in setting time section, generation in the first video file
Second video file.
Optionally, can be interior to setting time section before and after the target video moment in the first video file in the embodiment of the present invention
Video recorded, obtain the second video file;When can also be set to target video in the first video file around moment
Between video in section carry out editing, the second video file is obtained, when being set to target video in the first video file around moment
Between video in section carry out editing, obtaining the detailed process of the second video file can be:For the first video file, described
Editing time point corresponding with the target video moment is navigated in first video file, editing in the first video file is read
Time point corresponding audio-video document, then carries out audio frequency and video timestamp school to editing time point corresponding audio-video document respectively
Just, the audio-video document after being corrected to audio frequency and video timestamp is multiplexed, and obtains the second video file.
Optionally, special video effect processing can also be carried out to the second obtained video file in the embodiment of the present invention, for example:
Interleaving for any two video file in the second obtained video file inserts video segment set in advance, can also be right
The second obtained video file carries out the processing such as video filter or audio filtering, such as:Black and white effect process is carried out to video, to sound
Frequency carries out denoising, changed voice or stereo process etc., and the embodiment of the present invention is not specifically limited.
Due to being previously determined event information configuration file corresponding with first video file in the embodiment of the present invention,
Record has each event in the first video file, and each event corresponding video moment in the event information configuration file,
Therefore object event each self-corresponding target video moment can be determined directly from event information configuration file, so that according to mesh
The video moment is marked, editing is generated in the second video file, the application according to the generation of target video moment from the first video file
During second video file, without other Video processing softwares, mode of operation is simple.
Below, another video recording method process is specifically introduced in present example, video disclosed in Fig. 2 is refer to and records
Method flow diagram processed, this method can include:
Step S200, the display content in the application interface to be recorded of application is recorded, obtain the first video file;
Step S210, determination event information configuration file corresponding with first video file;
Record has each event in the first video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
Step S220, determine from the event information configuration file to include the object event set of object event;
Step S230, the object event determined in object event set each self-corresponding target video moment;
Step S240, the audio-video frequency content to each moment in first video file are identified;
In audio frequency and video in step S250, the first video file of acquisition before and after each target video moment in setting time section
Hold, generate each target video moment each self-corresponding audio frequency and video fragment;
Step S260, by each target video moment each self-corresponding audio frequency and video fragment, spelled according to default audio frequency and video fragment
Rule is connect, audio frequency and video fragment assembly is carried out, the second video file is generated.
Wherein, in the embodiment of the present invention, by each target video moment each self-corresponding audio frequency and video fragment, according to default sound
Video segment splicing rule, carries out audio frequency and video fragment assembly, and the process of the second video file of generation can include:In each target
Predetermined audio frequency and video fragment is inserted between video moment each self-corresponding audio frequency and video fragment;Each target video moment is each corresponded to
Audio frequency and video fragment and insertion predetermined audio frequency and video fragment, according to default audio frequency and video fragment assembly rule, carry out audio frequency and video piece
Section splicing, generates the second video file.
Below, another video recording method process is specifically introduced in present example, video disclosed in Fig. 3 is refer to and records
Method flow diagram processed, this method can include:
Step S300, the display content in the application interface to be recorded of application is recorded, obtain the first video file;
Step S310, determination event information configuration file corresponding with first video file;
Record has each event in the first video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
The type of the video content shown in step S320, the application interface to be recorded according to application, it is determined that being regarded with described
The corresponding event identifier of type of frequency content as object event event identifier;
Due in the video file with different video content, different types of event can be corresponded to, for example:Shooting
Corresponding event may change for the fire of virtual portrait in game video file, and battlefield is fought to the finish in class game video file
Corresponding event may kill action change etc. for hitting for virtual portrait, and the embodiment of the present invention is not specifically limited.
Step S330, from the event information configuration file, it is determined that corresponding with the event identifier of the object event
Object event, forms object event set;
Step S340, the object event determined in object event set each self-corresponding target video moment;
Step S350, foundation object event each self-corresponding target video moment and the first video file, generation second
Video file.
It should be noted that except by the way of object event set is determined in above-described embodiment in the embodiment of the present invention
Outside, object event set can also be determined in the embodiment of the present invention in the following way, below, specifically it is situated between in present example
Continue another video recording method process, refer to video recording method flow chart disclosed in Fig. 4, and this method can include:
Step S400, the display content in the application interface to be recorded of application is recorded, obtain the first video file;
Step S410, determination event information configuration file corresponding with first video file;
Record has each event in the first video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
Step S420, the type according to application, obtain event identifier corresponding with the type of the application and are used as target thing
The event identifier of part;
Due in the video file with different application type, different types of event can be corresponded to, for example:Social class
It is corresponding in the displaying that may change using corresponding event in video file for picture or word, game class application video file
Event may act the displaying of change for virtual portrait, and the embodiment of the present invention is not specifically limited.
Step S430, from the event information configuration file, it is determined that corresponding with the event identifier of the object event
Object event, forms object event set;
Step S440, the object event determined in object event set each self-corresponding target video moment;
Step S450, foundation object event each self-corresponding target video moment and the first video file, generation second
Video file.
It should be noted that except by the way of object event set is determined in above-described embodiment in the embodiment of the present invention
Outside, object event set can also be determined in the embodiment of the present invention in the following way, below, specifically it is situated between in present example
Continue another video recording method process, refer to video recording method flow chart disclosed in Fig. 5, and this method can include:
Step S500, the display content in the application interface to be recorded of application is recorded, obtain the first video file;
Step S510, determination event information configuration file corresponding with first video file;
Record has each event in the first video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
Step S520, the triggering selection according to user, obtain event identifier corresponding with the triggering selection of the user and make
For the event identifier of object event;
When there are multiple events in the first video file, trigger action that can be according to user, select with
The corresponding event identifier of trigger action of user as object event event identifier, for that in game class video file, can deposit
Change in the action of many virtual portraits, for example:Fly, run, hitting and kill, treat, laughing etc., triggering that can be according to user
Selection, the mark for obtaining above event corresponding with the triggering selection of the user is used as the event identifier of object event.
Step S530, from the event information configuration file, it is determined that corresponding with the event identifier of the object event
Object event, forms object event set;
Step S540, the object event determined in object event set each self-corresponding target video moment;
Step S550, foundation object event each self-corresponding target video moment and the first video file, generation second
Video file.
Below, by taking a specific game class application software as an example, describe in detail the embodiment of the present invention disclosed in trip
Display content in class application software of playing carries out the process of video record:
As shown in fig. 6, starting the game class application software, at the setting interface of the game class application software, video is opened
(king's moment) function is recorded, is opened after " king's moment " function, it will records the featured videos at king's moment, can record automatically
The splendid moment such as " three kill ", " five kill " in system battle, and Video Roundup is trimmed into, wherein, " three kill ", " five kill " they are the game class
Predetermined instruction in application software " king's moment ", user's triggering " three kill ", " five kill " logic, that is, trigger predetermined instruction;Specifically
Video record process refer to video recording method flow chart disclosed in Fig. 7, this method can include:
Step S600, open after video record function, played a game interface into game;
It should be noted that video record function in the embodiment of the present invention is played a game boundary to record the game shown such as Fig. 8
Display content in face.
Step S610, judge whether terminal internal memory is sufficient, if it is, performing step S620;Otherwise do not start recording, carry
Show that user's space is not enough.
Step S620, with certain speed the picture on terminal screen is intercepted and recorded, where obtaining user
The game video file of terminal;
Step S630, determination event information configuration file corresponding with game video file;
Record has each event in game video file in the event information configuration file, and each event is corresponding regards
The frequency moment.
Step S640, the storage that obtained game video file is stored in terminal with corresponding event information configuration file
In equipment, until end of game, terminate to record;
Step S650, judge whether to need editing Wonderful time, if it is, step S660 is performed, otherwise, by recording
Game video file is deleted with corresponding event information configuration file in the storage device of terminal;
In game over, it is switched in the interface shown such as Fig. 9, in addition to the military success for showing each user, right
Answer under video icon, user can choose whether editing Wonderful time by " abandoning " and " generation " button.
Step S660, judge to record whether normal termination, if it is, performing step S670;Otherwise prompting user records
Failure;
Step S470, determination " three kill ", the corresponding Wonderful time of " five kill " object event in game video file;
Step S680, foundation " three kill ", the corresponding Wonderful time of " five kill " object event are cut to game video file
Volume, obtain featured videos clip files.
In an assembly process, all hit can be killed the video segment editings of first 5 seconds and latter 5 seconds and is come out, form excellent regards
Frequency clip files.
Video recording device provided in an embodiment of the present invention is introduced below, video recording device described below,
Can be with above-described video recording method mutually to should refer to.Video recording device described below, it is believed that be to realize
Video recording method provided in an embodiment of the present invention, the functional module framework of required setting.
Figure 10 is the structured flowchart of video recording device provided in an embodiment of the present invention, and the device can be applied to terminal, is joined
According to Figure 10, the device can include:
Module 100 is recorded, is recorded for the display content in the application interface to be recorded to application, is obtained first and regard
Frequency file;
Event information configuration file determining module 110, for determining event information corresponding with first video file
Record has each event in the first video file in configuration file, the event information configuration file, and each event is corresponding
The video moment;
Object event set determining module 120, for determining to include target thing from the event information configuration file
The object event set of part;
Target video moment determining module 130, for determining each self-corresponding mesh of the object event in object event set
Mark the video moment;
Second video file generation module 140, for according to object event each self-corresponding target video moment and the
One video file, generates the second video file.
The object event set determining module includes:
First event identifier determining module, for the class of the video content shown in the application interface to be recorded according to application
Type, it is determined that event identifier of the event identifier corresponding with the type of the video content as object event;
First object event sets formation module, for from the event information configuration file, it is determined that with the target
The corresponding object event of event identifier of event, forms object event set.
The object event set determining module includes:
Second event identifies determining module, for the type according to application, obtains thing corresponding with the type of the application
Part identifies the event identifier as object event;
Second object event set forms module, for from the event information configuration file, it is determined that with the target
The corresponding object event of event identifier of event, forms object event set.
The object event set determining module includes:
3rd event identifier determining module, for the triggering selection according to user, obtains the triggering selection with the user
Corresponding event identifier as object event event identifier;
3rd object event set forms module, for from the event information configuration file, it is determined that with the target
The corresponding object event of event identifier of event, forms object event set.
The second video file generation module includes:
First audio-video frequency content identification module, enters for the audio-video frequency content to each moment in first video file
Row identification;
Second video file generates submodule, for setting time before and after the target video moment in the first video file of acquisition
Audio-video frequency content in section, generates the second video file.
The second video file generation module includes:
Second audio-video frequency content identification module, enters for the audio-video frequency content to each moment in first video file
Row identification;
Audio frequency and video fragment generation module, for setting time before and after each target video moment in the first video file of acquisition
Audio-video frequency content in section, generates each target video moment each self-corresponding audio frequency and video fragment;
Audio frequency and video fragment assembly module, for by each target video moment each self-corresponding audio frequency and video fragment, according to pre-
If audio frequency and video fragment assembly is regular, audio frequency and video fragment assembly is carried out, the second video file is generated.
The audio frequency and video fragment assembly module includes:
Predetermined audio frequency and video fragment inserts module, between each target video moment each self-corresponding audio frequency and video fragment
Insert predetermined audio frequency and video fragment;
Audio frequency and video fragment assembly submodule, for by each target video moment each self-corresponding audio frequency and video fragment and insert
The predetermined audio frequency and video fragment entered, according to default audio frequency and video fragment assembly rule, carries out audio frequency and video fragment assembly, generates the second video
File.
Optionally, video recording device can be terminal, and above-described module, unit can be arranged at video record dress
Put interior functional module.Figure 11 shows the hardware block diagram of video recording device, reference picture 11, and video recording device can be with
Including:Processor 1, communication interface 2, memory 3 and communication bus 4;Wherein processor 1, communication interface 2, memory 3 pass through logical
Letter bus 4 completes mutual communication;Optionally, communication interface 2 can be the interface of communication module, the interface of such as wifi module
Or the interface of bluetooth module;
Processor 1, for configuration processor;Memory 3, for depositing program;Program can include program code, the journey
Sequence code includes computer-managed instruction;
Processor 1 is probably a central processor CPU, or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or it is arranged to implement one or more integrated electricity of the embodiment of the present invention
Road;Memory 3 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile
Memory), for example, at least one magnetic disk storage.
Wherein, program can be specifically for:
Display content in the application interface to be recorded of application is recorded, the first video file is obtained;
It is determined that remembering in event information configuration file corresponding with first video file, the event information configuration file
Record has each event in the first video file, and each event corresponding video moment;
Determination includes the object event set of object event from the event information configuration file;
Determine object event each self-corresponding target video moment in object event set;
According to object event each self-corresponding target video moment and the first video file, the second video file is generated.
In summary:
A kind of video recording method and relevant apparatus are disclosed in the embodiment of the present invention, including:Recording should be treated to application
Recorded with the display content in interface, obtain the first video file;It is determined that event corresponding with first video file
Information configuration file, determines to include the object event set of object event from the event information configuration file;Determine mesh
Mark object event each self-corresponding target video moment in event sets;During self-corresponding target video each according to object event
Carve and the first video file, generate the second video file.Regarded due to being previously determined in the embodiment of the present invention with described first
Record has each thing in the first video file in the corresponding event information configuration file of frequency file, the event information configuration file
Part, and each event corresponding video moment, therefore object event can be determined each directly from event information configuration file
The corresponding target video moment, so that according to the target video moment, editing generates the second video file from the first video file,
During generating the second video file according to the target video moment in the application, without other Video processing softwares, behaviour
Make mode simple.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other
Between the difference of embodiment, each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part
It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (14)
1. a kind of video recording method, it is characterised in that including:
Display content in the application interface to be recorded of application is recorded, the first video file is obtained;
It is determined that being recorded in event information configuration file corresponding with first video file, the event information configuration file has
Each event in first video file, and each event corresponding video moment;
Determination includes the object event set of object event from the event information configuration file;
Determine object event each self-corresponding target video moment in object event set;
According to object event each self-corresponding target video moment and the first video file, the second video file is generated.
2. according to the method described in claim 1, it is characterised in that described to determine to include from the event information configuration file
The process for having the object event set of object event includes:
The type of the video content shown in application interface to be recorded according to application, it is determined that the type pair with the video content
The event identifier answered as object event event identifier;
From the event information configuration file, it is determined that object event corresponding with the event identifier of the object event, is formed
Object event set.
3. according to the method described in claim 1, it is characterised in that described to determine to include from the event information configuration file
The process for having the object event set of object event includes:
According to the type of application, event identifier corresponding with the type of the application is obtained as the event identifier of object event;
From the event information configuration file, it is determined that object event corresponding with the event identifier of the object event, is formed
Object event set.
4. according to the method described in claim 1, it is characterised in that described to determine to include from the event information configuration file
The process for having the object event set of object event includes:
According to the triggering selection of user, event identifier corresponding with the triggering selection of the user is obtained as the thing of object event
Part is identified;
From the event information configuration file, it is determined that object event corresponding with the event identifier of the object event, is formed
Object event set.
5. the method according to claim 1-4 any one, it is characterised in that described each self-corresponding according to object event
Target video moment and the first video file, the process of the second video file of generation include:
The audio-video frequency content at each moment in first video file is identified;
Obtain the audio-video frequency content before and after the target video moment in setting time section in the first video file, generation the second video text
Part.
6. the method according to claim 1-4 any one, it is characterised in that described each self-corresponding according to object event
Target video moment and the first video file, the process of the second video file of generation include:
The audio-video frequency content at each moment in first video file is identified;
The audio-video frequency content before and after each target video moment in setting time section in the first video file is obtained, each mesh is generated
Mark video moment each self-corresponding audio frequency and video fragment;
By each target video moment each self-corresponding audio frequency and video fragment, according to default audio frequency and video fragment assembly rule, sound is carried out
Video segment splices, and generates the second video file.
7. method according to claim 6, it is characterised in that described to regard each target video moment each self-corresponding sound
Frequency fragment, according to default audio frequency and video fragment assembly rule, carries out audio frequency and video fragment assembly, generates the process bag of the second video file
Include:
Predetermined audio frequency and video fragment is inserted between each target video moment each self-corresponding audio frequency and video fragment;
By each target video moment each self-corresponding audio frequency and video fragment and the predetermined audio frequency and video fragment of insertion, according to default sound
Video segment splicing rule, carries out audio frequency and video fragment assembly, generates the second video file.
8. a kind of video recording device, it is characterised in that including:
Module is recorded, is recorded for the display content in the application interface to be recorded to application, obtains the first video file;
Event information configuration file determining module, for determining event information configuration text corresponding with first video file
Record has each event in the first video file in part, the event information configuration file, and during the corresponding video of each event
Carve;
Object event set determining module, for determining to include the target of object event from the event information configuration file
Event sets;
Target video moment determining module, for determining during each self-corresponding target video of the object event in object event set
Carve;
Second video file generation module, for according to object event each self-corresponding target video moment and the first video text
Part, generates the second video file.
9. device according to claim 8, it is characterised in that the object event set determining module includes:
First event identifier determining module, for the type of the video content shown in the application interface to be recorded according to application,
It is determined that event identifier of the event identifier corresponding with the type of the video content as object event;
First object event sets formation module, for from the event information configuration file, it is determined that with the object event
The corresponding object event of event identifier, formed object event set.
10. device according to claim 8, it is characterised in that the object event set determining module includes:
Second event identifies determining module, for the type according to application, obtains event mark corresponding with the type of the application
Know the event identifier as object event;
Second object event set forms module, for from the event information configuration file, it is determined that with the object event
The corresponding object event of event identifier, formed object event set.
11. device according to claim 8, it is characterised in that the object event set determining module includes:
3rd event identifier determining module, for the triggering selection according to user, is obtained corresponding with the triggering selection of the user
Event identifier as object event event identifier;
3rd object event set forms module, for from the event information configuration file, it is determined that with the object event
The corresponding object event of event identifier, formed object event set.
12. the device according to claim 8-11 any one, it is characterised in that the second video file generation module
Including:
First audio-video frequency content identification module, knows for the audio-video frequency content to each moment in first video file
Not;
Second video file generates submodule, and for obtaining in the first video file, setting time section is interior before and after the target video moment
Audio-video frequency content, generate the second video file.
13. the device according to claim 8-11 any one, it is characterised in that the second video file generation module
Including:
Second audio-video frequency content identification module, knows for the audio-video frequency content to each moment in first video file
Not;
Audio frequency and video fragment generation module, for obtaining in the first video file, setting time section is interior before and after each target video moment
Audio-video frequency content, generate each target video moment each self-corresponding audio frequency and video fragment;
Audio frequency and video fragment assembly module, for by each target video moment each self-corresponding audio frequency and video fragment, according to default sound
Video segment splicing rule, carries out audio frequency and video fragment assembly, generates the second video file.
14. device according to claim 13, it is characterised in that the audio frequency and video fragment assembly module includes:
Predetermined audio frequency and video fragment inserts module, for being inserted between each target video moment each self-corresponding audio frequency and video fragment
Predetermined audio frequency and video fragment;
Audio frequency and video fragment assembly submodule, for by each target video moment each self-corresponding audio frequency and video fragment and insertion
Predetermined audio frequency and video fragment, according to default audio frequency and video fragment assembly rule, carries out audio frequency and video fragment assembly, generation the second video text
Part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710272363.4A CN106998494B (en) | 2017-04-24 | 2017-04-24 | Video recording method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710272363.4A CN106998494B (en) | 2017-04-24 | 2017-04-24 | Video recording method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106998494A true CN106998494A (en) | 2017-08-01 |
CN106998494B CN106998494B (en) | 2021-02-05 |
Family
ID=59434855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710272363.4A Active CN106998494B (en) | 2017-04-24 | 2017-04-24 | Video recording method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998494B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682652A (en) * | 2017-10-30 | 2018-02-09 | 深圳市麦道微电子技术有限公司 | A kind of urgent document recording system of hommization |
CN108259990A (en) * | 2018-01-26 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of method and device of video clipping |
CN109246467A (en) * | 2018-08-15 | 2019-01-18 | 上海蔚来汽车有限公司 | Label is to the method, apparatus of sharing video frequency, video camera and smart phone |
CN109618184A (en) * | 2018-12-29 | 2019-04-12 | 北京市商汤科技开发有限公司 | Method for processing video frequency and device, electronic equipment and storage medium |
CN109672922A (en) * | 2017-10-17 | 2019-04-23 | 腾讯科技(深圳)有限公司 | A kind of game video clipping method and device |
CN109814926A (en) * | 2018-12-28 | 2019-05-28 | 东软集团股份有限公司 | A kind of method and apparatus for extracting data |
CN110262707A (en) * | 2019-04-26 | 2019-09-20 | 努比亚技术有限公司 | A kind of application program operation method for recording, device and computer readable storage medium |
CN111093093A (en) * | 2018-10-24 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Method, device and system for generating special effect video and computer equipment |
CN111212316A (en) * | 2019-12-10 | 2020-05-29 | 维沃移动通信有限公司 | Video generation method and electronic equipment |
CN112672200A (en) * | 2020-12-14 | 2021-04-16 | 完美世界征奇(上海)多媒体科技有限公司 | Video generation method and device, electronic equipment and storage medium |
WO2022017096A1 (en) * | 2020-07-20 | 2022-01-27 | 上海连尚网络科技有限公司 | Screen recording method, electronic device, and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102522102A (en) * | 2010-10-15 | 2012-06-27 | 微软公司 | Intelligent determination of replays based on event identification |
US20130227416A1 (en) * | 2011-01-06 | 2013-08-29 | Edward Massena | Device for logging, editing and production of video programs for activities of local interest |
US20140363141A1 (en) * | 2013-06-05 | 2014-12-11 | Snakt, Inc. | Methods and systems for creating, combining, and sharing time-constrained videos |
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机***有限公司 | Game video recording method and game video recording device |
CN105142003A (en) * | 2015-08-07 | 2015-12-09 | 深圳Tcl数字技术有限公司 | Television program playing method and device |
CN105939494A (en) * | 2016-05-25 | 2016-09-14 | 乐视控股(北京)有限公司 | Audio/video segment providing method and device |
CN106412702A (en) * | 2015-07-27 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Video clip interception method and device |
-
2017
- 2017-04-24 CN CN201710272363.4A patent/CN106998494B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102522102A (en) * | 2010-10-15 | 2012-06-27 | 微软公司 | Intelligent determination of replays based on event identification |
US20130227416A1 (en) * | 2011-01-06 | 2013-08-29 | Edward Massena | Device for logging, editing and production of video programs for activities of local interest |
US20140363141A1 (en) * | 2013-06-05 | 2014-12-11 | Snakt, Inc. | Methods and systems for creating, combining, and sharing time-constrained videos |
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机***有限公司 | Game video recording method and game video recording device |
CN106412702A (en) * | 2015-07-27 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Video clip interception method and device |
CN105142003A (en) * | 2015-08-07 | 2015-12-09 | 深圳Tcl数字技术有限公司 | Television program playing method and device |
CN105939494A (en) * | 2016-05-25 | 2016-09-14 | 乐视控股(北京)有限公司 | Audio/video segment providing method and device |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672922A (en) * | 2017-10-17 | 2019-04-23 | 腾讯科技(深圳)有限公司 | A kind of game video clipping method and device |
WO2019076281A1 (en) * | 2017-10-17 | 2019-04-25 | 腾讯科技(深圳)有限公司 | Game video editing method and apparatus, and storage medium |
CN107682652A (en) * | 2017-10-30 | 2018-02-09 | 深圳市麦道微电子技术有限公司 | A kind of urgent document recording system of hommization |
CN108259990A (en) * | 2018-01-26 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of method and device of video clipping |
CN108259990B (en) * | 2018-01-26 | 2020-08-04 | 腾讯科技(深圳)有限公司 | Video editing method and device |
CN109246467A (en) * | 2018-08-15 | 2019-01-18 | 上海蔚来汽车有限公司 | Label is to the method, apparatus of sharing video frequency, video camera and smart phone |
CN111093093A (en) * | 2018-10-24 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Method, device and system for generating special effect video and computer equipment |
CN109814926A (en) * | 2018-12-28 | 2019-05-28 | 东软集团股份有限公司 | A kind of method and apparatus for extracting data |
CN109618184A (en) * | 2018-12-29 | 2019-04-12 | 北京市商汤科技开发有限公司 | Method for processing video frequency and device, electronic equipment and storage medium |
CN110262707A (en) * | 2019-04-26 | 2019-09-20 | 努比亚技术有限公司 | A kind of application program operation method for recording, device and computer readable storage medium |
CN110262707B (en) * | 2019-04-26 | 2021-08-10 | 努比亚技术有限公司 | Application program operation recording method and device and computer readable storage medium |
CN111212316A (en) * | 2019-12-10 | 2020-05-29 | 维沃移动通信有限公司 | Video generation method and electronic equipment |
CN111212316B (en) * | 2019-12-10 | 2022-02-08 | 维沃移动通信有限公司 | Video generation method and electronic equipment |
WO2022017096A1 (en) * | 2020-07-20 | 2022-01-27 | 上海连尚网络科技有限公司 | Screen recording method, electronic device, and computer readable storage medium |
CN112672200A (en) * | 2020-12-14 | 2021-04-16 | 完美世界征奇(上海)多媒体科技有限公司 | Video generation method and device, electronic equipment and storage medium |
CN112672200B (en) * | 2020-12-14 | 2023-10-24 | 完美世界征奇(上海)多媒体科技有限公司 | Video generation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106998494B (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106998494A (en) | A kind of video recording method and relevant apparatus | |
CN111050222B (en) | Virtual article issuing method, device and storage medium | |
CN101346162B (en) | Game machine, and game machine control method | |
CN106303331A (en) | video recording method, terminal and system | |
CN108986842B (en) | Music style identifying processing method and terminal | |
JP5736601B2 (en) | Method and apparatus for automatically reproducing facial expressions with virtual images | |
CN106095384B (en) | A kind of effect adjusting method and user terminal | |
US11253787B2 (en) | Server system and play data community system for modified reproduction play | |
CN108260015B (en) | Voting data processing method and device and electronic equipment | |
CN109361954B (en) | Video resource recording method and device, storage medium and electronic device | |
CN108984339B (en) | Data recovery method and related product | |
CN108174164A (en) | A kind of real time video processing method and device | |
CN103002019A (en) | Browser and method for sending webpage game message for browser | |
CN108965101B (en) | Session message processing method, device, storage medium and computer equipment | |
CN112422844A (en) | Method, device and equipment for adding special effect in video and readable storage medium | |
JP5876432B2 (en) | Game system and program | |
CN112619138A (en) | Method and device for displaying skill special effect in game | |
CN104123112B (en) | A kind of image processing method and electronic equipment | |
CN102385893B (en) | The time shaft generation system of multimedia and method | |
CN110517699A (en) | Information steganography method, device, equipment and storage medium | |
US20230059361A1 (en) | Cross-franchise object substitutions for immersive media | |
CN109166165A (en) | A kind of playback method of dynamic picture, terminal and can storage medium | |
CN108989703B (en) | Memory video creating method and related device | |
JP7375354B2 (en) | User terminal, server, character exchange system, character exchange method, and program | |
CN112820273A (en) | Wake-up judging method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |