Anova Law Group, PLLC
Video shooting method and apparatus
A video recording method and apparatus are disclosed. The method includes acquiring video data; buffering the video data at a native layer for which memory allocation is not limited; and performing encoding to obtain a video file according to the video data buffered at the native layer. Embodiments of the present disclosure solve the problem that a garbage collection (GC) mechanism is frequently triggered and the phenomenon of out of memory (OOM) occurs when image data is buffered at a Java layer, and achieve the effect that there is no need to trigger the GC mechanism and the phenomenon of OOM does not occur.
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H H H H G H
H04N H04N H04N H04N G11B H04N
additional additional inventional inventional inventional inventional
Wei Kai
Liu Wu