# Issue loading mp4 file in MWorks

**URL:** <https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148>\
**Category:** Support\
**Created:** [February 4, 2021, 6:34pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148 "2021-02-04T18:34:33Z")\
**Posts on this page:** 6\
**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:** [February 4, 2021, 6:34pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/1 "2021-02-04T18:34:33Z")

</div>

Hi Chris,

I’m running Mworks version 0.8 on a Mac OS 10.14.3, and I’m having trouble loading multiple mp4 videos (I can load up to 400 videos, but if I load say 500 or 600, it gets stuck — loading time \> 30min).I use a range replicator to load my videos.

I’ve attached the MWorks output below. Do you have any guessed on why this might be happening? Any clues on where to look will be helpful!

Thanks in advance!

Sachi

---

<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:** [February 4, 2021, 6:34pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/2 "2021-02-04T18:34:33Z")

</div>

Attachment: [MWorks\_output.txt](https://mworks.discourse.group/uploads/short-url/wRz0b56uuTcS3QbPoA4conMX4LZ.txt) (56.4 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:** [February 4, 2021, 6:55pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/3 "2021-02-04T18:55:40Z")

</div>

Hi Sachi,

From the console output, it looks like the experiment begins to load normally but never completes. Is that correct? Does the default gray background appear on the stimulus display before things get stuck? If yes, then it’s possible you’re running out of RAM while loading the videos, and you may need to use [explicit loading](https://mworks.github.io/documentation/latest/components/video_stimulus.html#deferred) and [load](https://mworks.github.io/documentation/latest/components/load_stimulus.html) and [unload](https://mworks.github.io/documentation/latest/components/unload_stimulus.html) individual videos as needed. About how large is each video file?

Alternatively, if loading gets stuck _before_ the gray background appears, then you’re probably running out of RAM while copying the video files from MWClient to MWServer. Michael has [run in to this issue](https://mworks.tenderapp.com/discussions/problems/499) on iPad’s. Unfortunately, I don’t have a good solution for this problem yet.

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:** [February 22, 2021, 1:59pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/4 "2021-02-22T13:59:34Z")

</div>

Hi Sachi,

Were you able to resolve your video loading issue? Do you need any assistance implementing workarounds?

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:** [February 22, 2021, 3:49pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/5 "2021-02-22T15:49:03Z")

</div>

Hi Chris,

Sorry for not getting back. You were right about running out of RAM (each video is ~200kB). Our workaround has been to split the 600 video set into two and run them separately. (Presenting all 600 videos as a sequence of image frames also works, so in the future, if I have a ‘big’ video set, I’ll revert to that).

Thanks for checking in,—and for your help,—Chris!

Sachi

---

<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, 7:13pm UTC](https://mworks.discourse.group/t/issue-loading-mp4-file-in-mworks/148/6 "2022-07-19T19:13:16Z")

</div>


