Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

how do i record video in game

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

Product Version: UE 4.12
more ▼

asked Oct 21 '16 at 09:22 AM in Blueprint Scripting

avatar image

141 33 32 37

avatar image yimox Nov 10 '17 at 07:42 AM

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

avatar image 678GUY Nov 10 '17 at 10:24 AM

no, sorry

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first
more ▼

answered Oct 21 '16 at 04:58 PM

avatar image

81 1 2 7

avatar image 678GUY Oct 21 '16 at 06:28 PM

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

avatar image ZBender Oct 22 '16 at 04:47 PM
avatar image 678GUY Oct 22 '16 at 10:09 PM

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

avatar image JackMaDrinkCafe Mar 20 '19 at 07:31 AM

Hey bro ,have you conquered this problem? I ve met the same difficulty with you

avatar image Rumbleball Mar 20 '19 at 12:17 PM

In this case create the video on disk and load it in game. Loading it in should not be the problem.

Edit: Well, maybe it is, as is with textures. You can try creating the movie asset at runtime. This definitly needs C++. If you have the asset, plug it into a media player. Not sure though if this works in a packaged game as I don't know what happens during cooking phase when packaging.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Jan 24 '18 at 11:58 PM

avatar image

267 8 20 21

avatar image Wilson_wang Jan 31 '18 at 11:33 AM

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

avatar image Rumbleball Jan 31 '18 at 03:00 PM

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.

avatar image Wilson_wang Feb 01 '18 at 02:20 AM

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

avatar image Wilson_wang Feb 01 '18 at 03:33 AM

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

avatar image Rumbleball Feb 01 '18 at 11:57 AM

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();



avatar image Wilson_wang Feb 02 '18 at 10:57 AM

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.

avatar image Wilson_wang Feb 02 '18 at 11:05 AM

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

avatar image Rumbleball Feb 02 '18 at 11:27 AM

First Link.

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

avatar image Wilson_wang Feb 22 '18 at 11:10 AM

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.

avatar image Rumbleball Feb 22 '18 at 11:41 AM
 class FDeleterNot
     void operator()(void*) {}

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

avatar image Wilson_wang Feb 23 '18 at 06:31 AM

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.


avatar image Wilson_wang Feb 27 '18 at 09:48 AM

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?

avatar image Rumbleball Feb 27 '18 at 09:59 AM

Never came thus far. Quit using UMovieSceneCapture cause of the performance impact and useless export format.

avatar image 欧米哥 Aug 03 '18 at 05:52 PM

Hi Wilson_wang, have you solve this "not working after packaging" problem?

avatar image MISSOURI-X Dec 10 '18 at 08:55 AM

I am also seeking answers.

avatar image bohexiaoxin Mar 14 '19 at 12:15 PM

can you share some other code for me? thank you

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question