<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>  StillImage &lt; Cinelerra &lt; TWiki</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/WebRss?skin=rss&contenttype=text/xml" />
<!-- <base href="StillImage" /> -->
<style type="text/css" media="all">
	/* Default TWiki layout */
	@import url('../../../pub/TWiki/PatternSkin/layout.css');
	/* Default TWiki style */
	@import url('../../../pub/TWiki/PatternSkin/style.css');
	/* Custom overriding layout per web or per topic */
	@import url('http://www.ftconsult.com/twiki/bin/view/Cinelerra/%USERLAYOUTURL%');
	/* Custom overriding style per web or per topic */
	@import url('http://www.ftconsult.com/twiki/bin/view/Cinelerra/%USERSTYLEURL%');
	.twikiToc li {
		list-style-image:url('../../../pub/TWiki/PatternSkin/i_arrow_down.gif');
	}	        
	.twikiWebIndicator {
		background-color:#D0D0D0;
	}
</style>
<style type="text/css" media="all"></style>
<script type="text/javascript">
<!-- HIDE
	function initPage() { }
-->
</script>
</head>
<body class="twikiViewPage" onload="initPage()"><a name="PageTop"></a>
<div class="twikiHidden"><a href="#Content">Skip to topic</a> | <a href="#PageBottom">Skip to bottom</a><hr /></div><div class="twikiTopBar"><div class="twikiTopBarContents"><form name="top" action="StillImage"> <div class="twikiLeft">
<a href="http://twiki.org/"><img src="../../../pub/TWiki/TWikiLogos/twikiRobot46x50.gif" border="0" alt="Home"/></a>
</div>
<div class="twikiRight twikiSearchBox">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><label for="go">Jump: </label><input type="text" id="go" name="topic" size="16" /></td>
</tr>
</table>
</div>
</form></div></div><div class="twikiMiddleContainer"><div class="twikiLeftBar"><div class="twikiWebIndicator"><b>Cinelerra</b></div>
<div class="twikiLeftBarContents"><form name="main" action="StillImage"> 
<ul>
<li> <b>Cinelerra Web</b>
</li>
<li> <a class="twikiLink" href="WebHome">Cinelerra Web Home</a>
</li>
<li> <a class="twikiLink" href="WebChanges">Changes</a> 
</li>
<li> <a class="twikiLink" href="WebIndex">Index</a>
</li>
<li> <a class="twikiLink" href="WebSearch">Search</a>
</li>
</ul>
<hr />
<ul>
<li> <strong>Webs</strong>
<ul>
<li> <a class="twikiLink" href="WebHome">Cinelerra</a>
</li>
<li> <a class="twikiLink" href="../Espanol/WebHome">Espanol</a>
</li>
<li> <a class="twikiLink" href="../Francais/WebHome">Francais</a>
</li>
<li> <a class="twikiLink" href="../Italiano/WebHome">Italiano</a>
</li>
<li> <a class="twikiLink" href="../Main/WebHome">Main</a>
</li>
<li> <a class="twikiLink" href="../Sandbox/WebHome">Sandbox</a>
</li>
<li> <a class="twikiLink" href="../Slovenian/WebHome">Slovenian</a>
</li>
<li> <a class="twikiLink" href="../TWiki/WebHome">TWiki</a>
</li>
</ul>
</li>
</ul>
<div class="twikiLeftBarPersonal">
<p />
<ul>
<li> <strong>My links</strong>
</li>
<li> <a class="twikiLink" href="../Main/AeliotBoswell">My home page</a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/search/Codev/?search=InterestedParties.*AeliotBoswell&regex=on" target="_top"><img src="../../../pub/TWiki/TWikiDocGraphics/stargold.gif" style="width:16px; height:16px; border:0px;" alt="Show me topics of interest" /></a>
</li>
</ul>
<div class="twikiSmall"><a href="http://www.ftconsult.com/twiki/bin/edit/Main/TWikiGuestLeftBar?t=20051021145926">edit</a></div>
<p />
</div>
</form></div></div><div class="twikiMain"><div class="twikiToolBar"><div>
<ul>
<li> <a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/StillImage?t=1129906765"><b>Edit</b></a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/StillImage">Attach</a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/StillImage?skin=print.pattern">Printable</a>
</li>
</ul>
</div><div class="twikiRevInfo"><span class="twikiGrayText"><span class="twikiToolbarElem">Cinelerra.StillImage</span><span class="twikiToolbarElem">r1.5 - 08 Jan 2005 - 06:10 - <a class="twikiLink" href="../Main/NathanKidd">NathanKidd</a></span><span class="twikiToolbarElem"><a href="#TopicEnd">topic&nbsp;end</a></span></span></div></div>
<div class="twikiHidden"><hr /></div><a name="Content"> </a><div class="twikiHidden">Start of topic | <a href="#Actions">Skip to actions</a><hr /></div>
<div class="twikiTopic">
<h3><a name="Working_with_StillImages"> </a> Working with <a class="twikiLink" href="StillImage">StillImages</a> </h3>
You can load stillImages on cinelerra -- see <a class="twikiLink" href="LoadingFile">LoadingFiles</a>
<p />
When initially loading <a class="twikiLink" href="StillImage">StillImages</a> on the timeline, the occupy a single frame in length. you might not see them as they start at a single frame length) zoom in time, so they show up. To extend their length, drag them . 
<p />
<img src="../../../pub/TWiki/TWikiDocGraphics/tip.gif" border="0" alt="TIP" width="16" height="16" /> In cinelerra Still images have infinite length <img src="../../../pub/TWiki/TWikiDocGraphics/pencil.gif" border="0" alt="REFACTOR" width="16" height="16" /> Heard on the irc.
<p />
<h3><a name="Creating_footage_out_of_still_im"> </a> Creating footage out of still images tutorial (Work in progress) </h3>
<p />
When creating your video project, sometimes, some of your critical media assets are plain  images, such as old photos, drawings, diagrams or even world maps.  One way of giving this still assets some live before incorporating them into your production, is to use the compositor window to create pan and zoom effects from still images.
<p />
<h4><a name="Capturing_the_assets"> </a><a name="Capturing_the_assets_"> </a> Capturing the assets. </h4>
Unless your original material comes from a digital source (like a digital photo camera),   the first thing you have to do before you can use it, is to somehow capture the assets into  a usable digital medium.
<p />
For old photos, paper maps, drawings or diagrams, you might have to use a scan them into  like PNG, TIF, TGA or JPG files using a digital scanner. for more info about scanner in linux look at <reference here> 
After scanning you might want to use <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">TheGimp</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/TheGimp?topicparent=Cinelerra.StillImage"><sup>?</sup></a></span> tool to post process the images, clean damaged areas or color correct the assets. 
<p />
If your assets come from a digital source like a digital camera or a screen capture, be sure to capture the material using the best resolution possible. This will help you when working with the material from within Cinelerra.
<p />
<h4><a name="Loading_the_assets"> </a><a name="Loading_the_assets_"> </a> Loading the assets. </h4>
File Load the asset into the resource manager (Just like any other asset )
Set the timeline size to ~ 00.129  to better show a single frame clip (a still image originally occupies 1 frame or 1/29th of a second on the timeline!)
Drag and drop the asset into the timeline.
Place the cursor inside the clip, close to the left border of the clip. (The cursor will change to -&gt;| icon.)
Drag the mouse to the left. Cinelerra automatically extends the duration of the clip to fit the selected area. 
<p />
<img src="../../../pub/TWiki/TWikiDocGraphics/tip.gif" border="0" alt="TIP" width="16" height="16" /> Yes it is a pain! but.. Cinelerra does not scrolls horizontally on the timeline so you actually have to keep enlarging the timeline size to be able to keep extending your clip to larger and larger lengths. 
<p />
<h4><a name="Setting_the_track_size_project_o"> </a> Setting the track size &amp; project output to fit your purposes.  </h4>
Most probably your new loaded asset size will not be of the exact same size as the intended output of your final production. Play the new clip on the compositor and see how it will look when rendered. 
<p />
If the clip is to big or to small, use the <a class="twikiLink" href="CompositingCamera">CompositingCamera</a> tool to adjust the displayed image as necessary.  On the same thought, if you want to zoom into a particular  portion of the image you can do so using the same method. (If the original image size is bigger than the intended output,  you can zoom-in your picture without any pixelation or quality loss. )
<p />
<h4><a name="Creating_a_slide_show"> </a><a name="Creating_a_slide_show_"> </a> Creating a slide show.  </h4>
<p />
<img src="../../../pub/TWiki/TWikiDocGraphics/updated.gif" border="0" alt="UPDATED" width="56" height="8" /> For a new method for doing a quick n'dirty slideshow, see the last post on this page.
<p />
You can repeat the above steps and continue loading several images to create a slide show effect. If you like to soften the flow from image to image, just drag and drop  <a class="twikiLink" href="VideoTransition">VideoTransitions</a> to the joining line between video clips. 
<p />
<h4><a name="Panning_Zooming_on_your_pictures"> </a> Panning &amp; Zooming on your pictures. </h4>
Cinelerra powerful keyframe features allows you to do powerful  pan and zoom live effects out of a still picture. 
For this tutorial we will create an opening scene by making the camera follow a road on a panoramic still image while zooming into it. 
<p />
<ul>
<li> Load and create a clip from a still image as described above.  make the clip 10 seconds long. 
</li>
<li> Activate the Automatic generation of keyframes by pressing xx
</li>
<li> Using <a class="twikiLink" href="TransportControls">TransportControls</a> go to the beginning of the clip 
</li>
<li> Using the <a class="twikiLink" href="CompositingCamera">CompositingCamera</a> control set your clip initial position. (Zoom in to the top of the road)
</li>
<li> Using <a class="twikiLink" href="TransportControls">TransportControls</a> move forward a couple of seconds on the clip
</li>
<li> Draging on the <a class="twikiLink" href="CompositingCamera">CompositingCamera</a> move the camera center to a new position further along the road on the picture.
</li>
<li> Continue the above steps until reaching the end of the road.
</li>
</ul>
<p />
Now, rewind to the beginning of the clip and play it. 
<p />
You can see that the camera smoothly flows from keyframe point to keyframe point, as Cinelerra automatically adjust the camera movement in straight lines from point to point.   
<p />
<p />
-- <a class="twikiLink" href="../Main/AlexFerrer">AlexFerrer</a> - 12 April 2004  
<hr />
<p />
<h4><a name="What_If_I_just_want_to_do_a_simp"> </a> What If I just want to do a simple slideshow?? Is it really that much of a pain? </h4>
<p />
In the Cinelerra I'm using (1.2.1) it is unfortunately, however there is an interesting trick that does a quick and dirty job (is there a better way to do this?).
<p />
<img src="../../../pub/TWiki/TWikiDocGraphics/tip.gif" border="0" alt="TIP" width="16" height="16" /> This really needs to be addressed in newer versions of cinelerra. (It will be)
<p />
<strong>Technical Stuff:</strong> By default, all image clips have a length of -1 (infinity I'm guessing?) which cinelerra interprets initially as 1 frame.  If you look inside the project XML file, you'll see that it lists the images as VIDEO_LENGTH="-1" and FRAMERATE="1.0000000000000000e+00".  If we change VIDEO_LENGTH to be, say, 4 it'll make each clip have a length of 4 seconds.  The downside to this is that the clips length is no longer infinity, which means you can't make it longer than 4 seconds, but for slideshows we don't really care.
<p />
<strong>The Step By Step:</strong> Here's the easy way to do this using the command-line program <em>sed</em>. (This is a hack but works.) 
<ul>
<li> Start a new project
</li>
<li> Load a bunch of images into your project that you want to be in the slideshow
</li>
<li> Save the current project, remember the filename (say you call it <strong>myslideshow.xml</strong>)
</li>
<li> Open a terminal, and run the following command:<BR>
     <code>sed 's/VIDEO_LENGTH="-1"/VIDEO_LENGTH="4"/g' myslideshow.xml &gt; mynewslideshow.xml</code> <BR>
     Replace the 4 with the number of seconds you want.
</li>
<li> Go back into cinelerra and load mynewslideshow.xml
</li>
<li> Set the in IN point <img src="../../../pub/Cinelerra/CinelerraImages/button_in.png" alt="button_in.png" /> on the timeline (just set it to the beginning for this) 
</li>
<li> Select all your pictures in the Media Window, drag them onto the timeline, and now each picture should now be 4 seconds long on the timeline.
</li>
</ul>
<p />
Thats what worked for me.  You should now be able to save this project and load it up into another project.  BE CAREFUL doing this procedure on existing projects
as it can change the length of images that already exist in the project and mess things up.  Always best to start with a new project for this.
<p />
-- <a class="twikiLink" href="../Main/DomC">DomC</a> - 06 Jan 2005
<br class="twikiClear" />
<a name="TopicEnd"></a>
<span class="twikiRight twikiPageNav twikiGrayText"><a href="#PageTop">to&nbsp;top</a></span><br class="twikiClear" />
</div><div class="twikiHidden"><hr />End of topic<br /><a href="#Actions">Skip to action links</a> | <a href="#PageTop">Back&nbsp;to&nbsp;top</a><hr /></div>
<!---->
<!---->
<a name="Actions"> </a><span class="twikiHidden"><br /></span><div class="twikiTopicAction"><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/StillImage?t=1129906765"><b>Edit</b></a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/StillImage">Attach image or document</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/StillImage?skin=print.pattern">Printable version</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/StillImage?raw=on">Raw text</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/oops/Cinelerra/StillImage?template=oopsmore&param1=1.5&param2=1.5">More topic actions</a><br />Revisions:  | r1.5 | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/StillImage?rev1=1.5&rev2=1.4">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/StillImage?rev=1.4">r1.4</a> | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/StillImage?rev1=1.4&rev2=1.3">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/StillImage?rev=1.3">r1.3</a> <span class="twikiSeparator">|</span> <a href="../../rdiff/Cinelerra/StillImage">Total page history</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/search/Cinelerra/SearchResult?scope=text&regex=on&excludetopic=StillImage&search=Still%20*Image%5B%5EA-Za-z0-9%5D">Backlinks</a></div>
<div class="twikiTopicInfo twikiRevInfo twikiGrayText twikiMoved"><i>Cinelerra.StillImage moved from Cinelerra.StillImages on 26 Jan 2004 - 00:12 by <a class="twikiLink" href="../Main/AlexFerrer">AlexFerrer</a> </i> - <a title="Click to move topic back to previous location, with option to change references." href="http://www.ftconsult.com/twiki/bin/rename/Cinelerra/StillImage?newweb=Cinelerra&newtopic=StillImages&confirm=on">put it back</a></div>
<div class="twikiTopicFooter"><span class="twikiLeft"><span class="twikiHomePath">You are here: <a class="twikiLink" href="WebHome">Cinelerra</a>  <span class='twikiSeparator'>&gt;</span> <a class="twikiLink" href="CinelerraManualTOC">CinelerraManualTOC</a> &gt; <a class="twikiLink" href="UsingCinelerra">UsingCinelerra</a> <span class='twikiSeparator'>&gt;</span> StillImage </span></span><span class="twikiHidden"><br /><br /></span><span class="twikiRight twikiPageNav twikiGrayText"><a href="#PageTop">to&nbsp;top</a></span><br class="twikiClear" /><span class="twikiHidden"><br /></span></div>
<a name="PageBottom"></a> </div></div><div class="twikiBottomBar"><div class="twikiBottomBarContents"><span class="twikiGrayText">Copyright &copy; 1999-2005 by the contributing authors. 
All material on this collaboration platform is the property of the contributing authors. <br /> 
Ideas, requests, problems regarding TWiki? <a href="mailto:alex@ftconsult.com?subject=TWiki&#32;Feedback&#32;on&#32;TWiki.WebBottomBar">Send feedback</a>
</span></div></div>
</body></html>