Method for extracting audio and video data from multimedia

The invention discloses a method for extracting audio and video data from multimedia. The method mainly includes: firstly, setting up a complete media rendering chain in a DirectShow manner; secondly, disconnecting a renderer at the tail end; thirdly, inserting a screener before the renderer at the tail end and recovering connection; fourthly, extracting audio and video data through the inserted screener; fifthly, subjecting the extracted data to distribution and processing; and sixthly, delivering the processed data to an application layer. Therefore, audio and video data can be obtained in the playing process. The method for extracting audio and video data from multimedia is supportive to extensive media formats and applicable to the field of audio and video application.