UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WmfMp4Writer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "WmfPrivate.h"
6
8#include "MediaPacket.h"
9#include "Misc/Optional.h"
11
12class FWmfMp4Writer final
13{
14public:
15 bool Initialize(const TCHAR* Filename);
16
21 TOptional<DWORD> CreateAudioStream(const FString& Codec, const AVEncoder::FAudioConfig& Config);
22
26 TOptional<DWORD> CreateVideoStream(const FString& Codec, const AVEncoder::FVideoConfig& Config);
27
28 bool Write(const AVEncoder::FMediaPacket& InSample, DWORD StreamIndex);
30
31 bool Start();
32 bool Finalize();
33
34private:
36};
37
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
Definition WmfMp4Writer.h:13
TOptional< DWORD > CreateVideoStream(const FString &Codec, const AVEncoder::FVideoConfig &Config)
Definition WmfMp4Writer.cpp:65
bool Finalize()
Definition WmfMp4Writer.cpp:138
PRAGMA_ENABLE_DEPRECATION_WARNINGS bool Start()
Definition WmfMp4Writer.cpp:102
PRAGMA_DISABLE_DEPRECATION_WARNINGS TOptional< DWORD > CreateAudioStream(const FString &Codec, const AVEncoder::FAudioConfig &Config)
Definition WmfMp4Writer.cpp:25
Definition RefCounting.h:454
Definition Optional.h:131