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

Video caching method and device and readable storage medium

A caching and video technology, applied in the field of data processing, can solve problems such as increasing the degree of memory fragmentation, decreasing the utilization rate of memory resources, and taking a long time to locate data frames, so as to meet the requirements of efficient and smooth playback, enhanced user experience, and expanded applicability Effect

Active Publication Date: 2019-10-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, when caching video streams, all the data frames in the video stream are generally stored together. When a target frame needs to be located, it is necessary to traverse all the data frames between the current frame and the target frame. To locate the target frame, if there are many data frames between the current frame and the target frame, it will take a long time to realize the positioning of the target frame. In other words, for the video cached by the current video caching scheme Stream, it takes a long time to realize the positioning of the data frame, and the positioning efficiency of the data frame is low
[0003] Moreover, when caching each frame of data frames, memory is first applied for, then memory is allocated, and finally stored based on the allocated memory, that is to say, for each frame, memory needs to be separately applied and allocated for processing Cache, however, frequent memory allocation may make some smaller memory slices unused, thereby increasing the degree of fragmentation of memory, resulting in a decrease in the utilization of memory resources. In addition, frequent application, access, allocation, etc. A series of memory The operation will take a long time and the cache efficiency is low
[0004] It can be seen that for the current video caching scheme, the degree of memory fragmentation is high and the caching efficiency is low, and it takes a long time to locate the data frame, and the positioning efficiency of the data frame 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 caching method and device and readable storage medium
  • Video caching method and device and readable storage medium
  • Video caching method and device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. In the case of no conflict, the embodiments and the features in the embodiments of the present invention can be combined arbitrarily with each other. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0077] The t...

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 caching method and device and a readable storage medium, and belongs to the technical field of data processing. The video caching method comprises the steps of when a to-be-cached target video stream is obtained, obtaining a target idle memory from an idle memory buffer queue to buffer a target video stream according to separation of an I frame and a non-I frame. The memory in the idle memory buffer queue is the idle memory obtained after the cached video data is released, memory multiplexing can be realized by buffering the target video stream through the idlememory in the idle memory buffer queue; therefore, frequent memory operations are reduced, the memory fragmentation degree is reduced, the video caching efficiency is improved, separated storage of the I frame and the B frame and the P frame is realized for the target video stream, subsequent positioning of the data frame is facilitated, and the positioning efficiency of the data frame is improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a video caching method, device and readable storage medium. Background technique [0002] At present, when caching video streams, all the data frames in the video stream are generally stored together. When a target frame needs to be located, it is necessary to traverse all the data frames between the current frame and the target frame. To locate the target frame, if there are many data frames between the current frame and the target frame, it will take a long time to realize the positioning of the target frame. In other words, for the video cached by the current video caching scheme Stream, it takes a long time to realize the positioning of the data frame, and the positioning efficiency of the data frame is low. [0003] Moreover, when caching each frame of data frames, memory is first applied for, then memory is allocated, and finally stored based on the allocated memor...

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): H04N21/433H04N21/231
CPCH04N21/4331H04N21/23106
Inventor 韩存爱
Owner TENCENT TECH (SHENZHEN) 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