# Play a saved movie with PsychoPy

**URL:** <https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622>\
**Category:** Coding\
**Created:** [October 29, 2019, 10:17am UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622 "2019-10-29T10:17:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kathia](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kathia/32/8794_2.png) [@Kathia](https://discourse.psychopy.org/u/Kathia)\
**Post date:** [October 29, 2019, 10:17am UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622/1 "2019-10-29T10:17:43Z")

</div>

Hello,

I have recently created a stimulus that is a 3D animation. As I have to run this stim on a slow computer, I decided to save the frames into a movie and then play the movie.

I have found the PsychoPy functions to get ( `win.getMovieFrame()` ) and save the frames (`win.saveMovieFrames`), but I fail to find a function to play the movie. I have found `visual.MovieStim(myWin, 'frame.mp4', flipVert=False)`, but there is a bug that has been previously discussed [here](https://github.com/psychopy/psychopy/issues/1532), and it seems that this function is no longer supported. What would be the alternative?

Thanks very much for your help!

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [October 29, 2019, 11:22am UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622/2 "2019-10-29T11:22:08Z")

</div>

Did the movie save correctly? If so then playing it with MovieStim3 rather than MovieStim is probably the right option (as in the demos and the Builder outputs)

---

<div class="post-metadata">

**Author:** ![Kathia](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kathia/32/8794_2.png) [@Kathia](https://discourse.psychopy.org/u/Kathia)\
**Post date:** [October 29, 2019, 2:13pm UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622/3 "2019-10-29T14:13:57Z")

</div>

Thanks for your reply!  
The movie seems to save correctly. Where can I fin the MovieStim3 demo? I only found the previous version in the documentation.

---

<div class="post-metadata">

**Author:** ![Kathia](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kathia/32/8794_2.png) [@Kathia](https://discourse.psychopy.org/u/Kathia)\
**Post date:** [October 29, 2019, 3:41pm UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622/4 "2019-10-29T15:41:11Z")

</div>

@jon I have only found Moviestim.py and Moviestim2.py in [the demos on Github](https://github.com/psychopy/psychopy/tree/master/psychopy/demos/coder/stimuli)

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [October 29, 2019, 4:01pm UTC](https://discourse.psychopy.org/t/play-a-saved-movie-with-psychopy/9622/5 "2019-10-29T16:01:28Z")

</div>

Ah, yes, but the code in the demo for MovieStim actually uses MovieStim3, which is by far the better option
