# Magic Leap Hub’s Device Stream Issue - Recorded video saving failure

**URL:** <https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582>\
**Category:** General\
**Tags:** development, ml-hub\
**Created:** [March 13, 2023, 2:00pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582 "2023-03-13T14:00:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![filo.cino](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/filo.cino/32/2307_2.png) [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Post date:** [March 13, 2023, 2:00pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/1 "2023-03-13T14:00:39Z")

</div>

ML2 OS: 1.1.0  
ML Hub: ML Hub Version 2.0.8.202302102204  
ML2 Unity SDK: 1.3.0  
Device Stream settings: MR - 1080p - rtsps - 9:10 - UDP over Wi-Fi

After 2h video recording and streaming of MR via the ML2 device, the ML hub suddenly crash down without saving the video and the content was lost.

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [March 13, 2023, 7:01pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/2 "2023-03-13T19:01:10Z")

</div>

Thank you for your post @filo.cino. Please post error logs from the Magic Leap Hub if you are able. This would best help us understand the issue.

 ![image (12)](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/c9506112b55127af483cb2fffbd5e5b1a23dee51.jpeg)

---

<div class="post-metadata">

**Author:** ![filo.cino](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/filo.cino/32/2307_2.png) [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Post date:** [March 14, 2023, 12:44pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/3 "2023-03-14T12:44:15Z")

</div>

Here are the logs from the device of interest  
[MLHubLogs-20230314-133917-win.zip](https://forum.magicleap.cloud/uploads/short-url/ukX7txLem0fRPHVAbH6q8sejodO.zip) (21.2 KB)

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [March 14, 2023, 7:34pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/4 "2023-03-14T19:34:16Z")

</div>

Thank you for the logs @filo.cino. From the logs it appears you were generating an mp4 file, in which case there is a memory limit dependent on the host computer running ML Hub.

This is because GStreamer is building an index table in memory, which grows continuously until the recording is stopped, at which time the recording is written to the mp4 file.

However, there's no memory limit if streaming live to a device/screen and not generating an mp4 file.

---

<div class="post-metadata">

**Author:** ![filo.cino](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/filo.cino/32/2307_2.png) [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Post date:** [March 15, 2023, 8:41am UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/5 "2023-03-15T08:41:54Z")

</div>

How can I avoid this kind of error to occur when generating an mp4 file on a long time session? Do you suggest to stop and save the video every 2-5 min?

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [March 15, 2023, 2:53pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-recorded-video-saving-failure/1582/6 "2023-03-15T14:53:25Z")

</div>

You may intermittently save the video according to the memory size of the host computer running Magic Leap Hub, or increase the memory resources of the host computer.
