Skip to content
ash edited this page Jun 11, 2018 · 6 revisions

Welcome to the UEVideoRecorder wiki!

This plugin requires additional libraries to be installed:

Boost. Download the latest version and extract archive. Then create directory named boost at /UE4 root/Engine/Source/ThirdParty and create there file boost.Build.cs with the following content:

           using UnrealBuildTool;


           public class boost : ModuleRules
           {
              public boost(TargetInfo Target)
              {
                 Type = ModuleType.External;

                 const string LibraryPath = "BOOST_ROOT";

                 PublicIncludePaths.Add(LibraryPath);
              }
           }

where BOOST_ROOT is path to boost (it should have the form of .../boost_1_xx_x).

VideoRecorder. Clone repository (including submodule), open solution in Visual Studio 2015, select Release configuration and target platform (for example x64). Platform must match the platform of application being developed in UE4.

Add BOOST_ROOT to VC++ Directories/IncludeDirectories in property manager to Microsoft.Cpp.PLATFORM.user propery.

Download FFmpeg SDK, add paths to header and library files to corresponding VC++ Directories (IncludeDirectories and Library Directories) in property manager in Visual Studio to the same property as boost in previous step.

Build the solution.

Create directory with name VideoRecorder at /UE4 root/Engine/Source/ThirdParty, create there file VideoRecorder.Build.cs with the following content:

using UnrealBuildTool;
using System.IO;

public class VideoRecorder : ModuleRules
{
    public VideoRecorder(TargetInfo Target)
    {
        Type = ModuleType.External;

        const string LibraryPath = "PATH_TO_VIDEO_RECORDER_REPO/VideoRecorder";

        PublicIncludePaths.Add(Path.Combine(LibraryPath, "include"));

        if (Target.Platform == UnrealTargetPlatform.Win64)
        {
            PublicLibraryPaths.Add(Path.Combine(LibraryPath, "lib", "x64", "Release"));
            PublicAdditionalLibraries.Add("VideoRecorder.lib");
        }
    }
}

where PATH_TO_VIDEO_RECORDER_REPO is path to cloned repository.

Also do not forget to place FFmpeg dlls at appropriate location (for example along to application .exe this plugin is used with).

Note that this plugin has some DX11-specifiic performance optimizations so using it with other rendering APIs can result in poor performance.

More detailed plugin setup instructions can be found here (provided by yvasquezmonoku).

Clone this wiki locally