that UE4 has specific modules and command line arguments in order to render a movie from the game viewport. This support is built using Sequencer (and so it can be used only within the Editor).
Is there a way to write a custom component that records a movie in a shipping build (maybe using the AVIWriter class)?
YES,using the AVIWriter class,I can records a movie in a shipping build,but the avi file is damaged,it’s without “RIFF” in front of file. there is no problem in editor.