CN106375696B - A kind of film recording method and device - Google Patents
A kind of film recording method and device Download PDFInfo
- Publication number
- CN106375696B CN106375696B CN201610877766.7A CN201610877766A CN106375696B CN 106375696 B CN106375696 B CN 106375696B CN 201610877766 A CN201610877766 A CN 201610877766A CN 106375696 B CN106375696 B CN 106375696B
- Authority
- CN
- China
- Prior art keywords
- period
- time interval
- screen
- image data
- application program
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- 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/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of film recording methods, comprising: obtains the application data of application program;In application program run the period, screen image data is acquired using the record screen plug-in unit built in application program;In application program run the period, chooses using data and preset using at least one consistent period of data, using the period of selection as objective time interval;According to the screen image data acquired in objective time interval, video file is generated.The present invention also provides a kind of film recording devices that above-mentioned film recording method may be implemented.The present invention can record screen automatically, and can be improved the accuracy of record screen.
Description
Technical field
The present invention relates to field of image processing more particularly to a kind of film recording method and devices.
Background technique
Film recording refers to that acquiring entire screen or screen specifies the image data in region, and coded image data is regarded
The technology of frequency file.By film recording technology, user can will save the video file liked and can grab on display screen
Picture generates video file, with preservation, displaying or editor etc..
In the prior art, all application programs that record screen application (such as recorded game screen great master) passes through acquisition current device installation
To being matched from the background, the application program of specified type, such as game application are filtered out.Record screen application is capable of providing answers in game
With the suspended window shown on interface, which includes video recording control button, when record screen application receives starting record screen instruction
When, record screen is carried out by MediaRecorder technology.When receiving stopping record screen instruction, record shields application and stops record screen, generation
Video file, as shown in Figure 1.
Visible above, at the time of enrolling video depending on user's input unlatching or halt instruction.Many application programs need
To be manipulated by user, therefore when operating application program, take into account manipulation record screen application be it is very difficult, cause record shield
Obtained video is often and the video of user's needs is there are deviation, and the video file that record screen obtains is not accurate enough.
Summary of the invention
The present invention provides a kind of film recording method and devices, can record screen automatically, and can be improved record screen
Accuracy.
First aspect provides a kind of film recording method, comprising:
Obtain the application data of application program;
In application program run the period, screen image data is acquired using the record screen plug-in unit built in application program;
In application program run the period, chooses using data and preset using at least one consistent period of data, it will
The period of selection is as objective time interval;
According to the screen image data acquired in objective time interval, video file is generated.
Second aspect provides a kind of film recording device, comprising:
Module is obtained, for obtaining the application data of application program;
Image module is acquired, for acquiring screen using the record screen plug-in unit built in application program in application program run the period
Curtain image data;
Determining module, in application program run the period, choosing using data and presetting consistent extremely using data
A few period, using the period of selection as objective time interval;
Video generation module, for generating video file according to the screen image data acquired in objective time interval.
As can be seen from the above technical solutions, the invention has the following advantages that
After the application data for obtaining application program, film recording device can use and answer in application program run the period
Screen image data is acquired with the record screen plug-in unit built in program;Then in application program run the period, choose using data with
It is default to apply the data consistent period, according to the screen image data acquired in choosing the period, generate video file.As it can be seen that
The present invention can be realized automatic record screen function using data by default.Simultaneously as the speed of film recording device starting record screen
Spend accuracy more faster than manually booting, therefore that record screen can be improved.
Detailed description of the invention
Fig. 1 is a flow diagram of film recording method in the prior art;
Fig. 2 is a schematic diagram of application architecture in the embodiment of the present invention;
Fig. 3 is another schematic diagram of application architecture in the embodiment of the present invention;
Fig. 4 is a schematic diagram of the communication frame in the embodiment of the present invention between application program and SDK;
Fig. 5 is a schematic diagram of the communication frame in the embodiment of the present invention between SDK and plug-in unit;
Fig. 6 is the configuration diagram of record screen plug-in unit in the embodiment of the present invention;
Fig. 7 is a flow diagram of film recording method in the embodiment of the present invention;
Fig. 8 is another flow diagram of film recording method in the embodiment of the present invention;
Fig. 9 is another schematic diagram of film recording method in the embodiment of the present invention;
Figure 10 is a schematic diagram of record screen plug-in unit in the embodiment of the present invention;
Figure 11 is a structural schematic diagram of film recording device in the embodiment of the present invention;
Figure 12 is a structural schematic diagram of film recording device in the embodiment of the present invention;
Figure 13 is a structural schematic diagram of terminal in the embodiment of the present invention.
Specific embodiment
For ease of understanding, the application architecture of film recording method of the present invention is introduced below:
Application program: refer to the software write for certain application purpose for user.Under Windows system,
Document title is generally * .exe.It is general in Apple Macintosh operating system (i.e. Mac OS X) or Android (Android) system Documents name
For * .app.Application program can provide card i/f, for plug-in unit access.The framework of application program and record screen plug-in unit can be as
Shown in Fig. 2, when being provided with record screen plug-in unit in application program, application program can call record screen plug-in unit, execute film recording function
Energy.
Software Development Kit (Software Development Kit, abbreviation SDK): referring to the platform of management plug-in unit,
It is mainly responsible for plug-in download, installation, update and initialization.Application program can provide a variety of card i/fs by SDK, and pass through
SDK is communicated with plug-in unit.For example, application program can provide record screen plug-in unit, key plug-in unit or audio plug-in unit etc. respectively by SDK
The interface of kind plug-in unit, as shown in Figure 3.
Record screen plug-in unit: referring to the plug-in unit that can execute kinescope recording function, can be realized the functions such as record screen, editing.Plug-in unit
It (Plug-in) is that kind follows the program that the application programming interfaces centainly standardized are write out.It can only operate in application program rule
(multiple platforms may be supported simultaneously) under fixed system platform, and cannot be detached from specified platform isolated operation.Plug-in unit is also referred to as
Addin, add-in, addon or add-on, can also be referred to as plug-in.
Below by taking the application architecture of application program, SDK and plug-in unit as an example, application program is right by taking game class is applied as an example
The Principle of Communication of game class application, SDK and plug-in unit is introduced:
Fig. 4 is game class using the communication block schematic illustration with SDK.
The game of Cocos2d engine and basic App are directly by calling the java of java file interface and SDK to connect
Mouth (such as QmiSDKApi.java) is communicated.Cocos2d engine is also referred to as Cocos2d-x engine.
The game of U3d engine needs to call the interface of SDK by c# file.U3d engine passes through GameJoy.cs component
Provide JavaClass (such as AndroidJavaClass) can map java class to SDK interface.U3d engine can also claim
Unity3d engine.
Fig. 5 is the communication block schematic illustration of SDK and plug-in unit.
1, plug-in unit includes that class file, dynamic link library (so) file, component packet (jar) file resource file and four are big
Component.In Android, four big components include movable (activity) component, service (service) component, content offer
(content provider) component and broadcast reception (broadcast receiver) component.
2, SDK generates record screen plug-in unit example by the reflection of plug-in card configuration file, then passes through plug-in command component
(PluginCommander) writing (write) and reading (read) function in is communicated with plug-in unit.Wherein, plug-in card configuration file
Including (category information, plug-in version number etc.).
Fig. 6 is the configuration diagram of record screen plug-in unit:
Record screen plug-in unit includes record panel module, user interface (User Interface, abbreviation UI) module and video sharing
Module.
1, record screen mode may include that root (root) recording mode, game engine recording mode and Android 5.0 are recorded
Molding formula.
The process that image data stream is obtained under each mode is simply introduced separately below:
(1) root recording mode: after terminal obtains root authority, can read equipment specified memory, obtain its storage
Image data, then obtained image data is switched into rgb format image.Specified memory generally refers to fb0 image data memory.
(2) game engine recording mode: U3d engine is recorded and Cocos2d engine is recorded.
In U3d engine recording mode, after terminal obtains image data by Camera, picture number is then rendered again
According to (CameraRender).
In Cocos2d engine recording mode, after terminal obtains image data, acquisition figure is rendered by visit method
As (RenderScene).
(3) Android5.0 recording mode: calling the creation of MediaProjection class function to obtain image data event,
Then current screen image is captured by VirtualDisplay function, image rendering is then arrived MediaCodec's
In Surface.
It is encoded and is synthesized again after obtaining image data stream by three of the above mode, to generate video file.
2, the interface UI includes advanced suspended window and normal forms.
Advanced suspended window may be displayed on all interfaces of application program, prevent from being blocked.It can not depend on and answer
Life cycle, it is lower with application degrees of fusion, have very strong of overall importance.Suspended window can be full frame forms, be also possible to certainly
Adapt to forms.Adaptive window can be Removable Form, be also possible to static forms.
Normal forms depend on the life cycle of application program, can be in FragmentActivity component
Fragment control.At the end of application program, normal forms also disappear.It is high with application conjugation, is suitable for localized interface
Layout.The life cycle of normal forms is shorter, need in due course machine save current state so that next time restores.
3, record screen plug-in unit can also include video sharing module.By video sharing module, the video sharing that can be recorded
To instant message applications (such as wechat, QQ), microblogging (such as Tencent's microblogging), blog (such as QQ space), more excellent videos are allowed
The friend of oneself can be shared with.
Based on use above framework, the present invention provides a kind of film recording method, and the specific implementation process of this method can be with
Refering to following embodiment.Referring to Fig. 7, one embodiment that the present invention provides film recording method includes:
Step 701, terminal obtain the application data of application program.
In the present embodiment, it can be application scenarios information, Role Information or event information using data, can also be article
Information is other kinds of using data, is not construed as limiting herein.
Step 702, in application program run the period, terminal acquires screen picture using the record screen plug-in unit built in application program
Data.
Application program run the period refers to since application program launching, to the period of closing application program.It is understood that
, the period of terminal acquisition screen image data can be all or part of application program run the period.
Terminal can be specifically accomplished by the following way using record screen plug-in unit acquisition screen image data:
In one alternate embodiment, when the operating system version where application program is 5.0 or more version of Andriod
When, terminal can call the creation of MediaProjection class function to obtain image data event, pass through VirtualDisplay letter
Number captures current screen image, then will capture obtained image data and saves.
In another alternative embodiment, when Application Type is that game class is applied and game engine type is that U3D draws
When holding up, terminal can create camera (Camera) in the application, image data be obtained using camera, then by the figure of acquisition
As data are rendered.
In another alternative embodiment, when Application Type is that game class is applied and game engine type is
When Cocos2d engine, terminal can pass through visit method rendered image data after obtaining image data.
In another alternative embodiment, when Application Type is non-gaming class in application, the available system of terminal
Root authority, from storage image data memory (such as FrameBuffer file) in read image data, be then converted into RGB
The image of format.The path of FrameBuffer is generally/dev/graphics/fb0.
Step 703, in application program run the period, terminal is chosen using data and default consistent at least using data
One period, using the period of selection as objective time interval.
Step 703 can specifically be realized by following implementation:
It in one alternate embodiment, is scene information using data.Terminal can choose scene information and default scene
The information identical period is as objective time interval.Scene information includes the place being arranged in application program, time, article or obstacle
Object etc..For example, application program is when simulating real class game, scene information be can be in city A or city A in game
Shop or public house are also possible to noon or evening etc., since length is limited, it is difficult to enumerate, this is not limited here.
When application program operation, scene information can change with the variation of real time.When in application program
When scene information is changing into default scene information, terminal can recorde the above-mentioned moment, when the scene information in application program and in advance
If scene information from same transition be it is different when, terminal also can recorde the above-mentioned moment, to obtain scene information and default field
The scape identical period.
For example, the scene of application program includes the first scene, the second scene, third scene and the 4th scene, in advance
Determining scene information is third scene.When application program terminates the second scene, when into third scene, terminal record is from the second scene
Into the real moment t1 of third scene, when application program terminates third scene, when into four scenes, terminal record is from third
Scene enters the real moment t2 of the 4th scene, and obtained objective time interval is t1~t2.
It is event information using data in another alternative embodiment.Terminal can choose event information and default thing
The part information identical period is as objective time interval.Predeterminable event information can be role on a preset condition based and produce in application scenarios
Raw event information, usually occurs in special event.For example, double hit, single technical ability group is combined into continuous skill, less than pre-
Defeat multiple roles etc. in fixing time, can also be other event informations, be not construed as limiting herein.
For example, predeterminable event information is double kill.Double kill is generated when application program operation
When, terminal can recorde it and correspond to moment t3, and when double kill is not shown, terminal can recorde corresponding moment t4, thus
Obtaining objective time interval is t3~t4.
It is Role Information using data in another alternative embodiment.Terminal can choose Role Information and preset angle
The color information identical period is as objective time interval.Role Information refers to the role attribute being arranged in the application, such as role
Title, character gender, role's shape or other role attributes (such as role camp, role's technical ability).
For example, it is default role that monster A, which can be arranged, in application program in a program.When monster A goes out in application program
Now, terminal records corresponding moment t5, and when monster A is defeated and disappears, terminal also can recorde corresponding moment t6, obtain mesh
The mark period is t5~t6.
It should be noted that application program can preset one or more application data, or it will preset above and apply data
Then combination determines multiple periods using data according to default.
Step 704, terminal generate video file according to the screen image data acquired in objective time interval.
After terminal determines objective time interval, the corresponding screen of objective time interval is chosen from the screen image data acquired
Image data generates video file.
In the present embodiment, terminal can be realized automatic record screen function using data by default.Also, the view generated
Frequency file is extremely simplified, and memory space very little is occupied.
Secondly as the speed ratio of terminal starting record screen manually boots faster, therefore the accuracy of record screen can be improved.
Again, a separable functional module of the record screen plug-in unit as application program, record screen function can be by exploit person
Member's customization, convenient for increasing, deleting or updating record screen function.
It should be noted that the card i/f that record screen plug-in unit can be provided by application program accesses application program, it can also
To be to access application program by SDK.Terminal can directly initiate record screen plug-in unit, can also issue the user with prompt information, by
User shields plug-in unit to decide whether that starting is recorded.For example, terminal display reminding window, prompt window can be for suspended window or using journey
Message control built in sequence.Prompt window includes the control for receiving record screen instruction, also may include prompting message.For example,
When application program launching, terminal can show prompting message, to prompt user that can open record screen plug-in unit.At this point, terminal can
With the record screen instruction control record screen plug-in unit inputted according to user.As it can be seen that the present invention is implemented other than automatic collection image data
Terminal can also acquire image data according to user's operation in example, specifically can be refering to following embodiment.
Based on embodiment illustrated in fig. 7, in another alternative embodiment of the invention, film recording method of the invention is also
It include: in application program run the period, terminal receives record screen enabled instruction, is opened built in application program according to record screen enabled instruction
Record screen plug-in unit, terminal receive record screen halt instruction, according to record screen halt instruction stop application program built in record screen plug-in unit;?
It opens record screen plug-in unit to record to stopping in the period of screen plug-in unit, chooses and apply the data consistent period with default using data, according to
The screen image data acquired in the period of selection generates video file.
In the present embodiment, user can open or stop recording screen function, realize autonomous control record screen.In this way, being transported in application
In the row period, user can choose one or more periods arbitrarily to carry out record screen.In this way, terminal both can be with by record screen plug-in unit
It realizes automatic record screen, screen can also be recorded manually, improve the flexibility of film recording method implementation.
Based on embodiment illustrated in fig. 7, in another alternative embodiment of the invention, before step 702, screen of the present invention
Curtain kinescope method further include: terminal to server, which is sent, obtains record screen plug-in request;Receive the record screen plug-in unit that server is sent;It will
Record screen plug-in unit carries out Initialize installation.
In the present embodiment, when terminal starts application program, if record screen plug-in unit is not detected in application program, terminal can be with
It is sent to server and obtains record screen plug-in request, obtain record screen plug-in unit from server, record screen plug-in unit is stored in specified folder,
And initialized, as shown in Figure 8.
It should be noted that if specified record screen plug-in unit is not detected in application program, terminal can also be to server
It sends and obtains record screen plug-in request, download specified record screen plug-in unit from server.Specified record screen plug-in unit can be some specific version
This plug-in unit.
According to the video file that above embodiments provide, user is difficult to obtain the information before event occurs.But in reality
In the application of border, user generally also thinks the information before the generation of understanding event.The present invention provides a kind of film recording method, can obtain
Information before taking event to occur, specifically can be refering to following embodiment.Referring to Fig. 9, film recording method of the invention
Another embodiment includes:
Step 901~step 903 is similar to step 701~step 703, and details are not described herein again.
Step 904, terminal determine advance period according to default duration and objective time interval in advance.
Step 905, terminal are according to the screen image data acquired in advance period, and acquire in objective time interval
Screen image data generates video file.
In the present embodiment, terminal can be set default duration in advance and can be 1 second, 2 seconds, 3 seconds, 30 seconds, 1 minute or 10 points
Clock etc. can specifically be arranged according to the actual situation, be not construed as limiting herein.From the initial time to objective time interval of advance period
When a length of preset for the moment process that begins shifts to an earlier date duration, and the finish time of advance period is the initial time of objective time interval.
For example, objective time interval be t1~t2, in advance when it is 2 seconds a length of, terminal can be according to determination in t1~t2 and 2 second
T3, t3 be t1 before 2 seconds it is corresponding at the time of, then according to t3~t2 obtain screen image data generation video file.In this way,
The video file that terminal generates may include acquisition event from the whole process that will occur to terminate to event.
Based on embodiment illustrated in fig. 9, in an alternate embodiment of the present invention where, objective time interval include the first period and
Second period;
Step 905 is specifically as follows: if the time interval of the first period and the second period are less than default duration in advance, root
The third period is determined according to the first period and the second period, according to the screen image data acquired in advance period, Yi Ji
The screen image data acquired in the third period generates video file.
In the present embodiment, the initial time of third period is the initial time of the first period, the finish time of third period
For the finish time of the second period.Objective time interval may include two or more periods, in each period using data with
It is default to be all consistent using data.If the time interval of two periods is especially small, the advance period of the second period may be with
First period time of occurrence intersects, initial time the rising as the third period that terminal passes through the first period of selection in the present embodiment
Finish time of the finish time of moment beginning and the second period as the third period, to avoid choosing in time of coincidence section
Screen image data.It should be noted that if there is time of coincidence section in the first period and the second period, it is similar to the above process,
Terminal can choose respectively the initial time of the first period, the finish time of the second period as the third period initial time and
Finish time.
For example, the first period be 1 point 40 seconds 20 seconds to 1 point, the second period be 1 point 50 seconds 42 seconds to 1 point, it is default to mention
A length of 3s when preceding, since the time interval of the first period to the second period is less than 3s, terminal determines that the third period is 1 point 20
Second to 1 point 50 seconds, then according to 1 point 50 seconds 17 seconds to 1 point acquisition screen image data generate video file.In this way, terminal
Video file can be generated to avoid the screen image data using time of coincidence section.
It is understood that if time interval between multiple periods in objective time interval no more than it is default in advance when
It is long, then the most preceding moment and last moment of multiple periods can be chosen, will be acquired between the most preceding period to the end at moment
Screen image data synthetic video file.
For ease of understanding, it is carried out below in film recording method of the concrete application scene to the embodiment of the present invention detailed
Illustrate:
Referring to Fig. 10, application program is by taking game as an example, game provides that " basis instrument ", " operation setting ", " choosing will be set
Set ", " audio setting ", the functional modules such as " network acceleration " and " video recording setting ", by recording a video, setting can be opened or closed
Video recording plug-in unit.In video recording setting, including recording screen switch, the prompt information that record screen switchs and the control for checking video.Work as record
When the state of screen switch is "Off", record screen plug-in unit is in unactivated state.When the state of record screen switch is "ON", record screen plug-in unit
It is active.It should be noted that Figure 10 is used to illustrate the general frame that software executes interface, certain details in diagram
The understanding to recorded technical solution is had no effect on, is merely to illustrate herein, and as limitation of the invention.
When game starting, terminal can star record screen plug-in unit, start to acquire screen image data.Or terminal shows and mentions
Show window, to prompt the content shown on user's screen printing.
It is default to apply data by taking " double kill " and " triple kill " as an example, when game generates " double
When kill ", terminal record its correspond to the moment, such as 9 points 5 seconds 6 minutes, when in game " double kill " disappear when, terminal record
Its correspond to moment, such as 9 points 15 seconds 6 minutes.Available 9 points screen pictures acquired between 15 6: 5 seconds 6 minutes to 9: of terminal
Data generate video file.
If terminal be provided in advance duration, in advance when it is 3 seconds a length of, then in these cases, terminal can be determined and be mentioned
The preceding period be 9 points 56: 2 seconds 6 minutes to 9:, then obtain 9 points of screen pictures acquired between 15 6: 2 seconds 6 minutes to 9:
Data generate video file.
If terminal obtains multiple periods, such as 9 points correspond to " double kill " thing in 15 6: 5 seconds 6 minutes to 9:
Part, 9 points correspond to " triple kill " event in 17 6: 7 seconds 6 minutes to 9:.Since the time interval of two periods is less than 3
Second, terminal determines 9 points of 17 6: 5 seconds 6 minutes to 9: periods occurred for above-mentioned two event, then in conjunction with " double
The advance period of kill " event generates video file according to the screen image data of 9 points of acquisitions in 17 6: 2 seconds 6 minutes to 9:.
It is understood that terminal can also show record screen control button in application program, user can operate record screen
Control button shields plug-in unit to open or close record.Terminal can receive record screen halt instruction, and terminal stops record screen plug-in unit.Terminal is also
It can show the prompt window for generating video file.
When terminal starts game, if record screen plug-in unit is not detected in game, terminal to server transmission is obtained
Enroll screen plug-in request, server response obtains record screen plug-in request and record screen plug-in unit is sent to terminal, and then terminal can will
Record screen plug-in unit is initialized.
After terminal generates video file, preview image of the image as video can also be obtained from video file, with
For user's preview.Terminal can also send video file to shared platform, for example, instant messaging application, circle of friends, microblogging or
Blog etc., for other users access.
The film recording method in the present invention is introduced from method angle above, below from design factors to the present invention
The film recording device of offer is introduced.Film recording device 1100 provided by the invention has and realizes that above embodiments are shown
The function of film recording method out.One embodiment of film recording device 1100 provided by the invention includes:
Module 1101 is obtained, for obtaining the application data of application program;
Image module 1102 is acquired, for being adopted using the record screen plug-in unit built in application program in application program run the period
Collect screen image data;
Determining module 1103 applies data consistent using data for choosing in application program run the period with default
At least one period, using the period of selection as objective time interval;
Video generation module 1104, for generating video file according to the screen image data acquired in objective time interval.
In the present embodiment, acquisition image module 1102 can acquire screen image data in application program run the period, really
The application data that cover half block 1103 can will acquire the acquisition of module 1101 are compared with default using data, and both records are consistent
The corresponding period is objective time interval, and then video generation module 1104 is according to the screen image data acquired in objective time interval,
Generate video file.As it can be seen that film recording device of the invention can be realized automatic record screen function using data by default
Energy.Also, the video file generated is extremely simplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording device starting record screen manually boots faster, therefore record screen can be improved
Accuracy.
Based on embodiment illustrated in fig. 11, in an alternate embodiment of the present invention where,
Determining module 1103 is also used to determine advance period according to default duration and objective time interval in advance, from advance when
The initial time of the initial time of section to objective time interval pass through when it is a length of it is default shift to an earlier date duration, the finish time of advance period is
The initial time of objective time interval;
Video generation module 1104, specifically for the screen image data that basis acquires in advance period, and in mesh
The screen image data acquired in the mark period generates video file.
In the present embodiment, determining module 1103 determines advance period, video according to default duration and objective time interval in advance
Generation module 1104 is according to the screen image data acquired in advance period, and the screen picture acquired in objective time interval
Data generate video file.In this way, the video file that video generation module 1104 generates may include acquisition event from will send out
The raw whole process terminated to event.
Further, in another alternative embodiment of the invention, when objective time interval includes the first period and second
Section;
Determining module 1103, if being less than default duration in advance, root for the time interval of the first period and the second period
The third period is determined according to the first period and the second period, the initial time of third period is the initial time of the first period, the
The finish time of three periods is the finish time of the second period;
Video generation module 1104, specifically for the screen image data that basis acquires in advance period, and in third
The screen image data acquired in period generates video file.
In the present embodiment, after determining module 1103 determines the third period according to the first period and the second period, video
Generation module 1104 can generate video file to avoid the screen image data using time of coincidence section.
Based on embodiment illustrated in fig. 11, in another alternative embodiment of the invention, film recording device 1100 is also wrapped
It includes:
Sending module 1201 obtains record screen plug-in request for sending to server;
Receiving module 1202, for receiving the record screen plug-in unit of server transmission;
Setup module 1203 carries out Initialize installation for that will record screen plug-in unit.
Based on embodiment illustrated in fig. 11 or alternative embodiment, in another alternative embodiment of the invention, using data
For scene information, event information or Role Information.
For ease of understanding, below with a concrete application scene to each module in film recording device in the embodiment of the present invention
Between interaction be described in detail:
Application program is by taking game as an example, and plug-in unit is shielded in access record in gaming, as shown in Figure 10.Record screen plug-in unit can provide record
Screen switch, can also provide video file store path or prompt information etc..
When game starting, obtaining module 1101 can star record screen plug-in unit, and acquisition image module 1102 starts acquisition screen
Curtain image data.Or terminal display reminding window, to prompt the content shown on user's screen printing.
It is default to apply data by taking " double kill " and " triple kill " as an example, when game generates " double
When kill ", determining module 1103 record its correspond to the moment, such as 9 points 5 seconds 6 minutes, when in game " double kill " disappear when,
Determining module 1103 record its correspond to the moment, such as 9 points 15 seconds 6 minutes.1104 available 9 points of video generation module are arrived for 5 seconds 6 minutes
9 points of screen image datas acquired between 15 seconds 6 minutes, generate video file.
If it is determined that module 1103 be provided in advance duration, in advance when it is 3 seconds a length of, then in these cases, determining mould
Block 1103 can determine advance period be 9 points 56: 2 seconds 6 minutes to 9:, then video generation module 1104 obtains at 9 points 6 minutes 2
The screen image data second acquired between 15 seconds 6 minutes to 9 points, generates video file.
If it is determined that module 1103 has determined multiple periods, such as 9 points correspond to " double in 15 6: 5 seconds 6 minutes to 9:
Kill " event, 9 points correspond to " triple kill " event in 17 6: 7 seconds 6 minutes to 9:.Due to the time interval of two periods
Less than 3 seconds, determining module 1103 determined 9 points of 17 6: 5 seconds 6 minutes to 9: periods occurred for above-mentioned two event, then regarded
Frequency generation module 1104 combines the advance period of " double kill " event, is acquired within 17 6: 2 seconds 6 minutes to 9: according to 9 points
Screen image data generates video file.
It is understood that acquisition image module 1102 can also show record screen control button, user in application program
Record screen control button can be operated to open or close record screen plug-in unit.Acquisition image module 1102, which can receive record screen, to be stopped referring to
It enables, acquisition image module 1102 stops record screen plug-in unit.Acquisition image module 1102 can also show the prompt for generating video file
Window.
When obtaining the starting game of module 1101, if record screen plug-in unit, sending module are not detected in game
1201 obtain record screen plug-in request to server transmission, and record screen plug-in unit is sent to by server response acquisition record screen plug-in request to be connect
Module 1201 is received, then the received record of receiving module 1201 can be shielded plug-in unit and initialized by setup module 1203.
After video generation module 1104 generates video file, image can also be obtained from video file as video
Preview image, for user's preview.Sending module 1201 can also send video file to shared platform, such as instant messaging
Using, circle of friends, microblogging or blog etc., for other users access.
Figure 13 is please referred to, the present invention provides a kind of terminal 1300, and Figure 11 screen into embodiment illustrated in fig. 12 may be implemented
The function of recording apparatus.Terminal 1300 include input unit 1301, output device 1302, processor 1303, memory 1304 with
And bus;Input unit 1301, output device 1302, processor 1303 and memory 1304 pass through bus connection communication;
By the operational order for calling memory 1304 to store and data are applied, processor 1303 can be executed with lower section
Method:
Obtain the application data of application program;
In application program run the period, screen image data is acquired using the record screen plug-in unit built in application program;
In application program run the period, chooses using data and preset using at least one consistent period of data, it will
The period of selection is as objective time interval;
According to the screen image data acquired in objective time interval, video file is generated.
In an alternate embodiment of the present invention where, in processor 1303 according to the screen picture acquired in objective time interval
Before data generate video file, processor 1303 is also used to be determined when shifting to an earlier date according to default duration in advance and objective time interval
Section obtains the screen image data that acquires in advance period, when starting from the initial time of advance period to objective time interval
It carves when a length of preset passed through and shifts to an earlier date duration, the finish time of advance period is the initial time of objective time interval;
Processor 1303 is specifically used for according to the screen image data acquired in advance period, and in objective time interval
The screen image data of acquisition generates video file.
In another alternative embodiment of the invention, objective time interval includes the first period and the second period;
If processor 1303 was specifically used for for the first period and the time interval of the second period is less than default duration in advance, root
The third period is determined according to the first period and the second period, the initial time of third period is the initial time of the first period, the
The finish time of three periods is the finish time of the second period;According to the screen image data acquired in advance period, and
The screen image data acquired in the third period generates video file.
In another alternative embodiment of the invention, in application program run the period, processor 1303 is using using journey
Before record screen plug-in unit acquisition screen image data built in sequence, processor 1303, which is also used to send to server, obtains record screen plug-in unit
Request;The record screen plug-in unit that server is sent is received, record screen plug-in unit is subjected to Initialize installation.
Based on above embodiments or alternative embodiment, in another alternative embodiment of the invention, processor 1303 is obtained
The application data taken are scene information, event information or Role Information.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, said units
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment above method of the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, letter
Claim ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation
Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or
Replacement, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (8)
1. a kind of film recording method characterized by comprising
Obtain the application data of application program;
It is sent to server and obtains record screen plug-in request;
The record screen plug-in unit that the server is sent is received, record screen plug-in unit is subjected to Initialize installation;
In application program run the period, screen image data is acquired using the record screen plug-in unit built in the application program;
In the application program run the period, choose the application data and it is default apply data it is consistent at least one when
Section, using the period of selection as objective time interval;
According to the screen image data acquired in the objective time interval, video file is generated.
2. the method according to claim 1, wherein the screen map that the basis acquires in the objective time interval
Before generating video file as data, the method also includes:
Advance period is determined according to default duration and objective time interval in advance, obtains the screen map acquired in the advance period
As data, the initial time from the initial time of the advance period to the objective time interval pass through when a length of described default mention
Preceding duration, the finish time of the advance period are the initial time of the objective time interval;
The screen image data that the basis acquires in the objective time interval, generating video file includes:
According to the screen image data acquired in the advance period, and the screen picture acquired in the objective time interval
Data generate video file.
3. according to the method described in claim 2, it is characterized in that, when the objective time interval includes the first period and second
Section;
The screen image data that the basis acquires in the advance period, and the screen acquired in the objective time interval
Image data, generating video file includes:
If the time interval of first period and second period are less than the default duration in advance, according to described first
Period and second period determine the third period, when the initial time of the third period is the starting of first period
It carves, the finish time of the third period is the finish time of second period;
According to the screen image data acquired in the advance period, and the screen picture number acquired in the third period
According to generation video file.
4. according to the method in any one of claims 1 to 3, which is characterized in that the application data are scene information, thing
Part information or Role Information.
5. a kind of film recording device characterized by comprising
Module is obtained, for obtaining the application data of application program;
Sending module obtains record screen plug-in request for sending to server;
Receiving module, the record screen plug-in unit sent for receiving the server;
Setup module, for record screen plug-in unit to be carried out Initialize installation;
Image module is acquired, for acquiring screen using the record screen plug-in unit built in the application program in application program run the period
Curtain image data;
Determining module applies data consistent in the application program run the period, choosing the application data with default
At least one period, using the period of selection as objective time interval;
Video generation module, for generating video file according to the screen image data acquired in the objective time interval.
6. film recording device according to claim 5, which is characterized in that
The determining module is also used to determine advance period according to default duration and objective time interval in advance, from it is described in advance when
The initial time of the initial time of section to the objective time interval a length of described default shifts to an earlier date duration, the advance period when passing through
Finish time be the objective time interval initial time;
The video generation module, specifically for the screen image data that basis acquires in the advance period, and in institute
The screen image data acquired in objective time interval is stated, video file is generated.
7. film recording device according to claim 6, which is characterized in that the objective time interval include the first period and
Second period;
The determining module, if the time interval for being also used to first period and second period is less than described preset in advance
Duration, then determine the third period according to first period and second period, and the initial time of the third period is
The initial time of first period, the finish time of the third period are the finish time of second period;
The video generation module, specifically for the screen image data that basis acquires in the advance period, and described
The screen image data acquired in the third period generates video file.
8. film recording device according to any one of claims 5 to 7, which is characterized in that the application data are field
Scape information, event information or Role Information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610877766.7A CN106375696B (en) | 2016-09-30 | 2016-09-30 | A kind of film recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610877766.7A CN106375696B (en) | 2016-09-30 | 2016-09-30 | A kind of film recording method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375696A CN106375696A (en) | 2017-02-01 |
CN106375696B true CN106375696B (en) | 2019-05-24 |
Family
ID=57895157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610877766.7A Active CN106375696B (en) | 2016-09-30 | 2016-09-30 | A kind of film recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375696B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018443B (en) * | 2017-02-16 | 2021-02-05 | 香港乐蜜有限公司 | Video recording method and device and electronic equipment |
CN107147931A (en) * | 2017-04-28 | 2017-09-08 | 青岛海信电器股份有限公司 | The method for recording and device of audio, video data |
CN108874258A (en) * | 2017-05-11 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Share the method and device of record screen video |
CN107220882A (en) * | 2017-05-27 | 2017-09-29 | 广州爱九游信息技术有限公司 | Virtual objects verification method, device, system and storage medium |
CN107835452A (en) * | 2017-10-17 | 2018-03-23 | 广东欧珀移动通信有限公司 | Data processing method and related product |
CN107977436A (en) * | 2017-12-05 | 2018-05-01 | 广东欧珀移动通信有限公司 | Filename generation method, device, terminal and the storage medium of record screen file |
CN108052835B (en) * | 2017-12-14 | 2023-07-18 | Oppo广东移动通信有限公司 | Screen recording file playing method and device and terminal |
CN108228477B (en) * | 2017-12-29 | 2021-05-07 | 北京奇虎科技有限公司 | Method and system for acquiring operation data based on storage capacity |
CN108121640B (en) * | 2017-12-29 | 2021-08-24 | 北京奇虎科技有限公司 | Method and system for automatically acquiring running data of application |
CN108536383B (en) * | 2018-03-28 | 2021-10-15 | 努比亚技术有限公司 | Game control method, game control equipment and computer readable storage medium |
CN108600513A (en) * | 2018-03-28 | 2018-09-28 | 努比亚技术有限公司 | A kind of record screen control method, equipment and computer readable storage medium |
CN108810437A (en) * | 2018-05-28 | 2018-11-13 | 努比亚技术有限公司 | Record screen method, terminal and computer readable storage medium |
CN108803993B (en) * | 2018-06-13 | 2022-02-11 | 南昌黑鲨科技有限公司 | Application program interaction method, intelligent terminal and computer readable storage medium |
CN111752651A (en) * | 2019-03-29 | 2020-10-09 | 比亚迪股份有限公司 | Display control method and device for suspension tool frame and vehicle |
CN111338536B (en) * | 2020-05-20 | 2020-11-13 | 北京小米移动软件有限公司 | Screen recording method and device of multi-screen electronic equipment, multi-screen electronic equipment and storage medium |
CN111866577B (en) * | 2020-07-20 | 2022-07-22 | 上海连尚网络科技有限公司 | Screen recording method, electronic device and computer readable storage medium |
CN112581993A (en) * | 2020-12-22 | 2021-03-30 | 北京字节跳动网络技术有限公司 | Audio recording method and device, readable medium and electronic equipment |
CN115499698B (en) * | 2022-09-16 | 2024-03-26 | 中信百信银行股份有限公司 | Single app screen recording method and system without sense of execution |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6000805B2 (en) * | 2012-11-01 | 2016-10-05 | 株式会社ソニー・インタラクティブエンタテインメント | Information processing device |
CN104282032A (en) * | 2013-06-28 | 2015-01-14 | 深圳市天趣网络科技有限公司 | Dynamic screenshot method for game client, and client thereof |
CN105872580B (en) * | 2016-04-15 | 2019-08-13 | 广州酷狗计算机科技有限公司 | The recording method and device of live video |
-
2016
- 2016-09-30 CN CN201610877766.7A patent/CN106375696B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106375696A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375696B (en) | A kind of film recording method and device | |
US20170161931A1 (en) | Adapting content to augmented reality virtual objects | |
CN109474844B (en) | Video information processing method and device and computer equipment | |
US20230013601A1 (en) | Program trial method, system, apparatus, and device, and medium | |
US11481948B2 (en) | Method, device and storage medium for generating animation group by synthesizing animation layers based on tree structure relation between behavior information and sub-behavior information | |
CN114095776B (en) | Screen recording method and electronic equipment | |
EP4171006A1 (en) | Previewing method and apparatus for effect application, and device and storage medium | |
CN110851108A (en) | Electronic equipment operation method and device, electronic equipment and storage medium | |
CN111917768B (en) | Virtual scene processing method and device and computer readable storage medium | |
CN111949908A (en) | Media information processing method and device, electronic equipment and storage medium | |
CN112689168A (en) | Dynamic effect processing method, dynamic effect display method and dynamic effect processing device | |
CN110968362B (en) | Application running method, device and storage medium | |
CN110971974B (en) | Configuration parameter creating method, device, terminal and storage medium | |
CN112580907B (en) | Task distribution method, device and equipment | |
CN105828167A (en) | Screen-shot sharing method and device | |
CN114385298A (en) | Information interaction method, device, equipment and storage medium | |
CN113613054A (en) | Information prompting method and device, electronic equipment and computer readable storage medium | |
CN111796786A (en) | Screen projection method, device, terminal and storage medium | |
CN110941464B (en) | Light exposure method, device, system and storage medium | |
CN109300177B (en) | Picture processing method and device | |
CN111901667B (en) | Screen recording method and related device | |
CN113559503A (en) | Video generation method, device and computer readable medium | |
Ivanov | NFC-based pervasive learning service for children | |
CN110633117B (en) | Data processing method, device, electronic equipment and readable medium | |
CN117806617B (en) | Interactive assembly for page building and building method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |