# How Do I Save In-game Replays As .mp4 Files?

**URL:** <https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 8, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817 "2022-11-08T18:44:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ObjOri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/objori/32/591466_2.png) [@ObjOri](https://forums.unrealengine.com/u/ObjOri)\
**Post date:** [November 8, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817/1 "2022-11-08T18:44:50Z")

</div>

What’s up, everyone.

I’m building an in-game instant replay system which automatically saves replays to disk, but how can I encode these files as mp4 files?

Ultimately, I’d like to save in a variety of file formats. Can anyone help get me started?

Thank you so much.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 8, 2022, 7:59pm UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817/2 "2022-11-08T19:59:33Z")

</div>

If you are using the Replay System you won’t be able to. Replays are `data` that the engine uses to re-enact the simulation.

> **[Replay System](https://docs.unrealengine.com/5.0/en-US/using-the-replay-system-in-unreal-engine/)**
>
> Overview of the Replay system for recording and playback of gameplay

---

<div class="post-metadata">

**Author:** ![ObjOri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/objori/32/591466_2.png) [@ObjOri](https://forums.unrealengine.com/u/ObjOri)\
**Post date:** [November 8, 2022, 10:35pm UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817/3 "2022-11-08T22:35:33Z")

</div>

What about UMovieSceneCapture?

I ran into a brick wall, but this looks like something:

> [@Record & export gameplay footage at runtime (C++)](https://forums.unrealengine.com/t/record-export-gameplay-footage-at-runtime-c/447705):
>
> Hi, I’m currently researching the best way to record gameplay footage on runtime and then export it as a video file (in any format). I need the feature to be working in a packaged project, so solutions such as using matinee or sequences are exactly what I need but are editor only features. So far, I found 4 potential solutions: FrameCapture ([FrameCapture - Screen Capture and Video Recorder in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/slug/framecapture-screen-capture-and-video-recorder)). A C++ library that enables the recording and export to file of runtim…

Thought?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 8, 2022, 11:17pm UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817/4 "2022-11-08T23:17:45Z")

</div>

The plugin is your best bet. But it saves as an AVI. You’ll need to dig a bit for avi to mp4 conversion.

---

<div class="post-metadata">

**Author:** ![Gamji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gamji](https://forums.unrealengine.com/u/Gamji)\
**Post date:** [March 23, 2023, 11:05am UTC](https://forums.unrealengine.com/t/how-do-i-save-in-game-replays-as-mp4-files/686817/5 "2023-03-23T11:05:51Z")

</div>

Another solution is to include an exe of FFMPEG with your game.  
You can then launch the FFMPEG.exe with specific argurments to tell it to record the game’s window with resolution, bitrate and format of your choice.  
This will only work on PC thoughn but works well for in-editor stuff.
