# Using movies with MW

**URL:** <https://mworks.discourse.group/t/using-movies-with-mw/703>\
**Category:** Support\
**Created:** [November 24, 2010, 4:48pm UTC](https://mworks.discourse.group/t/using-movies-with-mw/703 "2010-11-24T16:48:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 24, 2010, 4:48pm UTC](https://mworks.discourse.group/t/using-movies-with-mw/703/1 "2010-11-24T16:48:37Z")

</div>

Hey Davide,

How are things going?

Yes, the movies plugin works, and it is fairly straightforward to use. You’ll need to specify a frame rate (I used 29.97 Hz), and movie\_stats/movie\_error nicely keep track of events that occurred while the movie was played. Playing a movie is like showing an image. In pseudocode:

Queue movie (which is a container for a collection of frames)  
bring fixation dot to front  
update display  
Play movie

Stop movie  
Dequeue movie

I attached a working experiment that uses movies. Unfortunately, it won’t load since you don’t have the movies (too big to send), but you can look at the code.

I’m cc’ing Chris on this email in case he has a smaller example experiment or any additional info for you.

Good to hear from you,

Elias

On Mon, Nov 22, 2010 at 6:50 AM, Davide Zoccolan [zoccolan@sissa.it](mailto:zoccolan@sissa.it) wrote:  
Hi guys,

hope everything is fine with you.

One question about MW: I believe that you two are probably the only one that have ever tried loading and playing movies with MW.  
So, what is the state of things in this regards? Does MW actually allow that?  
Do you have any template experiment + movie that you can send me so I can see how it works?

Thanks  
davide

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 24, 2010, 4:48pm UTC](https://mworks.discourse.group/t/using-movies-with-mw/703/2 "2010-11-24T16:48:37Z")

</div>

Attachment: [RSVP\_ei\_setup4\_MRI\_02132010\_BLOCK30\_BLINK\_jitter\_light\_SCAN\_MOVIE.xml](https://mworks.discourse.group/uploads/short-url/66k8LN4fLKwgfVk3FD5oNlZKFWs.xml) (309 KB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 24, 2010, 6:50pm UTC](https://mworks.discourse.group/t/using-movies-with-mw/703/3 "2010-11-24T18:50:20Z")

</div>

Hi Davide,

I have just a few additions to what Elias said.

First, the movie\_stats and error\_reporting parameters that Elias mentioned don’t actually do anything. (As far as I can tell, they never did.) If the experiment includes them, they’re just ignored.

Second, the “Play Movie” and “Stop Movie” actions are deprecated, and MWorks will issue a warning if you use them. Use “Play Dynamic Stimulus” and “Stop Dynamic Stimulus” instead.

Finally, there are some runnable examples available [on GitHub](https://github.com/mworks-project/mw_examples/tree/master/Tests/Stimulus/Movie/). If you’ve installed the “Development files” component, you can also find them in `/Library/Application Support/MWorks/Developer/tests/XML/Stimulus/Movie`.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 11:52pm UTC](https://mworks.discourse.group/t/using-movies-with-mw/703/4 "2022-07-19T23:52:07Z")

</div>


