Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2015-05-13
TENCENT TECH (BEIJING) CO LTD
View PDF6 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When taking a screenshot of a video, it is necessary to call the kernel of the video player to repeatedly open the video file, and then obtain the corresponding image frame in the video file according to the screenshot time point, and decode it to obtain the decoded image frame, which will make the screenshot required It takes a long time and the screenshot efficiency is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video screen-shot method and device
  • Video screen-shot method and device
  • Video screen-shot method and device

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a video screen-shot method and device and belongs to the technical field of computers. The video screen-shot method includes that storing a preset number of newest image frames obtained through decoding in a cache in the process of decoding a target video to play; when a screen-shot command is receiver, acquiring at least one image frame from the image frames in the cache, and using as the screen-shot image and storing. The video screen-shot method and device can improve the screen-shot efficiency.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for taking video screenshots. Background technique [0002] With the rapid development of terminal technology, the functions of the operating system of the terminal (such as the Android operating system of the mobile phone) are becoming more and more abundant. The video screenshot function of the operating system is one of the functions frequently used by users. The user can use the video screenshot function to intercept the image of the currently playing video in the video player. [0003] Generally, when a user watches a video through the video player in the terminal, the user can click the shortcut button preset by the system for taking a screenshot of the video. At this time, the terminal takes the current playback time point on the progress bar in the video player as the screenshot Time point, then, while playing the current video, repeatedly c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T1/00
Inventor 左洪涛李大龙何健
Owner TENCENT TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products