# How do i record video in game

**URL:** <https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008>\
**Category:** Blueprint\
**Tags:** how-to, how-do-i, unreal-engine, editor, UE4, question, Blueprint\
**Created:** [October 21, 2016, 9:22am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008 "2016-10-21T09:22:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [October 21, 2016, 9:22am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/1 "2016-10-21T09:22:41Z")

</div>

i want to capture a video in game and save it in game how do i do that?

---

<div class="post-metadata">

**Author:** ![ZBender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZBender](https://forums.unrealengine.com/u/ZBender)\
**Post date:** [October 21, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/2 "2016-10-21T16:58:19Z")

</div>

How about this one:

> **[How can i record player view gameplay using Matinee?](https://forums.unrealengine.com/questions/45050/is-there-a-way-to-record-gameplay-from-within-the.html)**
>
> Thus far Matinee has proven to be a good tool for cutscenes and flyby shots. However I would like to record the players main camera. I want to record a few shots of the gameplay for a demo. This means a live person will be playing. I could always use...

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [October 21, 2016, 6:28pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/3 "2016-10-21T18:28:47Z")

</div>

but i want to it to be saved like a screen shot library in game just for videos so i can just press a button and see it afterwords in a place in the game

---

<div class="post-metadata">

**Author:** ![ZBender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZBender](https://forums.unrealengine.com/u/ZBender)\
**Post date:** [October 22, 2016, 4:47pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/4 "2016-10-22T16:47:20Z")

</div>

In this cases try these posts:

Screenshot at runtime:  
[Screenshots at runtime - Blueprint - Unreal Engine Forums](https://answers.unrealengine.com/questions/152635/screenshots-at-runtime.html)

Screenshot in editor mode:  
[Taking Screenshots in Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Engine/Basics/Screenshots/)

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [October 22, 2016, 10:09pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/5 "2016-10-22T22:09:15Z")

</div>

but i need it in game to be in game not just a normal video a video that i can play after in game

---

<div class="post-metadata">

**Author:** ![yimox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yimox](https://forums.unrealengine.com/u/yimox)\
**Post date:** [November 10, 2017, 7:42am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/6 "2017-11-10T07:42:00Z")

</div>

Hi, Did you figure it out how to record video in game? That would be nice if you can share the solution.

---

<div class="post-metadata">

**Author:** ![678GUY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@678GUY](https://forums.unrealengine.com/u/678GUY)\
**Post date:** [November 10, 2017, 10:24am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/7 "2017-11-10T10:24:54Z")

</div>

no, sorry

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [January 24, 2018, 11:58pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/8 "2018-01-24T23:58:28Z")

</div>

I’m trying too.

Sequencer uses UMovieSceneCapture class. I got it working somewhat for me, but don’t expect fluid gameplay while it is running. The exported movies are huge (MJPEG Encoder).

I record a track for the camera to drive along and on record the player is dismissed from gameplay till record is done.

How you would get it in game right after is another issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [January 31, 2018, 11:33am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/9 "2018-01-31T11:33:21Z")

</div>

How do you code? By exposed function of Unreal? write it by use UMovieSceneCapture class’s function yourself ?

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [January 31, 2018, 3:00pm UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/10 "2018-01-31T15:00:07Z")

</div>

been using UMovieSceneCapture from C++ directly. No derived version. However it does not work out for us, to many problems, especially the encoder. We try to work with FFmpeg right now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 1, 2018, 2:20am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/11 "2018-02-01T02:20:40Z")

</div>

I just want to export video at runtime, can you share a little code for me? Tankyou

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 1, 2018, 3:33am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/12 "2018-02-01T03:33:40Z")

</div>

I found that sequence is inherited form UMovieSceneCapture , would i create a class that is inherited UMovieSceneCapture to do what i want to do?

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [February 1, 2018, 11:57am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/13 "2018-02-01T11:57:49Z")

</div>

The problem is the “just”. I would assume unreal provides something out of the box, but that is not the case  
Use the class directly.

UMovieSceneCapture\* movieCapture = NewObject();

[https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1414696-tsharedptr-destroyes-previous-rawpointer](https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1414696-tsharedptr-destroyes-previous-rawpointer)

> **[How to use Video Codec option in Render Movie Settings (Sequencer)](https://forums.unrealengine.com/questions/661936/how-to-use-video-codec-option-in-render-movie-sett.html)**
>
> How can I use “Video Codec” option in Render Movie Settings window (available from Sequencer editor when clicking on director’s clapboard icon)? No matter what I type there I always get an AVI file with sequence of JPEGs inside. Do I need to specify...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 2, 2018, 10:57am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/14 "2018-02-02T10:57:58Z")

</div>

I have finished that record video at runtime ,but now have a problem that sharedpoint previous destroy rawpoint . I saw your idea but i don’t know that send a what parameters to MakeShareable()? And I couldn’t find someone example.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 2, 2018, 11:05am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/15 "2018-02-02T11:05:05Z")

</div>

TSharedPtr viewport = MakeShareable(world-\>GetGameViewport()-\>GameViewport , ?);  
MovieSceneCapture-\>Initialize(viewport);

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [February 2, 2018, 11:27am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/16 "2018-02-02T11:27:24Z")

</div>

First Link.

TSharedPtr viewport = MakeShareable(world-\>GetGameViewport()-\>GameViewport , CustomDeleterClass());

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 22, 2018, 11:10am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/17 "2018-02-22T11:10:25Z")

</div>

Sorry, I still don’t understand it . Should I write a custom class ? But the function’s parameter type need to match . Which class should be inherited by this custom class?  
please help me ,my project always crash. thanks.

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [February 22, 2018, 11:41am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/18 "2018-02-22T11:41:10Z")

</div>

class FDeleterNot  
{  
public:  
void operator()(void\*) {}  
};

```
TSharedPtr viewport = MakeShareable(world->GetGameViewport()->GameViewport , FDeleterNot());
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 23, 2018, 6:31am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/19 "2018-02-23T06:31:51Z")

</div>

Thank you , that’s cool . now my project haven’t crash. and i have encountered another problem . I don’t know if you have encountered this problem , or if you have any suggestions.

> **[How hide all UMG in my gameviewport.](https://forums.unrealengine.com/questions/761865/how-hide-all-umg-in-my-gameviewport.html)**
>
> Now I have record a video at runtime , but i can’t hide UMG , maybe I could get all UMG and set visibility . but that’s bad to my project . So I want to use the unreal existing mechanism to achieve it . How to do it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 27, 2018, 9:48am UTC](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008/20 "2018-02-27T09:48:21Z")

</div>

Oh,My God! My project is finished , but after i package it , my code of UMovieSceneCapture is failure. i could’t export video,but i can do it in editor.  
have you have encountered this problem in your project?

[Next page](https://forums.unrealengine.com/t/how-do-i-record-video-in-game/374008.md?page=2)
