摘要 |
Proposed are a video acquisition method and device. The method comprises: setting a video acquisition class in a programming language framework layer, with the video acquisition class inheriting a class in a video acquisition underlying library, and registering a callback function for the video acquisition underlying library; the video acquisition class sending a video acquisition command to the video acquisition underlying library, and the video acquisition underlying library acquiring video data according to the video acquisition command; and applying the callback function to acquire the video data from the video acquisition underlying library, and sending the video data to a coder for video data coding. |