# QuickTime playback unstable on Windows 10

**URL:** <https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803>\
**Category:** Using Cinder\
**Created:** [July 24, 2017, 2:00pm UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803 "2017-07-24T14:00:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pholz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/pholz/32/322_2.png) [@pholz](https://discourse.libcinder.org/u/pholz)\
**Post date:** [July 24, 2017, 2:00pm UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803/1 "2017-07-24T14:00:46Z")

</div>

I am playing back QuickTime videos with Cinder 0.9.1 on Windows 10 and have found this highly unstable. I am calling `getTexture()` in my update function (similar to the samples) and things generally work, but depending on format, size etc a video might play with video or audio artifacts, or it might stop playback and crash the whole application a minute later. It happens more often in release builds, but when it does happen in debug builds there appear to be invalid pointers somewhere deep inside the code that copies data into surfaces, with no real indication of the underlying problem.

mp4/h264 are particularly bad; movs with motion-jpeg encoding seem to do a bit better. I’ve been finding it extremely hard to consistently reproduce these issues. Has anyone experienced similar problems? Are there video formats that have been proven to work well with cinder/quicktime, or ones that are known to cause problems?

---

<div class="post-metadata">

**Author:** ![balachandran\_c](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balachandran\_c](https://discourse.libcinder.org/u/balachandran_c)\
**Post date:** [July 24, 2017, 4:51pm UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803/2 "2017-07-24T16:51:16Z")

</div>

This has been my experience too. If I do not need alpha, I use Cinder-WMFVideo, which has been stable for my purposes. I have seen some people (experienced) mention Hap codec for reliable playback on windows. Hap supports alpha, but the downside is having to handle large files.

---

<div class="post-metadata">

**Author:** ![pholz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/pholz/32/322_2.png) [@pholz](https://discourse.libcinder.org/u/pholz)\
**Post date:** [July 26, 2017, 9:05am UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803/3 "2017-07-26T09:05:56Z")

</div>

FWIW, I’ve been doing some more tests. I load multiple videos in my application and the situation appears to improve when I free `MovieGlRef`s for each video soon as I don’t need it anymore.

Hap Q as codec for some of the more problematic files seems to also improve the situation.

---

<div class="post-metadata">

**Author:** ![pholz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/pholz/32/322_2.png) [@pholz](https://discourse.libcinder.org/u/pholz)\
**Post date:** [August 1, 2017, 9:43am UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803/4 "2017-08-01T09:43:58Z")

</div>

On the topic of Hap: It seems to work for me, but I’m curious whether the GPU decompression is actually utilized? I have only installed the Hap Codec, but there also seem to be various Hap CinderBlocks floating around (all 3+ years old). Is one of those necessary to “properly” use Hap?

---

<div class="post-metadata">

**Author:** ![pholz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/pholz/32/322_2.png) [@pholz](https://discourse.libcinder.org/u/pholz)\
**Post date:** [August 1, 2017, 4:26pm UTC](https://discourse.libcinder.org/t/quicktime-playback-unstable-on-windows-10/803/5 "2017-08-01T16:26:06Z")

</div>

It seems to be the case that GPU decompression of Hap needs to be implemented specifically. I started working on updating the Hap Cinderblock for 0.9.1 here: [https://github.com/pholz/Cinder-Hap2](https://github.com/pholz/Cinder-Hap2)
