CN109697156A - A kind of starting time obtaining method, device, terminal device and storage medium - Google Patents

A kind of starting time obtaining method, device, terminal device and storage medium Download PDF

Info

Publication number
CN109697156A
CN109697156A CN201811378315.4A CN201811378315A CN109697156A CN 109697156 A CN109697156 A CN 109697156A CN 201811378315 A CN201811378315 A CN 201811378315A CN 109697156 A CN109697156 A CN 109697156A
Authority
CN
China
Prior art keywords
time
target
target video
dynamic library
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811378315.4A
Other languages
Chinese (zh)
Inventor
董熠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201811378315.4A priority Critical patent/CN109697156A/en
Publication of CN109697156A publication Critical patent/CN109697156A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present invention provides a kind of starting time obtaining method, device, terminal device and storage mediums.The described method includes: record monitors the first time of the starting event when monitoring the starting event of target video of user's execution;Calling and the associated dynamic library file of the target video, monitor the render process of the target video;Wherein, the dynamic library file includes the code for monitoring the target video render process;Obtain corresponding second time when the first frame of the target video is in rendering completion;According to second time and the first time, the starting time of the target video is obtained.The present invention improves the efficiency of determining target video playing module video playback module starting time, also, reduces the investment of human resources, reduces cost of human resources.

Description

A kind of starting time obtaining method, device, terminal device and storage medium
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of starting time obtaining method, device, terminal device and Storage medium.
Background technique
With the continuous development of the communication technology, shared specific gravity is more and more in people's lives for terminal device (such as mobile phone) It is high.The starting time of player on terminal device is the important parameter for embodying terminal device performance, and starts the fast of time Slowly user experience is directly affected.
The method for determining the starting time of player at present is usually manually to count key frame duration using after recording screen Mode.However, the efficiency of aforesaid way is lower, and increase cost of human resources.
Summary of the invention
The technical problem to be solved is that provide a kind of starting time obtaining method, device, terminal to set for the embodiment of the present invention Standby and storage medium increases manpower to solve to need manually to count efficiency caused by key frame duration in the prior art lower The technical issues of resources costs.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of starting time obtaining methods, comprising: is monitoring When the starting event for the target video that user executes, record monitors the first time of the starting event;It calls and the mesh The associated dynamic library file of video is marked, the render process of the target video is monitored;Wherein, the dynamic library file includes monitoring The code of the target video render process;It obtains when the first frame of the target video is when rendering completion corresponding second Between;According to second time and the first time, the starting time of the target video is obtained.
Preferably, before the first time for recording and monitoring the starting event, further includes: regarded to the target The original application program file of frequency carries out decompression processing, obtains destination folder;Establish target dynamic library;Wherein, the target The dynamic library file for monitoring the render process of each frame of the target video is stored in dynamic base;By the target dynamic Library is embedded in the specified file of the destination folder, generates the destination folder of update;To the destination folder of the update Compression processing is carried out, destination application file is obtained.
Preferably, described to establish target dynamic library, comprising: creation dynamic base;Generation is compiled to target detection code Dynamic library file;Wherein, the target detection code is the code for monitoring the target video render process;By the dynamic base File is added to the designated position of the dynamic base, generates the target dynamic library.
Preferably, the calling and the associated dynamic library file of the target video, monitor the rendering of the target video Process, comprising: by the preset interface of the destination application file, the dynamic library file is called to monitor the target view The render process of frequency.
It is preferably, described to obtain the starting time of the target video according to second time and the first time, It include: the absolute value of the difference of calculating second time and the first time, and using the absolute value as the target The starting time of video.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of starting time acquisition device, comprising: at the first time Logging modle, for when monitoring the starting event of target video of user's execution, record to monitor the starting event At the first time;Render process monitoring module monitors the target for calling and the associated dynamic library file of the target video The render process of video;Wherein, the dynamic library file includes the code for monitoring the target video render process;Second time Module is obtained, for obtaining corresponding second time when the first frame of the target video is in rendering completion;Start time acquisition Module, for obtaining the starting time of the target video according to second time and the first time.
Preferably, further includes: destination folder obtains module, for the original application program file to the target video Decompression processing is carried out, destination folder is obtained;Module is established in target dynamic library, for establishing target dynamic library;Wherein, the mesh The dynamic library file for monitoring the render process of each frame of the target video is stored in mark dynamic base;More new folder is raw The file destination of update is generated for the target dynamic library to be embedded in the specified file of the destination folder at module Folder;Target program file obtains module, for carrying out compression processing to the destination folder of the update, obtains target application journey Preface part.
Preferably, it includes: dynamic base creation submodule that module is established in the target dynamic library, for creating dynamic base;It is dynamic State library file generates submodule, for being compiled generation dynamic library file to target detection code;Wherein, the target detection Code is the code for monitoring the target video render process;Target dynamic library generates submodule, is used for the dynamic library text Part is added to the designated position of the dynamic base, generates the target dynamic library.
Preferably, the render process monitoring module includes: render process monitoring submodule, for being answered by the target With the preset interface of program file, the dynamic library file is called to monitor the render process of the target video.
Preferably, the starting time-obtaining module includes: starting time acquisition submodule, when for calculating described second Between and the first time difference absolute value, and using the absolute value as the starting time of the target video.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of terminal devices, comprising: memory, processor and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing The step of device realizes starting time obtaining method described in any of the above embodiments when executing.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of computer readable storage medium, the calculating It is stored with computer program on machine readable storage medium storing program for executing, any of the above-described institute is realized when the computer program is executed by processor The step in starting time obtaining method stated.
Compared with prior art, the embodiment of the present invention includes following advantages:
In the embodiment of the present invention, by the way that when monitoring the starting event of target video of user's execution, record is monitored The first time of starting event, calling and the associated dynamic library file of target video, the render process of monitoring objective video, and obtain The first frame of target video corresponding second time when rendering completion is taken, and then can be obtained according to the second time and at the first time The starting time of target video.In the embodiment of the present invention, compares the key frame duration for recording screen manually without user, improve It determines the efficiency of target video playing module video playback module starting time, also, reduces the investment of human resources, reduce Cost of human resources.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
Fig. 1 is a kind of step flow chart for starting time obtaining method provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart for starting time obtaining method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram for starting time acquisition device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of really starting time acquisition device provided in an embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart for starting time obtaining method provided in an embodiment of the present invention is shown, specifically It may include steps of:
Step 101: in the starting event for monitoring to execute target video, record monitors the of the starting event One time.
The embodiment of the present invention can be applied to mobile phone, PAD (Portable Android Device, tablet computer), notes The electronic equipments such as this computer, personal computer.
Target video can download the video in the application program being installed for terminal side, for example, video class application Video in program, such as XX TV play, XX film, the embodiments of the present invention are not limited thereto.
Starting event can be clicked the video that target video triggers by user and start event, as user clicks certain APP When " XX biography " in (Application, application program) plays out, which is starting event.
Starting event can also be user by starting event locating for the starting of sound control target video, for example, user It inputs one section of voice and opens target video, one section of voice of input is starting event.
Certainly, starting event can with user start target video other operations specifically can be according to the actual situation Depending on, the embodiments of the present invention are not limited thereto.
Refer to that user starts the time of target video at the first time, for example, user is needing to start certain video class application journey When a certain video in sequence, the icon by clicking the video enters video playing, i.e. user is in the time for clicking the video For at the first time.
Monitoring programme can be preset in terminal side, is carried out with clicking the starting event that target video is triggered to user Real time monitoring, and start the of target video by CPU (Central Processing Unit, central processing unit) record user One time.
After record monitors the first time of starting event, step 102 is executed.
Step 102: calling and the associated dynamic library file of the target video monitor the rendering of the target video Journey;Wherein, the dynamic library file includes the code for monitoring the target video render process.
Can be preset in terminal system with the associated dynamic library file of target video, include in dynamic library file The code of monitoring objective Video Rendering process.
In the present invention, a dynamic library file can be only associated with a video, for example, dynamic library file A, B and C is associated with video 1,2 and 3 respectively.Alternatively, a dynamic library file can be it is associated with an APP, for example, dynamic State library file C and D is associated with APP1 and APP2 respectively.
In dynamic library file situation associated with an APP, the starting event for monitoring target video it Afterwards, it can first determine target APP locating for target video, and then search and the associated dynamic library file of target APP.
Built-in code can pass through calling and target video with the render process of monitoring objective video in dynamic library file After associated dynamic library file, it can be monitored by render process of the dynamic library file to target video, and execute step Rapid 103.
Step 103: obtaining corresponding second time when the first frame of the target video is in rendering completion.
The homepage face that target video head frame is shown after being started by target video.
Second time referred to the first frame of the target video time corresponding when rendering completion.
When calling the render process of dynamic base monitoring objective video, terminal system can record the wash with watercolours of target video in real time Temporal information corresponding to each stage during dye can recorde first frame rendering when the first frame of target video renders completion It completes the corresponding time, as the second time.
After obtaining for the second time, step 104 is executed.
Step 104: according to second time and the first time, obtaining the starting time of the target video.
It is obtaining at the first time and after the second time, the difference of the second time and first time can be calculated, thus will Starting time of the absolute value of difference as target video.For example, certain video corresponding first in certain video class application program Time is 12:10:55, and the video corresponding second time is 12:11:01, then the starting time of the video is 6s.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as to sole limitation of the invention.
Starting time obtaining method provided in an embodiment of the present invention, by monitoring opening for the target video of user's execution When dynamic event, record monitors the first time of starting event, calls and the associated dynamic library file of target video, monitoring objective The render process of video, and obtain the first frame of target video render complete when corresponding second time, and then can be according to the Two times and the starting time for obtaining target video at the first time.In the embodiment of the present invention, recording screen is compared manually without user The key frame duration of curtain, improves the efficiency of determining target video playing module video playback module starting time, also, reduces The investments of human resources, reduces cost of human resources.
Referring to Fig. 2, a kind of step flow chart for starting time obtaining method provided in an embodiment of the present invention is shown, specifically It may include steps of:
Step 201: decompression processing being carried out to the original application program file of the target video, obtains destination folder.
The embodiment of the present invention can be applied to mobile phone, PAD (Portable Android Device, tablet computer), notes The electronic equipments such as this computer, personal computer.
Target video can download the video in the application program being installed for terminal side, for example, video class application Video in program, such as XX TV play, XX film, the embodiments of the present invention are not limited thereto.
Original application program file is and the associated application file of target video.For example, original application program file It can be IPA file, IPA file is the application file for belonging to iPhone, ipod, ipad, is using apple smart machine When sometimes need to install IPA file, such as game or some interior survey softwares etc..
Certainly, original application program file is also possible to other files, and the embodiments of the present invention are not limited thereto.
Terminal needs to install corresponding original application program file when application file is installed in downloading, for example, using It needs that IPA file is installed when apple smart machine, it, can be literary by IPA by third party software during downloading application program Part is installed on terminal side, and the IPA file installed is associated with application program.
After determining target video, associated original application program can be searched according to the application where target video File, and associated original application program file is decompressed, to obtain destination folder.
After obtaining destination folder, step 202 is executed.
Step 202: establishing target dynamic library;Wherein, the monitoring target video is stored in the target dynamic library The dynamic library file of the render process of each frame.
In embodiments of the present invention, the dynamic of the render process of each frame of monitoring objective video is preserved in target dynamic library State library file.
By pre-saving the dynamic library file of the render process of each frame of target video in target dynamic library, and then will Target dynamic library is embedded in destination folder, and the render process so as to the first frame to target video monitors in real time.
The scheme for establishing target dynamic library will be described in detail using embodiments discussed below.
In one preferred embodiment of the invention, above-mentioned steps 202 may include:
Sub-step S1: creation dynamic base;
Sub-step S2: generation dynamic library file is compiled to target detection code;Wherein, the target detection code is Monitor the code of the target video render process;
The dynamic library file: being added to the designated position of the dynamic base by sub-step S3, generates the target dynamic Library.
In embodiments of the present invention, an empty dynamic base can be pre-created, and then according in the path of configuration file Configured target detection code is read, target detection code refers to the code of monitoring objective Video Rendering process, and then to reading The target detection code taken is compiled generation dynamic library file, and can be to target video due to being added in dynamic library file Each frame render process monitoring target detection code, thus compile generate dynamic library file also can be to target video Render process monitored in real time.
Corresponding memory space can be reserved in advance in dynamic base for dynamic library file, generate dynamic library file it Afterwards, dynamic library file can be added to the memory space, to obtain target dynamic library, and then pass through target dynamic library Realize the function being monitored to the render process of target video.
After establishing target dynamic library, step 203 is executed.
Step 203: the target dynamic library being embedded in the specified file of the destination folder, the target of update is generated File.
Specified file can be established in advance in destination folder for target dynamic library, generate target point dynamic base it Afterwards, target dynamic can be embedded in specified file, to obtain updated destination folder.
Step 204: compression processing being carried out to the destination folder of the update, obtains destination application file.
After the destination folder updated, compression processing can be carried out to the destination folder of update, thus To the destination application file of update.
After the destination application file updated, step 205 is executed.
Step 205: when monitoring the starting event of target video of user's execution, record monitors the starting event First time.
Starting event can be clicked the video that target video triggers by user and start event, as user clicks certain APP When " XX unofficial biography " in (Application, application program) play out, which is starting event.
Starting event can also be user by starting event locating for the starting of sound control target video, for example, user It inputs one section of voice and opens target video, one section of voice of input is starting event.
Certainly, starting event can with user start target video other operations specifically can be according to the actual situation Depending on, the embodiments of the present invention are not limited thereto.
Refer to that user starts the time of target video at the first time, for example, user is needing to start certain video class application journey When a certain video in sequence, the icon by clicking the video enters video playing, i.e. user is in the time for clicking the video For at the first time.
Monitoring programme can be preset in terminal side, is carried out with clicking the starting event that target video is triggered to user Real time monitoring, and start the of target video by CPU (Central Processing Unit, central processing unit) record user One time.
After record monitors the first time of starting event, step 206 is executed.
Step 206: by the preset interface of the destination application file, calling described in the dynamic library file monitoring The render process of target video.
Preset interface is the interface of destination application file, and preset interface can have unique interface identifier, due to The incidence relation for having pre-established target video and dynamic library file can also preset starting event in terminal side and call The triggering relationship of dynamic library file can regard that is, when user starts the starting event of target video triggering according to according to target Frequency determines matched interface identifier, and then determines preset interface according to interface identifier, and pass through the pre- of destination application file Interface, calling and the associated dynamic library file of target video are set, thus can be with the wash with watercolours of monitoring objective video by dynamic library file Dye process.
After the render process for calling dynamic library file monitoring objective video, step 207 is executed.
Step 207: obtaining corresponding second time when the first frame of the target video is in rendering completion.
Second time referred to the first frame of the target video time corresponding when rendering completion.
Due to calling dynamic library file can be with the render process of the first frame of monitoring objective video, and then in the head of target video Frame can record first frame second time corresponding to the rendering completion moment when rendering completion using CPU.
In turn, terminal can be according to the second time of acquisition record, and executes step 208.
Step 208: calculating the absolute value of the difference of second time and the first time, and the absolute value is made For the starting time of the target video.
It is obtaining at the first time and after the second time, the difference of the second time and first time can be calculated, thus will Starting time of the absolute value of difference as target video playing module.For example, certain game class application program it is corresponding first when Between be 19:15:36, the game class application program corresponding second time is 19:15:38, then the game class application program opens The dynamic time is 2s.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as to sole limitation of the invention.
Starting time obtaining method provided in an embodiment of the present invention starts time acquisition except having shown in embodiment one Outside beneficial effect possessed by method, target video head frame can also be rendered according to the code of target video render process and be completed The second time be monitored, thus improve obtain target video starting the time accuracy.
Referring to Fig. 3, a kind of structural schematic diagram for starting time acquisition device provided in an embodiment of the present invention is shown, specifically May include:
First time logging modle 310, for when monitoring the starting event of target video of user's execution, record to be supervised Measure the first time of the starting event;Render process monitoring module 320, it is associated dynamic with the target video for calling State library file monitors the render process of the target video;Wherein, the dynamic library file includes to monitor the target video wash with watercolours The code of dye process;Second time-obtaining module 330, it is corresponding when the first frame of the target video is in rendering completion for obtaining The second time;Start time-obtaining module 340, for obtaining the mesh according to second time and the first time Mark the starting time of video.
Starting time acquisition device provided in an embodiment of the present invention, by monitoring opening for the target video of user's execution When dynamic event, record monitors the first time of starting event, calls and the associated dynamic library file of target video, monitoring objective The render process of video, and obtain the first frame of target video render complete when corresponding second time, and then can be according to the Two times and the starting time for obtaining target video at the first time.In the embodiment of the present invention, recording screen is compared manually without user The key frame duration of curtain, improves the efficiency of determining target video playing module video playback module starting time, also, reduces The investments of human resources, reduces cost of human resources.
Referring to Fig. 4, a kind of structural schematic diagram for starting time acquisition device provided in an embodiment of the present invention is shown, specifically May include:
Destination folder obtains module 410, carries out at decompression for the original application program file to the target video Reason, obtains destination folder;Module 420 is established in target dynamic library, for establishing target dynamic library;Wherein, the target dynamic The dynamic library file for monitoring the render process of each frame of the target video is stored in library;More new folder generation module 430, for the target dynamic library to be embedded in the specified file of the destination folder, generate the destination folder of update; Target program file obtains module 440, for carrying out compression processing to the destination folder of the update, obtains target application journey Preface part;First time logging modle 450, for when monitoring the starting event of target video of user's execution, record to be supervised Measure the first time of the starting event;Render process monitoring module 460, it is associated dynamic with the target video for calling State library file monitors the render process of the target video;Wherein, the dynamic library file includes to monitor the target video wash with watercolours The code of dye process;Second time-obtaining module 470, it is corresponding when the first frame of the target video is in rendering completion for obtaining The second time;Start time-obtaining module 480, for obtaining the mesh according to second time and the first time Mark the starting time of video.
Preferably, it includes: dynamic base creation submodule 4201 that module 420 is established in the target dynamic library, dynamic for creating State library;Dynamic library file generates submodule 4202, for being compiled generation dynamic library file to target detection code;Wherein, The target detection code is the code for monitoring the target video render process;Target dynamic library generates submodule 4203, uses In the designated position that the dynamic library file is added to the dynamic base, the target dynamic library is generated.
Preferably, the render process monitoring module 460 includes: render process monitoring submodule 4601, for passing through The preset interface for stating destination application file, calls the dynamic library file to monitor the render process of the target video.
Preferably, the starting time-obtaining module 480 includes: starting time acquisition submodule 4801, for calculating The absolute value of the difference of the second time and the first time is stated, and using the absolute value as when the starting of the target video Between.
Starting time acquisition device provided in an embodiment of the present invention starts time acquisition except having shown in embodiment three Outside beneficial effect possessed by device, target video head frame can also be rendered according to the code of target video render process and be completed The second time be monitored, thus improve obtain target video starting the time accuracy.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Optionally, the present invention also provides a kind of terminal devices, comprising: memory, processor and is stored in the memory Computer program that is upper and can running on the processor, the computer program is realized above-mentioned when being executed by the processor Start each process of time obtaining method embodiment, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
Optionally, it the present invention also provides a kind of computer readable storage medium, is deposited on the computer readable storage medium Computer program is contained, is realized when the computer program is executed by processor in starting time obtaining method as described above Step.Wherein, the computer readable storage medium, as read-only memory (Read-Only Memory, abbreviation ROM), with Machine accesses memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
In the embodiment of the present invention, by the way that when monitoring the starting event of target video of user's execution, record is monitored The first time of starting event, calling and the associated dynamic library file of target video, the render process of monitoring objective video, and obtain The first frame of target video corresponding second time when rendering completion is taken, and then can be obtained according to the second time and at the first time The starting time of target video.In the embodiment of the present invention, compares the key frame duration for recording screen manually without user, improve It determines the efficiency of target video playing module video playback module starting time, also, reduces the investment of human resources, reduce Cost of human resources.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of starting time obtaining method provided by the present invention, a kind of starting time acquisition device, a kind of end End equipment and a kind of computer readable storage medium, are described in detail, and specific case used herein is to of the invention Principle and embodiment is expounded, method and its core of the invention that the above embodiments are only used to help understand Thought;At the same time, for those skilled in the art, according to the thought of the present invention, in specific embodiment and application range Upper there will be changes, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (12)

1. a kind of starting time obtaining method characterized by comprising
When monitoring the starting event of target video of user's execution, record monitors the first time of the starting event;
Calling and the associated dynamic library file of the target video, monitor the render process of the target video;Wherein, described dynamic State library file includes the code for monitoring the target video render process;
Obtain corresponding second time when the first frame of the target video is in rendering completion;
According to second time and the first time, the starting time of the target video is obtained.
2. the method according to claim 1, wherein when the record monitors the first of the starting event Between before, further includes:
Decompression processing is carried out to the original application program file of the target video, obtains destination folder;
Establish target dynamic library;Wherein, the rendering for monitoring each frame of the target video is stored in the target dynamic library The dynamic library file of journey;
The target dynamic library is embedded in the specified file of the destination folder, the destination folder of update is generated;
Compression processing is carried out to the destination folder of the update, obtains destination application file.
3. according to the method described in claim 2, it is characterized in that, described establish target dynamic library, comprising:
Create dynamic base;
Generation dynamic library file is compiled to target detection code;Wherein, the target detection code is to monitor the target The code of Video Rendering process;
The dynamic library file is added to the designated position of the dynamic base, generates the target dynamic library.
4. according to the method described in claim 2, it is characterized in that, the calling and the associated dynamic library text of the target video Part monitors the render process of the target video, comprising:
By the preset interface of the destination application file, the dynamic library file is called to monitor the wash with watercolours of the target video Dye process.
5. the method according to claim 1, wherein described according to second time and the first time, Obtain the starting time of the target video, comprising:
The absolute value of the difference of second time and the first time is calculated, and is regarded the absolute value as the target The starting time of frequency.
6. a kind of starting time acquisition device characterized by comprising
First time logging modle, for when monitoring the starting event of target video of user's execution, record to monitor institute State the first time of starting event;
Render process monitoring module monitors the target video for calling and the associated dynamic library file of the target video Render process;Wherein, the dynamic library file includes the code for monitoring the target video render process;
Second time-obtaining module, for obtaining corresponding second time when the first frame of the target video is in rendering completion;
Start time-obtaining module, for obtaining opening for the target video according to second time and the first time The dynamic time.
7. device according to claim 6, which is characterized in that further include:
Destination folder obtains module, carries out decompression processing for the original application program file to the target video, obtains Destination folder;
Module is established in target dynamic library, for establishing target dynamic library;Wherein, it is stored with described in monitoring in the target dynamic library The dynamic library file of the render process of each frame of target video;
More new folder generation module, it is raw for the target dynamic library to be embedded in the specified file of the destination folder At the destination folder of update;
Target program file obtains module, for carrying out compression processing to the destination folder of the update, obtains target application Program file.
8. device according to claim 7, which is characterized in that the target dynamic library establishes module and includes:
Dynamic base creates submodule, for creating dynamic base;
Dynamic library file generates submodule, for being compiled generation dynamic library file to target detection code;Wherein, the mesh It is the code for monitoring the target video render process that mapping, which tries code,;
Target dynamic library generates submodule, for the dynamic library file to be added to the designated position of the dynamic base, generates The target dynamic library.
9. device according to claim 7, which is characterized in that the render process monitoring module includes:
Render process monitoring submodule calls the dynamic base for passing through the preset interface of the destination application file The render process of target video described in file monitor.
10. device according to claim 6, which is characterized in that the starting time-obtaining module includes:
Starting time acquisition submodule, the absolute value of the difference for calculating second time and the first time, and will Starting time of the absolute value as the target video.
11. a kind of terminal device characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in starting time obtaining method the step of.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that the starting time as described in any one of claims 1 to 5 obtains when the computer program is executed by processor Step in method.
CN201811378315.4A 2018-11-19 2018-11-19 A kind of starting time obtaining method, device, terminal device and storage medium Pending CN109697156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811378315.4A CN109697156A (en) 2018-11-19 2018-11-19 A kind of starting time obtaining method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811378315.4A CN109697156A (en) 2018-11-19 2018-11-19 A kind of starting time obtaining method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN109697156A true CN109697156A (en) 2019-04-30

Family

ID=66229864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811378315.4A Pending CN109697156A (en) 2018-11-19 2018-11-19 A kind of starting time obtaining method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN109697156A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275832A (en) * 2019-06-19 2019-09-24 北京字节跳动网络技术有限公司 Starting time-consuming test method, system, equipment and the medium of application program
CN110769316A (en) * 2019-10-30 2020-02-07 北京博睿宏远数据科技股份有限公司 Method, device, equipment and storage medium for calculating first frame time
CN113132759A (en) * 2019-12-30 2021-07-16 中国移动通信集团北京有限公司 Method, device, server, system and storage medium for determining video playing time delay

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686071A (en) * 2013-10-30 2014-03-26 北京中星微电子有限公司 Monitoring video playback method and system
CN103747332A (en) * 2013-12-25 2014-04-23 乐视致新电子科技(天津)有限公司 Video smoothing method and device
US20160105634A1 (en) * 2014-10-08 2016-04-14 Joseph Robert Marchese System and Method for Streaming and Recording Video
CN106648881A (en) * 2015-11-02 2017-05-10 阿里巴巴集团控股有限公司 Game data analysis and processing method and apparatus
CN106982368A (en) * 2016-01-19 2017-07-25 腾讯科技(深圳)有限公司 video response speed detection method and system
CN107483922A (en) * 2017-10-11 2017-12-15 飞思达技术(北京)有限公司 A kind of video performance monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686071A (en) * 2013-10-30 2014-03-26 北京中星微电子有限公司 Monitoring video playback method and system
CN103747332A (en) * 2013-12-25 2014-04-23 乐视致新电子科技(天津)有限公司 Video smoothing method and device
US20160105634A1 (en) * 2014-10-08 2016-04-14 Joseph Robert Marchese System and Method for Streaming and Recording Video
CN106648881A (en) * 2015-11-02 2017-05-10 阿里巴巴集团控股有限公司 Game data analysis and processing method and apparatus
CN106982368A (en) * 2016-01-19 2017-07-25 腾讯科技(深圳)有限公司 video response speed detection method and system
CN107483922A (en) * 2017-10-11 2017-12-15 飞思达技术(北京)有限公司 A kind of video performance monitoring method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275832A (en) * 2019-06-19 2019-09-24 北京字节跳动网络技术有限公司 Starting time-consuming test method, system, equipment and the medium of application program
CN110769316A (en) * 2019-10-30 2020-02-07 北京博睿宏远数据科技股份有限公司 Method, device, equipment and storage medium for calculating first frame time
CN110769316B (en) * 2019-10-30 2022-03-15 北京博睿宏远数据科技股份有限公司 Method, device, equipment and storage medium for calculating first frame time
CN113132759A (en) * 2019-12-30 2021-07-16 中国移动通信集团北京有限公司 Method, device, server, system and storage medium for determining video playing time delay

Similar Documents

Publication Publication Date Title
KR102096195B1 (en) Plug-in packaging methods, devices, terminals and storage media
RU2689203C2 (en) Flexible circuit for adjusting language model
JP5707647B2 (en) Method and mobile phone for capturing audio or video files
TW202036356A (en) Gradient boosting decision tree-based method and device for model training
CN109697156A (en) A kind of starting time obtaining method, device, terminal device and storage medium
CN109428911A (en) Apparatus control method, device, terminal device and operating system
CN104317648B (en) A kind of method and apparatus of monitoring advertisement
CN110496395B (en) Component operation method, system and equipment for illusion engine
WO2020216204A1 (en) Information acquisition method and apparatus
CN109511145B (en) Network hotspot switching method, intelligent terminal and computer-readable storage medium
CN108882015B (en) Method and device for adjusting playing speed of recall video, electronic equipment and storage medium
CN108228776A (en) Data processing method, device, storage medium and electronic equipment
CN109426504A (en) Processing method, device, electronic equipment and the storage medium of program
WO2016070690A1 (en) Method, device and system for realizing communication between application and webpage on terminal device
CN107526636B (en) Resource identification method and device
CN108170430A (en) A kind of method and system of showing interface
WO2016169426A1 (en) Video playing method and device
US9118756B2 (en) Recording method, recording device, and electronic device
CN105578224A (en) Multimedia data acquisition method, device, smart television and set-top box
CN109471714A (en) Platform deployment method, apparatus, equipment and storage medium
CN112379871A (en) Data processing method and device
CN108733448B (en) Theme processing method, device, equipment, system and storage medium
CN107908552A (en) A kind of test method based on link, device and equipment
CN104391742B (en) Optimizing application method and apparatus
CN109213534A (en) A kind of method and device of extension live streaming software function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190430