Install Windows Media Foundation Server 2008 R2
Media Foundation is core Windows API, is built into operating system and does not exist as a separate installation/redistributable. The problem with virtual device you are trying to solve has nothing to do with Media Foundation availability. There are several audio APIs, Media Foundation is just one of them. Each API has its own virtual devices. The only, perhaps, virtual device visible on all APIs is kernel driver for WDM audio device: app APIs would eventually wrap this driver as their device.
Kernel level video devices are at the same time untypical and hardest to do. In your case, you need a virtual device for the same API you (or target application) will be consuming the device through.
We use Microsoft Media Foundation in our app (for app we use C# + C/CLI) which should run on Microsoft Windows Server 2008 R2. App works on Win 8 but when we run it on MS Server 2008 R2 machine it crashes with FileNotFoundException - Could not load file or assembly '.'
Windows Server 2008 R2 Download
Or one of its dependencies. In windows logs we find such error: Faulting application name: MOF.Video.Example.exe, version: 1.0.0.0, time stamp: 0x5303b258 Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e21213c Exception code: 0xe0434352 Fault offset: 0x00cacd Faulting process id: 0xee8 Faulting application start time: 0x01cf2ce85eee5491 Faulting application path: C: Users Administrator Desktop MOF MOF.Video.Example.exe Faulting module path: C: Windows system32 KERNELBASE.dll Report Id: 9d972c94-98db-11e3-91f3-90e6bac09d51 OS: MS Server 2008 R2 x64 App: x64.