1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
5 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"></meta>
6 <title>ImageMagick: Motion Picture Digital Images</title>
7 <meta http-equiv="content-language" content="en-US"></meta>
8 <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
9 <meta http-equiv="reply-to" content="magick-users@imagemagick.org"></meta>
10 <meta name="application-name" content="ImageMagick"></meta>
11 <meta name="description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition, resize, rotate, shear, distort or transform images automagically."></meta>
12 <meta name="application-url" content="http://www.imagemagick.org"></meta>
13 <meta name="generator" content="PHP"></meta>
14 <meta name="keywords" content="motion, picture, digital, images, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"></meta>
15 <meta name="rating" content="GENERAL"></meta>
16 <meta name="robots" content="INDEX, FOLLOW"></meta>
17 <meta name="generator" content="ImageMagick Studio LLC"></meta>
18 <meta name="author" content="ImageMagick Studio LLC"></meta>
19 <meta name="revisit-after" content="2 DAYS"></meta>
20 <meta name="resource-type" content="document"></meta>
21 <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"></meta>
22 <meta name="distribution" content="Global"></meta>
23 <link rel="icon" href="../images/wand.png"></link>
24 <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon"></link>
25 <link rel="canonical" href="http://www.imagemagick.org"></link>
26 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"></link>
28 <!-- Add jQuery library -->
29 <script type="text/javascript" src="http://localhost/ajax/libs/jquery/1.7/jquery.min.js"></script>
31 <!-- Add mousewheel plugin (this is optional) -->
32 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
35 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen"></link>
36 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script>
38 <!-- Optionally add helpers - button, thumbnail and/or media -->
39 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" type="text/css" media="screen"></link>
40 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script>
41 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>
43 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.6" type="text/css" media="screen"></link>
44 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script>
46 <script type="text/javascript">
47 $(document).ready(function() {
48 $(".fancybox").fancybox();
52 <!-- ImageMagick style -->
53 <style type="text/css" media="all">
54 @import url("../www/magick.css");
58 <body id="www-imagemagick-org">
62 <div class="titlebar">
63 <div style="margin: 17px auto; float: left;">
64 <script type="text/javascript">
66 google_ad_client = "pub-3129977114552745";
67 google_ad_slot = "5439289906";
68 google_ad_width = 728;
69 google_ad_height = 90;
74 <a href="http://www.imagemagick.org/discourse-server/">
75 <img src="../images/logo.jpg" alt="ImageMagick Logo" style="width: 123px; height: 118px; border: 0px; float: right;"></img></a>
76 <a href="../index.html">
77 <img src="../images/sprite.jpg" alt="ImageMagick Sprite" style="width: 114px; height: 118px; border: 0px; float: right;"></img></a>
83 <a title="About ImageMagick" href="../index.html">About ImageMagick</a>
86 <a title="Binary Releases" href="binary-releases.html">Binary Releases</a>
89 <a title="Binary Release: Unix" href="binary-releases.html#unix">Unix</a>
92 <a title="Binary Release: MacOS X" href="binary-releases.html#macosx">Mac OS X</a>
95 <a title="Binary Release: iOS" href="binary-releases.html#iOS">iOS</a>
98 <a title="Binary Release: Windows" href="binary-releases.html#windows">Windows</a>
100 <div class="sep"></div>
102 <a title="Command-line Tools" href="command-line-tools.html">Command-line Tools</a>
105 <a title="Command-line Tools: Processing" href="command-line-processing.html">Processing</a>
108 <a title="Command-line Tools: Options" href="command-line-options.html">Options</a>
111 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
114 <a title="Program Interfaces" href="api.html">Program Interfaces</a>
117 <a title="Program Interface: MagickWand" href="magick-wand.html">MagickWand</a>
120 <a title="Program Interface: MagickCore" href="magick-core.html">MagickCore</a>
123 <a title="Program Interface: PerlMagick" href="perl-magick.html">PerlMagick</a>
126 <a title="Program Interface: Magick++" href="magick++.html">Magick++</a>
128 <div class="sep"></div>
130 <a title="Install from Source" href="install-source.html">Install from Source</a>
133 <a title="Install from Source: Unix" href="install-source.html#unix">Unix</a>
136 <a title="Install from Source: Windows" href="install-source.html#windows">Windows</a>
139 <a title="Resources" href="resources.html">Resources</a>
142 <a title="Architecture" href="architecture.html">Architecture</a>
145 <a title="Download" href="download.html">Download</a>
147 <div class="sep"></div>
149 <a title="Search" href="search.html">Search</a>
151 <div class="sep"></div>
153 <a title="Site Map" href="sitemap.html">Site Map</a>
156 <a title="Site Map: Links" href="links.html">Links</a>
158 <div class="sep"></div>
160 <a title="Support ImageMagick Development" href="support.html">Support ImageMagick Development</a>
164 <div class="eastbar">
166 <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a></div>
168 <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
169 <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" width="93" height="20" border="0"></img></a>
177 <h1>ImageMagick Motion Picture Formats</h1>
178 <p class="navigation-index">[<a href="motion-picture.html#intro">Introduction to Motion Picture Formats</a> • <a href="motion-picture.html#log">Log Format</a> • <a href="motion-picture.html#properties">DPX properties</a> • <a href="motion-picture.html#settings">DPX Settings</a>]</p>
180 <h2><a id="intro"></a>Introduction to Motion Picture Formats</h2>
181 <div class="doc-section">
183 <p>DPX (SMPTE 268M-2003) - This format is used in Motion Picture and Effects industry that makes particular use of the extensive header information and the format's flexibility in being able to handle high dynamic range and logarithmic color values at a variety of bit depths using RGB or YCbCr pixel descriptions. It is based on, but largely supercedes, Kodak's Cineon format that has more a more film specific header.</p>
185 <p>One example of it's use includes scanning film for use in post production. Each frame is stored as an individual DPX file ranging from 2k (2048 pixels wide) to 8k (8192 pixels wide - for IMAX frames) at anything between 8 to 64 bits per color component. A sequence of these might then be processed using compositing software, altering the color or adding visual effects. Once complete they might then be recorded digitally to tape or projected back on to film.</p>
187 <p>The color values for each pixel are often stored logarithmically (particularly if the sequence is destined to be transferred back on to film) which more naturally reflects the density of how color information is stored in the emulsion on the original film. When viewed without alteration, logarithmic files appear to have very low contrast and requires a 'look up table' to translate the logarithmic image to something that resembles what you might see if the image was transferred back to film and projected in a cinema. Apart from making the image linear (like most typical computer images) and adjusting the gamma level this table sets where the black and white point lies.</p>
189 <p>For a 10 bit logarithmic image where each color component value ranges from 0 to 1023 the black and white points are normally set at 95 for black and 685 for white. What this means is that the logarithmic file stores color values that are lighter than what the linear version will display as pure white and darker than what it will display as pure black. This extra information therefore remains available for an effects artists who might wish to alter the brightness of the image after it has been stored as a DPX file.</p>
191 <p>As an example, had this information been lost, reducing the brightness of an image uniformly would result in highlights becoming darker, whereas with this extra information the highlights instead reduce in size and start showing details that were previously too bright to be seen. The latter is far closer to what happens in the real world.</p>
193 <p>The header can contain Film and/or Television specific data related to a production. For example the television header can contain a SMPTE time code so that shots exported as a DPX sequence from a production's edit can be easily replaced once any effects have been added. The film header holds information about the reel of film the frames originated from and various camera settings that were used while filming. All these details usually stay with the images as they are passed between post-production companies.</p>
197 <h2><a id="log"></a>Log Format</h2>
198 <div class="doc-section">
200 <p>The color values for each pixel are often stored logarithmically (particularly if the sequence is destined to be transferred back on to film) which more naturally reflects the density of how color information is stored in the emulsion on the original film. When viewed without alteration logarithmic files appear to have very low contrast (leftmost image), and so require a 'look up table' to translate the logarithmic image to something that resembles what you might see if the image was transferred back to film and projected in a cinema (rightmost image). Apart from making the image linear (like most typical computer images) and adjusting the gamma level this table sets where the black and white point lies.</p>
203 <a href="../images/bluebells_log.jpg"><img src="../images/bluebells_log.jpg" width="384" height="288" class="image-slices" alt="bluebells-log"></img></a>
204 <a href="../images/bluebells_lin.jpg"><img src="../images/bluebells_lin.jpg" width="384" height="288" class="image-slices" alt="bluebells-linear"></img></a>
207 <p>For a 10 bit logarithmic image where each color component value ranges from 0 to 1023 the black and white points are normally set at 95 for black and 685 for white. What this means is that the logarithmic file stores color values that are lighter than what the linear version will display as pure white and darker than what it will display as pure black. This extra information therefore remains available for an effects artists who might wish to alter the brightness of the image after it has been stored as a DPX file.</p>
209 <p>As an example, had this information been lost, reducing the brightness of a linear image uniformly would result in highlights becoming darker (leftmost image), whereas with this extra information the highlights instead reduce in size and start showing details that were previously too bright to be seen (rightmost image). The latter is far closer to what happens in the real world.</p>
212 <a href="../images/bluebells_clipped.jpg"><img src="../images/bluebells_clipped.jpg" width="384" height="288" class="image-slices" alt="bluebells-clipped"></img></a>
213 <a href="../images/bluebells_darker.jpg"><img src="../images/bluebells_darker.jpg" width="384" height="288" class="image-slices" alt="bluebells-darker"></img></a>
218 <h2><a id="properties"></a>DPX Properties</h2>
219 <div class="doc-section">
221 <p>ImageMagick supports these DPX properties:</p>
232 dpx:film.frame_position
238 dpx:film.sequence_length
239 dpx:film.shutter_angle
242 dpx:orientation.aspect_ratio
243 dpx:orientation.border
244 dpx:orientation.device
245 dpx:orientation.filename
246 dpx:orientation.serial
247 dpx:orientation.x_center
248 dpx:orientation.x_offset
249 dpx:orientation.x_size
250 dpx:orientation.y_center
251 dpx:orientation.y_offset
252 dpx:orientation.y_size
253 dpx:television.black_gain
254 dpx:television.black_level
255 dpx:television.break_point
256 dpx:television.field_number
257 dpx:television.frame_rate
259 dpx:television.integration_times
260 dpx:television.interlace
261 dpx:television.padding
262 dpx:television.time.code
263 dpx:television.time_offset
264 dpx:television.user.bits
265 dpx:television.vertical_sample_rate
266 dpx:television.video_signal
267 dpx:television.white_level
272 <p> To determine which properties are associated with your DPX image, use this command for example:</p>
274 <p class="crt"><span class="crtprompt"> $ </span><span class="crtin">identify -verbose bluebells.dpx</span></p>
275 <p>To identify a particular property, try this:</p>
277 <p class="crt"><span class="crtprompt"> $ </span><span class="crtin">identify -format "%[dpx:television.time.code]" bluebells.dpx</span></p>
278 <p>Finally, to set a property:</p>
280 <p class="crt"><span class="crtprompt"> $ </span><span class="crtin">convert bluebells.dpx -define dpx:television.time.code=10:00:02:15 bluebells-001.dpx</span></p>
283 <h2><a id="settings"></a>DPX Settings</h2>
284 <div class="doc-section">
286 <p>Use <a href="command-line-options.html#set">-set</a> to specify the image or film gamma or black and white points. For example use:
290 <p class="crtsnip">-set gamma 1.7</p>
292 <p class="crtsnip">-set film-gamma 0.6</p>
294 <p class="crtsnip">-set reference-black 95</p>
296 <p class="crtsnip">-set reference-white 685</p>
298 <p class="crtsnip">-set profile dpx:user.data</p>
307 <span id="linkbar-west"> </span>
309 <span id="linkbar-center">
310 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
311 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> •
312 <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
314 <span id="linkbar-east"> </span>
317 <span id="footer-west">© 1999-2013 ImageMagick Studio LLC</span>
318 <span id="footer-east"> <a href="contact.html">Contact the Wizards</a></span>
320 <div style="clear: both; margin: 0; width: 100%; "></div>