Ronnie
Ronnie

Reputation: 8117

Why isn't WPF's MediaElement showing my DivX Video?

I have some simple WPF with a MediaElement which is, generally, working. I have some simple AVIs and WMVs which are working.

I have a DivX AVI that works fine in Media Player but doesn't render at all in the WPF MediaElement control. It plays the audio fine, but graphically has zero size and doesn't render any video!

I have tried using the WPF Media Kit at wpfmediakit.codeplex.com and manage to extract an error from that: Could not render any streams from the source Uri.

The RenderCapability.Tier reports 0x00020000 (Tier 2) - the graphics card should be capable!

Upvotes: 2

Views: 2599

Answers (2)

Jeremiah Morrill
Jeremiah Morrill

Reputation: 4268

Are you on an x64 operating system? If so compile your application as x86 instead of any CPU. This will ensure your application will be able to load what are most likely 32bit DirectShow filters.

Upvotes: 2

wefwfwefwe
wefwfwefwe

Reputation: 3518

You need to use a codec that is supported under WPF. DivX isn't.

Upvotes: 1

Related Questions