# Video compression in Slicer core

**URL:** <https://discourse.slicer.org/t/video-compression-in-slicer-core/1846>\
**Category:** Development\
**Created:** [January 15, 2018, 3:13pm UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846 "2018-01-15T15:13:33Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 21, 2018, 2:40am UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/21 "2018-01-21T02:40:14Z")

</div>

You can use Slicer’s Python 2.7 interpreter if there is no system Python or if it’s too old.  
Why do you need Python for building?

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [January 21, 2018, 2:52am UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/22 "2018-01-21T02:52:58Z")

</div>

Because the Linux/Mac system built VP9 in OpenIGTlink, which depends on YASM, and YASM is superbuilt too. To build YASM, a python interpreter is used.

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [January 22, 2018, 6:39pm UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/23 "2018-01-22T18:39:25Z")

</div>

Hi Andras, hi Jean @jcfr, @lassoan

Just a short question, i am currently using slicer-build python interpreter to build YASM, however, i try the python interpreter at following folders:

```auto
Path/To/Slicer-build/python-build/bin/python
Path/To/Slicer-build/python-install/bin/python
Path/To/Slicer-build/python-install/bin/SlicerPython

```

the build of YASM was successful. however, when i use the yasm to build VP9, the following error occurred:  
**yasm: FATAL: could not load standard modules**

Do you possible know the solution to this problem?

Best,  
Longquan

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 22, 2018, 6:48pm UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/24 "2018-01-22T18:48:13Z")

</div>

Probably you have to add the folder where yasmstd library is located to Python paths.

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [January 23, 2018, 10:44pm UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/25 "2018-01-23T22:44:13Z")

</div>

Hi All,

I just checked the Slicer nightly build of OpenIGTLinkIF module.  
It failed on building vp9 codec. the reason is the compiler “Clang 3.1.0” is too old, do you guys have any suggestion?

Best,  
Longquan

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 23, 2018, 11:26pm UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/26 "2018-01-23T23:26:17Z")

</div>

I know that the compiler will be updated on Windows from VS2013 to VS2015 for nightly builds within a couple of days. I’m not sure if compiler update is planned for MacOSX as well (we used an old build toolset for compatibility with old systems).

@jcfr

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [January 24, 2018, 12:32am UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/27 "2018-01-24T00:32:31Z")

</div>

> [@lassoan](#):
>
> I’m not sure if compiler update is planned for MacOSX as well

See [Transition of nightly build to Qt5, VTK9, CMake 3.9 and C++11](https://discourse.slicer.org/t/transition-of-nightly-nuild-to-qt5-vtk9-cmake-3-9-and-c-11/1918)

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [January 24, 2018, 2:57am UTC](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846/28 "2018-01-24T02:57:25Z")

</div>

Great!  
I made the vp9 binaries under vs 2015 for 32 bit and 64 bit already. So in the next days we could have the new OpenIGTLink in the nightly build slicer for windows system.  
Also the clang version in MacOSX is sufficient for VP9 built. I am looking forward to see the build result!

Best,  
Longquan

[Previous page](https://discourse.slicer.org/t/video-compression-in-slicer-core/1846.md?page=1)
