Video screen-shot method and device
A video and target video technology, applied in the computer field, can solve the problems of long time required for screenshots and low efficiency of screenshots, and achieve the effect of improving the efficiency of screenshots
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] Embodiments of the present invention provide a method for video screenshots, such as figure 1 As shown, the processing flow of the method may include the following steps:
[0023] Step 101 , during the process of decoding and playing the target video, store a preset number of newly decoded image frames in a cache.
[0024] Step 102, when a screenshot instruction is received, at least one image frame is acquired from the image frames in the cache, and stored as a screenshot image.
[0025] In the embodiment of the present invention, during the process of decoding and playing the target video, a preset number of newly decoded image frames are stored in the cache, and when a screenshot command is received, at least An image frame is stored as a screenshot image. In this way, by setting the cache in advance and storing the decoded image frame in the cache, you can directly obtain the decoded image frame in the cache as a screenshot image without calling The kernel of the ...
Embodiment 2
[0027] An embodiment of the present invention provides a method for screenshotting a video, where the method is executed by a terminal. Wherein, the terminal may be a mobile terminal, such as a mobile phone, a tablet computer, and the like.
[0028] The following will combine specific implementation methods, figure 1 The processing flow shown is described in detail, and the content can be as follows:
[0029] Step 101 , during the process of decoding and playing the target video, store a preset number of newly decoded image frames in a cache.
[0030] Wherein, the target video is any video selected by the user to play.
[0031] In implementation, when a user needs to watch a certain video (i.e. a target video), taking the target video as an example of a network video, the user can start a video player and select the target video, and the video player can pass the URL (Uniform URL) of the target video Resource Locator, Uniform Resource Locator), connects to the corresponding...
Embodiment 3
[0051] Based on the same technical idea, the embodiment of the present invention also provides a device for taking video screenshots, such as image 3 As shown, the device includes:
[0052] A storage module 310, configured to store a preset number of newly decoded image frames in a cache during the process of decoding and playing the target video;
[0053] The obtaining module 320 is configured to obtain at least one image frame from the image frames in the cache when receiving the screenshot instruction, and store it as a screenshot image.
[0054] Optionally, the storage module 310 is used for:
[0055] In the process of decoding and playing the target video, whenever the decoding of an image frame is completed, if the number of image frames in the cache is less than the preset number, the currently decoded image frame will be stored in this cache, if this cache If the number of image frames in the buffer is equal to the preset number, the image frame stored first in the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com