problem with asf writer

Posted by hatham on Stack Overflow See other posts from Stack Overflow or by hatham
Published on 2010-12-28T10:51:41Z Indexed on 2010/12/28 10:53 UTC
Read the original article Hit count: 377

Filed under:
|
|

Im trying to encode raw data(both video frame and audio sample) into .asf file, using asf writer filter in directshow. my filter graph structure: raw_send_filter -> asf writer filter raw_send_filter implements CBaseFilter and CBaseOutputPin. It plays a role as source filter which get raw data, then deliver them to ASF writer filter. The process follows these steps:

  1. Get deliver buffer (return into "sample") , using the function CBaseOutputPin::GetDeliveryBuffer
  2. sample->GetPointer(&buffer);
  3. Set time stamp (with frame rate = 30 fps)
  4. deliver sample

The problem is after encode some raw data, I can not deliver any more.

I can encode .avi file with this way, using Avi mux filter. Can u tell me why I can not deliver samples after encoding some?

Thanks.

© Stack Overflow or respective owner

Related posts about directshow

Related posts about asf