Visual c++ 如何在vc+中从流中写入MPEG4视频文件+;directshow

Visual c++ 如何在vc+中从流中写入MPEG4视频文件+;directshow,visual-c++,directshow,Visual C++,Directshow,海所有 Am writing simple application for capturing video from camera and save in .WMV files using vc++ Directshow.i done this task.bt i need to write file as MPEG4 file type. 有人能帮我吗 CAMERA---->SAMPLEGRABBER---->getting streams from sample g

海所有

    Am writing simple application for capturing video from camera and save in .WMV files using vc++ Directshow.i done this task.bt i need to write file as MPEG4 file type.
有人能帮我吗

  CAMERA---->SAMPLEGRABBER---->getting streams from sample graaper..
我像这样从摄像机里得到了信息流

请帮帮我
谢谢

如果您的摄像头生成压缩视频,您可以构建一个graph camera=>mux=>file writer。您可以从www.gdcl.co.uk/mpeg4下载MP4的mux文件。但您可能需要为mpeg-4或H264找到一个编码器——请看ffmpeg