<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FModules%2FScreenCapture</id>
	<title>Documentation/4.6/Modules/ScreenCapture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FModules%2FScreenCapture"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Modules/ScreenCapture&amp;action=history"/>
	<updated>2026-04-17T12:01:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.6/Modules/ScreenCapture&amp;diff=47963&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.6</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Modules/ScreenCapture&amp;diff=47963&amp;oldid=prev"/>
		<updated>2016-11-07T08:00:40Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-header}}&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Introduction and Acknowledgements}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-start|{{documentation/modulename}}}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-row}}&lt;br /&gt;
This work was was funded by Cancer Care Ontario and the Ontario Consortium for Adaptive Interventions in Radiation Oncology (OCAIRO).&amp;lt;br&amp;gt;&lt;br /&gt;
Author: Andras Lasso, PerkLab, Queen's University&amp;lt;br&amp;gt;&lt;br /&gt;
Contact: Andras Lasso, &amp;lt;email&amp;gt;lasso@queensu.ca&amp;lt;/email&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-end}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Module Description}}&lt;br /&gt;
This module is for acquiring screen capture videos of Slicer viewers. The module can capture image sequences from slice and 3D views and export them as a sequence of images or a video file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Use Cases}}&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=LG5H66ikF1w}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Panels}}&lt;br /&gt;
* '''Input'''&lt;br /&gt;
** '''View to capture:''' select slice or 3D view that the content will be captured of&lt;br /&gt;
** '''Animation mode:'''&lt;br /&gt;
*** 3D rotation: Acquire video of a rotating 3D view (for 3D viewer only). For smooth repeated display of a 360-degree rotation it is recommended to choose 31 or 61 as &amp;quot;Number of images&amp;quot;.&amp;lt;br&amp;gt;[[File:SlicerCaptureRotation.gif]]&lt;br /&gt;
*** slice sweep: Acquire video while going through selected range of image frames (for slice viewer only).&amp;lt;br&amp;gt;[[File:SlicerCaptureSweep.gif]]&lt;br /&gt;
*** slice fade: Acquire video while fading between the foreground and background image (for slice viewer only).&amp;lt;br&amp;gt;[[File:SlicerCaptureFade.gif]]&lt;br /&gt;
*** sequence: Acquire video while going through items in the selected sequence browser. Requires installation of [[documentation/{{documentation/version}}/Extensions/Sequences|Sequences]] extension.&amp;lt;br&amp;gt;[[File:SlicerCaptureSequence.gif]]&lt;br /&gt;
* '''Output'''&lt;br /&gt;
** '''Number of images:''' Defines how many frames are generated in the specified range. Higher number results in smoother animation but larger video file.&lt;br /&gt;
** '''Output directory:''' Image frames or video file will be saved in this directory.&lt;br /&gt;
** '''Video export:''' If checked then exported images are converted to a single video file in the selected format. Requires [[#Setting up ffmpeg|ffmpeg]].&lt;br /&gt;
** '''Video file name:''' File name of the created video.&lt;br /&gt;
** '''Video length:''' Set total replay time of the video by adjusting recommended replay speed.&lt;br /&gt;
*** H264: modern compressed video format, compatible with most contemporary video players.&lt;br /&gt;
*** MPEG4: commonly used compressed video format, mostly compatible with older video players.&lt;br /&gt;
*** Animated GIF: file format that provides lower quality images but allows embedding animations into webpages as simple images.&lt;br /&gt;
* '''Advanced'''&lt;br /&gt;
** '''ffmpeg executable:''' Path to ffmpeg executable. Requires download and installation of [[#Setting up ffmpeg|ffmpeg]]. Only needed if video export is selected.&lt;br /&gt;
** '''Video extra options:''' Options for ffmpeg that controls video format and quality. Only needed if video export is selected.&lt;br /&gt;
*** Parameters ''-i'' (input files), ''-y'' (overwrite without asking), ''-r'' (frame rate) ''-start_number'' are specified by the module and therefore should not be included in the extra options.&lt;br /&gt;
*** Examples:&lt;br /&gt;
**** Add a watermark image (MyLogo.png, 10 pixels from the top-right corner) to exported H.264 or MPEG-4 videos:&lt;br /&gt;
***** Copy MyLogo.png to the output folder&lt;br /&gt;
***** Add this to video extra options ''-vf movie=MyLogo.png[watermark];[in][watermark]overlay=main_w-overlay_w-10:10[out]''&lt;br /&gt;
**** Set grayscale animated GIF width to 200 pixels: ''-vf format=gray,scale=200:-1''&lt;br /&gt;
**** Set color animated GIF width to 200 pixels: ''-filter_complex [0:v]scale=200:-1[scaled];[0:v]palettegen[pal];[scaled][pal]paletteuse''&lt;br /&gt;
*** More information about available options:&lt;br /&gt;
*** https://trac.ffmpeg.org/wiki/Encode/H.264&lt;br /&gt;
**** https://trac.ffmpeg.org/wiki/Encode/MPEG-4&lt;br /&gt;
**** https://trac.ffmpeg.org/wiki/Encode/YouTube&lt;br /&gt;
**** https://ffmpeg.org/ffmpeg-all.html&lt;br /&gt;
** '''Image file name pattern:''' Defines image file naming pattern. %05d will be replaced by the image number (5 numbers, padded with zeros). Only needed if video export is not selected.&lt;br /&gt;
=== Setting up ffmpeg ===&lt;br /&gt;
FFmpeg library is not packaged with 3D Slicer due to large package size and licensing requirements for some video compression methods (see https://ffmpeg.org/legal.html). The FFmpeg library has to be downloaded and set up only once and 3D Slicer will remember its location.&lt;br /&gt;
==== Windows setup instructions ====&lt;br /&gt;
* Download ffmpeg from here: https://ffmpeg.org/download.html (click Windows icon, select a package, for example 'Download FFmpeg64-bit static')&lt;br /&gt;
* Extract downloaded package (for example, to ''C:\Users\Public'')&lt;br /&gt;
* In ''Advanced'' section, ''ffmpeg executable'': select path for ''ffmpeg.exe'' (for example, ''C:\Users\Public\ffmpeg-20160912-bc7066f-win32-static\bin\ffmpeg.exe'')&lt;br /&gt;
&lt;br /&gt;
==== MacOS setup instructions ====&lt;br /&gt;
* Install homebrew (from http://brew.sh/)&lt;br /&gt;
* Run: ''brew install ffmpeg''&lt;br /&gt;
* In ''Advanced'' section, ''ffmpeg executable'': select ''/usr/local/bin/ffmpeg''.&lt;br /&gt;
&lt;br /&gt;
==== Linux setup instructions ====&lt;br /&gt;
Run these commands from the terminal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg&lt;br /&gt;
cd ffmpeg&lt;br /&gt;
sudo apt-get install libx264-dev&lt;br /&gt;
./configure --enable-gpl --enable-libx264 --prefix=${HOME}&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The binary will be in ${HOME}/bin/ffmpeg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{documentation/{{documentation/version}}/module-section|References}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{documentation/{{documentation/version}}/module-section|Information for Developers}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-footer}}&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>