# Screen capture not recording video

**URL:** https://discourse.slicer.org/t/screen-capture-not-recording-video/9431
**Category:** Support
**Created:** [December 8, 2019, 2:21pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431 "2019-12-08T14:21:11Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sarvpriya1985](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarvpriya1985/32/4094_2.png) [@sarvpriya1985](https://discourse.slicer.org/u/sarvpriya1985)
#### Post date: [December 8, 2019, 2:21pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/1 "2019-12-08T14:21:11Z")

</div>

Hi,  
I am trying to capture video recording of 3D segmentation. However, after clicking capture, it runs but the recording is empty. I am getting an error.

I am pasting a screenshot of my settings and error.

 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/5/a5f697212e0860651b96e9b4f687f8cdc07c3563.jpeg)  
Thanks,  
Sarv

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [December 8, 2019, 2:34pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/2 "2019-12-08T14:34:28Z")

</div>

Hi Sarv - can you look in the error log? There should be more diagnostic info from ffmpeg.

---

<div class="post-metadata">

### Author: ![sarvpriya1985](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarvpriya1985/32/4094_2.png) [@sarvpriya1985](https://discourse.slicer.org/u/sarvpriya1985)
#### Post date: [December 8, 2019, 2:36pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/3 "2019-12-08T14:36:34Z")

</div>

Hi Steve,  
This is the error log I got.

 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/6/96a6d092a94d74a8ffe6f9ad21418da4f5c95a91.jpeg)

---

<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: [December 8, 2019, 2:59pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/4 "2019-12-08T14:59:07Z")

</div>

The error is “height not divisible by 2”. This is supposed to be taken care of by the module, but it seems that the mechanism is broken. We’ll fix this soon.

Until then, as a workaround, you can adjust the vertical size of the window and retry. After a few attempts, you should end up having a window height that is divisible by 2.

---

<div class="post-metadata">

### Author: ![sarvpriya1985](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarvpriya1985/32/4094_2.png) [@sarvpriya1985](https://discourse.slicer.org/u/sarvpriya1985)
#### Post date: [December 8, 2019, 3:38pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/5 "2019-12-08T15:38:00Z")

</div>

Thanks Andras, Changing the window height was able to fix it.

Thanks

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [January 6, 2020, 5:05pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/6 "2020-01-06T17:05:52Z")

</div>

I did some poking at this and from what I can see, the vtkImageClip() call isn’t doing anything. I look at the image dimensions before and after the clip operation and it’s the same. Also, if the minX and maxX are 0 and 980, respectively, does this mean the width is 980, or 981? (i.e., do you include the last pixel)?

---

<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 6, 2020, 5:09pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/7 "2020-01-06T17:09:21Z")

</div>

> [@hherhold](#):
>
> if the minX and maxX are 0 and 980

This means that the image size is 981, which cannot be encoded by many video codecs.

vtkImageClip should take care of this (clip the last row/column if the value is odd), but it seems to be broken due to recent update to the module. It would be great if you could have a look (file history should show how it worked before) and submit a pull request with a proposed fix.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [January 6, 2020, 5:21pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/8 "2020-01-06T17:21:34Z")

</div>

OK, I’ll see what changes have been made recently. Thanks for the info!

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [January 8, 2020, 2:08pm UTC](https://discourse.slicer.org/t/screen-capture-not-recording-video/9431/9 "2020-01-08T14:08:36Z")

</div>

This is exceedingly hard to reproduce on a Retina display. I seem to be only able to reproduce it when I use an external monitor. Not that this has anything to do with the issue in particular, but it’s interesting nonetheless. I’ve retrieved the version from a few checkins back and I’m checking diffs to see what change caused the issue. I’ll update again when I’m able to repro and fix it.
