Skip to content
Peter Gill edited this page Jan 1, 2023 · 21 revisions

MPlayerControl is a library written in c# and usable from any .NET language (c#, IronPython, VB.NET, IronRuby, etc..) and example program for accessing mplayer, libmpv, mencoder, ffmpeg, and ffprobe. With it you can watch videos, listen to audio, or convert videos. You can also do anything that is possible with mencoder.

This is a personal project that as of 2022 is just for me to play around with things. If you are a dotnet developer looking for a way to interact with video and audio I suggest one of these projects instead.

LibMPlayerCommon (v1)/Majorsilence.Media.Videos (v2) is the code that wraps mplayer, libmpv, and mencoder.
MPlayerExample is an example .NET winform user interface. WpfMPlayer is a wpf user control and wpf example program (Windows only).

Both have been tested on Windows (XP/7/8) and Linux (Ubuntu 10.04/10.10/11.04/12.04/14.04/16.04 and OpenSuse 10.3). Presumably both the library and user interface (winform) should work on OS X.

Some included functions that are included make it simple to convert x264, mpeg, avi, and even create a slideshow with music.

The two main classes are MPlayer and MEncoder. There are also other supporting classes SlideShow and Discover.

The Discover class makes it very simple to retrieve information on video or audio file or even discover if it is a video or audio file.

Version 1.8+ - net6.0 - Basics

TODO

Mainly namespace changes, removal of old code, and the addition of ffmpeg and ffprobe. For example

  • using LibMPlayerCommon; changes to using Majorsilence.Media.Videos;.

Version 1.6 or less - net48 - Basics