]> granicus.if.org Git - imagemagick/blob - www/motion-picture.html
(no commit message)
[imagemagick] / www / motion-picture.html
1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
3   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4 <html version="-//W3C//DTD XHTML 1.1//EN"
5       xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
6       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7       xsi:schemaLocation="http://www.w3.org/1999/xhtml
8                           http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
9 <head>
10   <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
11   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"/>
12   <title>ImageMagick: Motion Picture Digital Images</title>
13   <meta http-equiv="content-language" content="en-US"/>
14   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
15   <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
16   <meta name="application-name" content="ImageMagick"/>
17   <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."/>
18   <meta name="application-url" content="http://www.imagemagick.org"/>
19   <meta name="generator" content="PHP"/>
20   <meta name="keywords" content="motion, picture, digital, images, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"/>
21   <meta name="rating" content="GENERAL"/>
22   <meta name="robots" content="INDEX, FOLLOW"/>
23   <meta name="generator" content="ImageMagick Studio LLC"/>
24   <meta name="author" content="ImageMagick Studio LLC"/>
25   <meta name="revisit-after" content="2 DAYS"/>
26   <meta name="resource-type" content="document"/>
27   <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
28   <meta name="distribution" content="Global"/>
29   <link rel="icon" href="../images/wand.png"/>
30   <link rel="shortcut icon" href="../images/wand.ico"  type="images/x-icon"/>
31   <link rel="canonical" href="http://www.imagemagick.org" />
32   <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
33
34   <!-- Add jQuery library -->
35   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
36   
37   <!-- Add mousewheel plugin (this is optional) -->
38   <script type="text/javascript" src="http://www.imagemagick.org/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
39   
40   <!-- Add fancyBox -->
41   <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
42   <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script>
43   
44   <!-- Optionally add helpers - button, thumbnail and/or media -->
45   <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" type="text/css" media="screen" />
46   <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script>
47   <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>
48   
49   <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.6" type="text/css" media="screen" />
50   <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script>
51   
52   <script type="text/javascript">
53         $(document).ready(function() {
54                 $(".fancybox").fancybox();
55         });
56   </script>
57
58   <!-- ImageMagick style -->
59   <style type="text/css" media="all">
60     @import url("../www/magick.css");
61   </style>
62 </head>
63
64 <body id="www-imagemagick-org">
65
66 <script>
67   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
68   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
69   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
70   })(window,document,'offline-script','//127.0.0.1/analytics.js','ga');
71
72   ga('create', 'UA-40133312-1', 'imagemagick.org');
73   ga('send', 'pageview');
74 </script>
75
76 <div class="titlebar">
77 <div style="margin: 17px auto; float: left;">
78   <script type="text/javascript">
79   <!--
80     google_ad_client = "pub-3129977114552745";
81     google_ad_slot = "5439289906";
82     google_ad_width = 728;
83     google_ad_height = 90;
84   //-->
85   </script>
86   <script type="text/javascript"
87     src="http://127.0.0.1/pagead/show_ads.js">
88   </script>
89 </div>
90 <a href="http://www.imagemagick.org/discourse-server/">
91   <img src="../images/logo.jpg"
92   alt="ImageMagick Logo"
93   style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
94 <a href="../index.html">
95   <img src="../images/sprite.jpg"
96   alt="ImageMagick Sprite"
97   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
98 </div>
99
100 <div class="westbar">
101
102 <div class="menu">
103   <a title="About ImageMagick" href="../index.html">About ImageMagick</a>
104 </div>
105 <div class="menu">
106   <a title="Binary Releases" href="binary-releases.html">Binary Releases</a>
107 </div>
108 <div class="sub">
109     <a title="Binary Release: Unix" href="binary-releases.html#unix">Unix</a>
110 </div>
111 <div class="sub">
112     <a title="Binary Release: MacOS X" href="binary-releases.html#macosx">Mac OS X</a>
113 </div>
114 <div class="sub">
115     <a title="Binary Release: iOS" href="binary-releases.html#iOS">iOS</a>
116 </div>
117 <div class="sub">
118     <a title="Binary Release: Windows" href="binary-releases.html#windows">Windows</a>
119 </div>
120 <div class="sep"></div>
121 <div class="menu">
122   <a title="Command-line Tools" href="command-line-tools.html">Command-line Tools</a>
123 </div>
124 <div class="sub">
125     <a title="Command-line Tools: Processing" href="command-line-processing.html">Processing</a>
126 </div>
127 <div class="sub">
128     <a title="Command-line Tools: Options" href="command-line-options.html">Options</a>
129 </div>
130 <div class="sub">
131     <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
132 </div>
133 <div class="menu">
134   <a title="Program Interfaces" href="api.html">Program Interfaces</a>
135 </div>
136 <div class="sub">
137     <a title="Program Interface: MagickWand" href="magick-wand.html">MagickWand</a>
138 </div>
139 <div class="sub">
140     <a title="Program Interface: MagickCore" href="magick-core.html">MagickCore</a>
141 </div>
142 <div class="sub">
143     <a title="Program Interface: PerlMagick" href="perl-magick.html">PerlMagick</a>
144 </div>
145 <div class="sub">
146     <a title="Program Interface: Magick++" href="magick++.html">Magick++</a>
147 </div>
148 <div class="sep"></div>
149 <div  class="menu">
150    <a title="Install from Source" href="install-source.html">Install from Source</a>
151 </div>
152 <div class="sub">
153     <a title="Install from Source: Unix" href="install-source.html#unix">Unix</a>
154 </div>
155 <div class="sub">
156     <a title="Install from Source: Windows" href="install-source.html#windows">Windows</a>
157  </div>
158 <div class="menu">
159   <a title="Resources" href="resources.html">Resources</a>
160 </div>
161 <div class="menu">
162   <a title="Architecture" href="architecture.html">Architecture</a>
163 </div>
164 <div class="menu">
165   <a title="Download" href="download.html">Download</a>
166 </div>
167 <div class="sep"></div>
168 <div class="menu">
169   <a title="Search" href="search.html">Search</a>
170 </div>
171 <div class="sep"></div>
172 <div class="menu">
173   <a title="Site Map" href="sitemap.html">Site Map</a>
174 </div>
175 <div  class="sub">
176   <a title="Site Map: Links" href="links.html">Links</a>
177 </div>
178 <div class="sep"></div>
179 <div class="menu">
180   <a title="Support ImageMagick Development" href="support.html">Support ImageMagick Development</a>
181 </div>
182 </div>
183
184 <div class="eastbar">
185   <script type="text/javascript">
186     /* <![CDATA[ */
187     (function() {
188         var po = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0];
189         po.type = 'text/javascript';
190         po.async = true;
191         po.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
192         var script = document.getElementsByTagName('offline-script')[0];
193         script.parentNode.insertBefore(po, script);
194     })();
195     /* ]]> */
196   </script>
197   <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a></div>
198   <noscript>
199     <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
200     <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" width="93" height="20" border="0" /></a>
201   </noscript>
202     <div class="g-plusone" id="gplusone"></div>
203     <script type="text/javascript">
204       /* <![CDATA[ */
205       window.___gcfg = {
206         lang: 'en-US'
207       };
208
209       (function() {
210         var po = document.createElement('offline-script');
211         po.type = 'text/javascript';
212         po.async = true;
213         po.src = 'https://127.0.0.1/js/plusone.js';
214         var script = document.getElementsByTagName('offline-script')[0];
215         script.parentNode.insertBefore(po, script);
216       })();
217       var gplusone = document.getElementById("gplusone");
218       gplusone.setAttribute("data-size","medium");
219       gplusone.setAttribute("data-count","true");
220       /* ]]> */
221     </script>
222 </div>
223
224 <div class="main">
225
226 <h1>ImageMagick Motion Picture Formats</h1>
227 <p class="navigation-index">[<a href="motion-picture.html#intro">Introduction to Motion Picture Formats</a> &bull; <a href="motion-picture.html#log">Log Format</a> &bull; <a href="motion-picture.html#properties">DPX properties</a> &bull; <a href="motion-picture.html#settings">DPX Settings</a>]</p>
228
229 <h2><a id="intro"></a>Introduction to Motion Picture Formats</h2>
230 <div class="doc-section">
231
232 <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>
233
234 <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>
235
236 <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>
237
238 <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>
239
240 <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>
241
242 <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>
243
244 </div>
245
246 <h2><a id="log"></a>Log Format</h2>
247 <div class="doc-section">
248
249 <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>
250
251 <p class="image">
252   <a href="../images/bluebells_log.jpg"><img src="../images/bluebells_log.jpg" width="384" height="288" class="image-slices" alt="bluebells-log" /></a>
253   <a href="../images/bluebells_lin.jpg"><img src="../images/bluebells_lin.jpg" width="384" height="288" class="image-slices" alt="bluebells-linear" /></a>
254 </p>
255
256 <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>
257
258 <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>
259
260 <p class="image">
261   <a href="../images/bluebells_clipped.jpg"><img src="../images/bluebells_clipped.jpg" width="384" height="288" class="image-slices" alt="bluebells-clipped" /></a>
262   <a href="../images/bluebells_darker.jpg"><img src="../images/bluebells_darker.jpg" width="384" height="288" class="image-slices" alt="bluebells-darker" /></a>
263 </p>
264
265 </div>
266
267 <h2><a id="properties"></a>DPX Properties</h2>
268 <div class="doc-section">
269
270 <p>ImageMagick supports these DPX properties:</p>
271
272 <pre class="text">
273   dpx:file.copyright
274   dpx:file.creator
275   dpx:file.filename
276   dpx:file.project
277   dpx:file.version
278   dpx:film.count
279   dpx:film.format
280   dpx:film.frame_id
281   dpx:film.frame_position
282   dpx:film.frame_rate
283   dpx:film.held_count
284   dpx:film.id
285   dpx:film.offset
286   dpx:film.prefix
287   dpx:film.sequence_length
288   dpx:film.shutter_angle
289   dpx:film.slate
290   dpx:film.type
291   dpx:orientation.aspect_ratio
292   dpx:orientation.border
293   dpx:orientation.device
294   dpx:orientation.filename
295   dpx:orientation.serial
296   dpx:orientation.x_center
297   dpx:orientation.x_offset
298   dpx:orientation.x_size
299   dpx:orientation.y_center
300   dpx:orientation.y_offset
301   dpx:orientation.y_size
302   dpx:television.black_gain
303   dpx:television.black_level
304   dpx:television.break_point
305   dpx:television.field_number
306   dpx:television.frame_rate
307   dpx:television.gamma
308   dpx:television.integration_times
309   dpx:television.interlace
310   dpx:television.padding
311   dpx:television.time.code
312   dpx:television.time_offset
313   dpx:television.user.bits
314   dpx:television.vertical_sample_rate
315   dpx:television.video_signal
316   dpx:television.white_level
317   dpx:user.id
318   dpx:user.data
319 </pre>
320
321 <p> To determine which properties are associated with your DPX image, use this command for example:</p>
322
323 <p class='crt'><span class="crtprompt"> $ </span><span class='crtin'>identify -verbose bluebells.dpx</span></p>
324 <p>To identify a particular property, try this:</p>
325
326 <p class='crt'><span class="crtprompt"> $ </span><span class='crtin'>identify -format "%[dpx:television.time.code]" bluebells.dpx</span></p>
327 <p>Finally, to set a property:</p>
328
329 <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>
330 </div>
331
332 <h2><a id="settings"></a>DPX Settings</h2>
333 <div class="doc-section">
334
335 <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:
336 </p>
337
338         <div>
339         <p class="crtsnip">-set gamma 1.7</p>
340
341         <p class="crtsnip">-set film-gamma 0.6</p>
342
343         <p class="crtsnip">-set reference-black 95</p>
344
345         <p class="crtsnip">-set reference-white 685</p>
346
347         <p class="crtsnip">-set profile dpx:user.data</p>
348         </div>
349
350 </div>
351
352
353 </div>
354
355 <div id="linkbar">
356     <span id="linkbar-west">&nbsp;</span>
357
358     <span id="linkbar-center">
359       <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
360       <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> &bull;
361       <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
362     </span>
363     <span id="linkbar-east">&nbsp;</span>
364   </div>
365   <div class="footer">
366     <span id="footer-west">&copy; 1999-2013 ImageMagick Studio LLC</span>
367     <span id="footer-east"> <a href="contact.html">Contact the Wizards</a></span>
368   </div>
369   <div style="clear: both; margin: 0; width: 100%; "></div>
370 </body>
371 </html>