FAQ - Sascha-L/WPF-MediaKit GitHub Wiki
FAQ
Cannot play certain file type or URL
WPF-MediaKit itself does not play any media, it's the problem of the codecs used. E.g. can any other DirectShow player (like MPC-HC) play that URL/file? If not, then the WPF-MediaKit cannot play it, too.
Cannot play transparent mov, avi
LAVFilters does not return alpha channel, for some workarounds, see #87 and #45.
How to use HW acceleration
See Wiki HW Acceleration.
How to grab a screenshot
Use MediaUriPlayer.CloneSingleFrameD3DImage()
or, when offscree, see the Wiki Headless Examples.
Do not use MediaDetector
since it does not work for all file formats (happy to see some PR to fix that).
MediaUriPlayer
subclass
How to use custom You may modify some behaviour to subclass the MediaUriPlayer
. Then subclass the MediaUriElement
, too and override the OnRequestMediaPlayer
to return your player.
SpeedRatio
is ignored
It depends on the codec used. Some codecs support speed ratio up to 4x, some just up to 2x. See #34, #88.
VideoCaptureElement.EnableSampleGrabbing
does not work
Some cameras need to connect the pin, see issue #6.