Method and apparatus for video shooting

Example kinds of video capture is disclosed a method and apparatus of the present invention belongs to the field of multimedia processing. The method comprising: acquiring a captured video data; video data to the cache memory allocation native layer unlimited; obtained according to the video data of the video file encoding the native buffer layer. Embodiment of the invention solves the image data is cached in the Java layer, frequently trigger garbage collection and memory overflow problems occur; do not need to achieve the effect of triggering garbage collection, memory overflow will not occur.