Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Writing Windows Media script commands in DirectShow?

HTVi
TV Discussion Newsgroups

Writing Windows Media script commands in DirectShow?
latinum 12/18/2008 4:16:01 AM
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.

Can anyone point me in the right direction? This is seems impossible to
debug and there is no apparent documentation on how to do this sort of thing
in DirectShow.

Thanks,
Eric
Re: Writing Windows Media script commands in DirectShow?
Jeremy Noring <kidjan[ at ]gmail.com> 12/23/2008 1:34:44 AM
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?

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen