26595b58b9
The windows media foundation H264 encoders have been deprecated for over a year, and microsoft's media foundation AAC encoder has had a continued issue with occasional random audio glitches. The FFmpeg AAC encoder has had recent development, and is more than sufficient to be able to handle the task of encoding in terms of both quality and performance, so it's better just to use the FFmpeg encoder from here on out. As this plugin is no longer needed, for the next year or two it'll still be compiled and included, but as a blank plugin that does nothing. The reason why it's still being included as a blank no-operation plugin is to overwrite older versions of the plugin. That way if a user installs a newer OBS version over an older one, it won't load up the older win-mf plugin where the encoders still were enabled. This also fixes some rarely reported media foundation crashes that can happen on startup.
37 lines
568 B
C++
37 lines
568 B
C++
#include <obs-module.h>
|
|
#include "mf-config.hpp"
|
|
|
|
#if ENABLE_WINMF
|
|
#include <util/profiler.h>
|
|
#include "mf-common.hpp"
|
|
|
|
extern "C" extern void RegisterMFAACEncoder();
|
|
extern void RegisterMFH264Encoders();
|
|
#endif
|
|
|
|
|
|
extern "C" bool obs_module_load(void)
|
|
{
|
|
#if ENABLE_WINMF
|
|
MFStartup(MF_VERSION, MFSTARTUP_FULL);
|
|
|
|
RegisterMFAACEncoder();
|
|
RegisterMFH264Encoders();
|
|
#endif
|
|
|
|
return true;
|
|
}
|
|
|
|
extern "C" void obs_module_unload(void)
|
|
{
|
|
#if ENABLE_WINMF
|
|
MFShutdown();
|
|
#endif
|
|
}
|
|
|
|
OBS_DECLARE_MODULE()
|
|
|
|
#if ENABLE_WINMF
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("win-mf", "en-US")
|
|
#endif
|