# Is Media Framework Video Playback Tied to the Main Game Loop?

**URL:** <https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261>\
**Category:** Cinematics & Media\
**Tags:** stereo-rendering, recording, movie, unreal-engine, question\
**Created:** [August 16, 2016, 2:12am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261 "2016-08-16T02:12:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_08bdc5fd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08bdc5fd](https://forums.unrealengine.com/u/anonymous_user_08bdc5fd)\
**Post date:** [August 16, 2016, 2:12am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/1 "2016-08-16T02:12:12Z")

</div>

Hey Guys, So I’m using the Stereo Panoramic Movie capture plugin to record a 360 video, but running into issues when trying to record a video of an animated media texture. I have a mesh with a media texture playing in the scene while I’m recording 360 stereo with the plugin, and it seems that the video of the texture is continuing to play while the editor waits for the 360 images to render. Currently using the command line arguments `-usefixedtimestep -fps=30 -notexturestreaming` to lock the framerate while recording, but this doesn’t seem to affect media texture playback. My current theory is that the video playback is handled on a separate thread, and thus not constrained to the fixed timing. If this is true, anyone got an idea how to syncronize the framerate of the game and the playback speed of media textures? Thanks

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [August 29, 2016, 4:46pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/2 "2016-08-29T16:46:38Z")

</div>

This is currently not supported, sorry. We rely on the video decoder to provide the correct timing based on the desired playback speed. The decoder does not care what the Engine is doing - it will keep playing at the desired rate.

For 4.14 we will look into ways to synchronize media playback with the Engine, particular with Sequencer and movie capture.

---

<div class="post-metadata">

**Author:** ![MasterOfShapes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MasterOfShapes](https://forums.unrealengine.com/u/MasterOfShapes)\
**Post date:** [November 27, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/3 "2016-11-27T16:30:16Z")

</div>

Now that 4.14 is out is there a solution to this we are having the same issue. Would be great to be able to render them synchronized.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [November 28, 2016, 3:20pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/4 "2016-11-28T15:20:30Z")

</div>

This is still being worked on.

---

<div class="post-metadata">

**Author:** ![reedandrader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reedandrader](https://forums.unrealengine.com/u/reedandrader)\
**Post date:** [December 23, 2016, 12:30am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/5 "2016-12-23T00:30:48Z")

</div>

Pretty devastating for us too. We used video textures all the time with UDK but haven’t been able to render videos with them since UE4 came out. ☹

---

<div class="post-metadata">

**Author:** ![EstherZuidgeest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EstherZuidgeest](https://forums.unrealengine.com/u/EstherZuidgeest)\
**Post date:** [January 30, 2017, 10:59am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/6 "2017-01-30T10:59:08Z")

</div>

Is there a workaround? so for example taking the game time to drive the playrate of the movie somehow?  
I’ve tried to change the playrate of the media player but it doesn’t seem to work 😕 even if i change the rate to 0.1 it doesn’t show a difference. Here is my setup.

 ![124153-wolkenprobleem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/2/d82114d2144849f795de362911851ab0dddc979a.png)

---

<div class="post-metadata">

**Author:** ![PUCK.NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PUCK.NZ](https://forums.unrealengine.com/u/PUCK.NZ)\
**Post date:** [February 4, 2017, 1:39am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/7 "2017-02-04T01:39:02Z")

</div>

I too would real keen to see a workround / solve for this … without it I cant really transition to unreal properly 😕 … any  
progress out there?

---

<div class="post-metadata">

**Author:** ![PUCK.NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PUCK.NZ](https://forums.unrealengine.com/u/PUCK.NZ)\
**Post date:** [February 4, 2017, 1:42am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/8 "2017-02-04T01:42:12Z")

</div>

eg … would it be possible to use an image sequence instead of a movie and call a new image every rendered frame?

---

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [February 21, 2017, 12:19am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/9 "2017-02-21T00:19:59Z")

</div>

Has this been implemented in 4.15 yet?

---

<div class="post-metadata">

**Author:** ![reedandrader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reedandrader](https://forums.unrealengine.com/u/reedandrader)\
**Post date:** [February 21, 2017, 5:20pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/10 "2017-02-21T17:20:04Z")

</div>

@gmpreussnet any status update?

/edit

Just saw gmpreussner’s update on another thread:

> I’m currently working on time code support and proper audio/video frame-sync, which should allow you to do that. A first version of this will probably be in 4.16 as part of my big Media Framework 3.0 update. We may integrate the latest code into the Master branch two or three weeks after GDC.

---

<div class="post-metadata">

**Author:** ![Draise](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Draise](https://forums.unrealengine.com/u/Draise)\
**Post date:** [April 12, 2017, 12:05am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/11 "2017-04-12T00:05:17Z")

</div>

So this doesn’t technically work yet, still. I am looking forward to the update to 4.16 - this renders my linear animation impossible right now…

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [April 12, 2017, 3:23pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/12 "2017-04-12T15:23:51Z")

</div>

It won’t be supported in 4.16 either. This has been pushed to 4.17. There were simply too many changes required, and I’m still working on those, sorry.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63cb4d1f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63cb4d1f](https://forums.unrealengine.com/u/anonymous_user_63cb4d1f)\
**Post date:** [May 14, 2017, 9:01pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/13 "2017-05-14T21:01:04Z")

</div>

One thing you could try is record a sequence you want to adjust the speed with and time how long it actually takes to play the full sequence. Take the correct sequence time, Lets use 60 seconds for an easy example, and divide the recorded playback time, lets say 20 seconds. Slow your video down in something like Adobe Premiere to 1/3 the speed and use the new slower video. It will physically be 3 times longer and should then time correctly. I’ve had to do this with a video I’m working and it seems to at least make it usable until it’s fixed. You will obviously have to use a separate audio playback since it will not be usable in the slower video.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f9054581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f9054581](https://forums.unrealengine.com/u/anonymous_user_f9054581)\
**Post date:** [June 9, 2017, 6:22pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/14 "2017-06-09T18:22:36Z")

</div>

Does anyone have any thoughts on a way to make the movie an image sequence, then tying the corresponding file in the image sequence to the actual frame number. In theory, if you can get an image texture to reload the next image when the sequencer changes frames, the problem would be solved for rendering.

I understand this would be disastrous for real time playback performance, but that isn’t what we are talking about here.

Any ideas? Thoughts on how this could be done?

---

<div class="post-metadata">

**Author:** ![mmspiatek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmspiatek](https://forums.unrealengine.com/u/mmspiatek)\
**Post date:** [June 10, 2017, 6:07pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/15 "2017-06-10T18:07:50Z")

</div>

I think I have found an easy workaround for this problem. To have a media texture synchronised with my matinee during capture, I pause media player immediately after opening source and then I set new position of the video 25 times per second via level BP (media texture input video is 25 fps). As long as the video file wasn’t very large (4k and more), this method completely solved the problem for me, since the video progress was directly related to interp position of my matinee.

 ![200320-matineesync.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/1/2819507f6794bbd2ebfdf34cc965221ac2ae35a8.png)

---

<div class="post-metadata">

**Author:** ![Emixam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Emixam](https://forums.unrealengine.com/u/Emixam)\
**Post date:** [October 4, 2017, 12:15pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/16 "2017-10-04T12:15:07Z")

</div>

Is this really working ? Tried on my side, but no significant changes, but maybe I’m doing it wrong

---

<div class="post-metadata">

**Author:** ![reedandrader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reedandrader](https://forums.unrealengine.com/u/reedandrader)\
**Post date:** [October 5, 2017, 3:55pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/17 "2017-10-05T15:55:27Z")

</div>

After years and years of wanting this, even since the UDK days, it is finally possible. Use an image plate with image sequences and sequencer instead of video textures.

---

<div class="post-metadata">

**Author:** ![Arcane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arcane](https://forums.unrealengine.com/u/Arcane)\
**Post date:** [October 15, 2017, 9:51pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/18 "2017-10-15T21:51:04Z")

</div>

Have you fixed this in 4.17 - My one little movie that i have replicated 12 times using the media framework in 4.17 is playing back at like double time in sequencer render output.  
I’m doing a show for AdobeMax conference in Vegas next thurs and I really need this to work - Would rendering the movie to 60frames a sec help ?? Last thing I want to do is tell my client I can’t even get a little 20sec movie to play back right in Unreal

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [October 16, 2017, 12:34pm UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/19 "2017-10-16T12:34:41Z")

</div>

In 4.18, the ImgMedia player for image sequences is the first player plug-in that supports synchronized output in Sequencer. We haven’t had time yet to add support in the other players. This is currently scheduled for 4.19.

---

<div class="post-metadata">

**Author:** ![Artsell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Artsell](https://forums.unrealengine.com/u/Artsell)\
**Post date:** [November 3, 2017, 1:31am UTC](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261/20 "2017-11-03T01:31:04Z")

</div>

Can you tell me how to synchronize my image sequence with the sequencer? the framerate (30) don’t match will i am capturing with the Stereo Panorama Plugin. the media rate is faster then everything else. Thanks!

[Next page](https://forums.unrealengine.com/t/is-media-framework-video-playback-tied-to-the-main-game-loop/367261.md?page=2)
