Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Custom DMO getting error "The output media format is invalid" in W

7 views
Skip to first unread message

Roeyaus

unread,
Nov 19, 2009, 3:20:03 AM11/19/09
to
Hi All
I'm writing a DMO that accepts data from a custom encoded ASF file and
outputs it to the WMP renderer as bitmaps.

Input mediasubtype is a custom one (has its own GUID and fourCC)
Output mediasubtype is RGB32 . (reflected in the CheckOutputTypes and
GetOutputTypes functions).


However when I try to play the custom asf file in WMP I get : "The output
media format is invalid."

It's funny that the output media format should be invalid, because the input
is the custom one...

What causes this and what should I check?

Thanks a bunch
Roey

Alessandro Angeli

unread,
Nov 19, 2009, 12:45:06 PM11/19/09
to
From: "Roeyaus"

> Output mediasubtype is RGB32 . (reflected in the
> CheckOutputTypes and GetOutputTypes functions).
>
> However when I try to play the custom asf file in WMP I
> get : "The output media format is invalid."
>
> It's funny that the output media format should be
> invalid, because the input is the custom one...

Your DMO_MEDIA_TYPE or VIDEOINFOHEADER may have been filled
in incorrectly. Post a readable dump of the whole structures
(hex is *not* a readable dump).

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


0 new messages