On Dec 17, 8:16 pm, latinum <lati...[ at ]discussions.microsoft.com> wrote:
[Quoted Text] > Hi folks, > > I'm at my wit's end with this. I've created a profile with an audio stream, > a video stream, and a script stream. I did this with the WM9 Profile editor, > and the ConfigureFilterUsingProfile function on the writer filter seems to > accept it. I've created a CSource filter that exposes a WMMEDIATYPE_Script > stream, and it successfully connects to the script input pin on the ASF > Writer filter. However, after delivering exactly two samples (why two? I > have no idea) the ASF Writer stops writing data completely, backing up the > entire graph. I suspect that E_FAIL is being returned from Receive on the > ASF writer's input pin, but for some reason I can't debug into BaseClasses to > find out. > > In any case, are there any code examples anywhere on how to construct these > samples? I haven't even been able to figure out if they are expected to be > wide or 8-bit characters, although I assume wide. My samples count up from > zero when the graph starts and have correct start and end times.
Have you read
http://msdn.microsoft.com/en-us/library/aa391228(VS.85).aspx
I don't know that it has the answer, but it might help. You might also try and construct an application using only the WMFSDK. Is there some reason you're using DirectShow? And how are you formatting your samples?
|