How to play MPEG-TS (transport stream) from WPF and Silverlight

1

I've tried MediaElement with a .ts file - its not interested (HRESULT: 0xC00D11B1).

The TS file plays with WMP no problems (Cannot seem to play it in graphedt though?)

I thought MediaElement was supposed to support what WMP supported?

Update: This is on Windows 7 by the way (apparently it has a slightly different media stack if that makes a difference, WMF etc)

wpf
silverlight
video-streaming
mediaelement
mpeg
asked on Stack Overflow Dec 10, 2009 by Jack Ukleja • edited Dec 10, 2009 by Jack Ukleja

2 Answers

1

Jeremiah Morrill is your man - http://wpfmediakit.codeplex.com.

This will not work in SL but will definitely play them on WPF proper.

answered on Stack Overflow Dec 10, 2009 by adamhill
1

WPFMediaKit does work but you need to install a MPEG-TS "source filter" to allow DirectShow to read from the transport stream container.

I used TSFileSource.

Also be careful on x64 vs x86... so far I have only managed to get it working when using all x86 components.

answered on Stack Overflow Dec 14, 2009 by Jack Ukleja • edited Jan 7, 2019 by Mahdi Ataollahi

User contributions licensed under CC BY-SA 3.0