<!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>  ColorModel &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="ColorModel" /> -->
<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="ColorModel"> <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="ColorModel"> 
<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=20051021150039">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/ColorModel?t=1129906839"><b>Edit</b></a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/ColorModel">Attach</a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/ColorModel?skin=print.pattern">Printable</a>
</li>
</ul>
</div><div class="twikiRevInfo"><span class="twikiGrayText"><span class="twikiToolbarElem">Cinelerra.ColorModel</span><span class="twikiToolbarElem">r1.3 - 29 Dec 2004 - 03:22 - <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="Video_Color_Models"> </a><a name="Video_Color_Models_"> </a> Video <a class="twikiLink" href="ColorModel">Color Models</a> </h3>
<p />
<img src="../../../pub/TWiki/TWikiDocGraphics/pencil.gif" border="0" alt="REFACTOR" width="16" height="16" /> [Basic description of color models goes here ] 
<p />
<h3><a name="Color_Models_in_Cinelerra"> </a> Color Models in Cinelerra </h3>
Color models are very important for video playback. When video is stored on disk, it is stored in one <a class="twikiLink" href="ColorModel">ColorModel</a>, (<em>normally compressed using a <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">YUV</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/YUV?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> derivative.</em>) When played back, <strong>Cinelerra</strong> decompresses it from the file format directly into the format of the output device.
<p />
<strong>Cinelerra</strong> <a class="twikiLink" href="ColorModel">ColorModels</a> are described using a certain packing order of components and a certain number of bits for each component. The packing order is printed on the left and the bit allocation is printed on the right.
<p />
<ul>
<li> <code><b>RGBA8888</b></code> uses <font color="#ff0000"> Red </font>, <font color="#008000">Green </font>, <font color="#000080">Blue </font>, and Alpha with 8 bits per channel.
</li>
</ul>
<p />
<h4><a name="Selecting_the_best_color_model_f"> </a> Selecting the best color model for your project </h4>
<img src="../../../pub/TWiki/TWikiDocGraphics/warning.gif" border="0" alt="ALERT!" width="16" height="16" /> When working on <strong>Cinelerra</strong> the <a class="twikiLink" href="SetFormat">selection</a> of an internal <a class="twikiLink" href="ColorModel">ColorModel</a> determines how accurate and fast the effects are. It is very important to <a class="twikiLink" href="SetFormat">select</a> the <a class="twikiLink" href="ColorMode">ColorMode</a> best suited for your purposes, below is some information regarding Cinelerras handling of various video <a class="twikiLink" href="ColorModel">ColorModels</a> 
<p />
<ul>
<li> <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">YUV</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/YUV?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> <a class="twikiLink" href="ColorModel">ColorModels</a> are usually faster than <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RGB</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RGB?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> <a class="twikiLink" href="ColorModel">ColorModels</a> when using compressed footage. They also destroy fewer colors than <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RGB</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RGB?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> <a class="twikiLink" href="ColorModel">ColorModels</a>.
</li>
</ul>
<p />
<ul>
<li> Four channel <a class="twikiLink" href="ColorModel">ColorModels</a> are notoriously slower than three channel <a class="twikiLink" href="ColorModel">ColorModels</a>, with the slowest being RGBA16161616.   
</li>
</ul>
<p />
When effects are processed, media files are decompressed into an internal <a class="twikiLink" href="ColorModel">ColorModel</a> first and then converted to the <a class="twikiLink" href="ColorModel">ColorModel</a> format of the output device.
<p />
<ul>
<li> To do effects which involve <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">AlphaChannels</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/AlphaChannels?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span>, a <a class="twikiLink" href="ColorModel">ColorModel</a> with an <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">AlphaChannel</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/AlphaChannel?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> <code><b>must be selected.</b></code> (<em>i.e.</em> RGBA8888, YUVA8888, RGBA16161616 &amp; YUVA16161616.)
</li>
</ul>
<p />
<ul>
<li> Some effects, like <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">VideoFade</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/VideoFade?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span>, work around the need for <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">AlphaChannels</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/AlphaChannels?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> while other effects, like <a class="twikiLink" href="VideoChromaKey">VideoChromaKey</a>, require an <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">AlphaChannel</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/AlphaChannel?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span> to do anything, so it's a good idea to try the effect without <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">AlphaChannels</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/AlphaChannels?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span>.
</li>
</ul>
<p />
<ul>
<li> If footage stored as JPEG or MPEG is processed many times in <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RGB</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RGB?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span>, the colors will fade, while they won't if processed in <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">YUV</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/YUV?topicparent=Cinelerra.ColorModel"><sup>?</sup></a></span>.
</li>
</ul>
<p />
<h3><a name="Other_resources"> </a> Other resources </h3>
<p />
<ul>
<li> Alpha Channel info <a href="http://en2.wikipedia.org/wiki/Alpha_channel" target="_top">http://en2.wikipedia.org/wiki/Alpha_channel</a>
</li>
<li> Color model there is info on wikipedia at <a href="http://en2.wikipedia.org/wiki/Color_model" target="_top">http://en2.wikipedia.org/wiki/Color_model</a> or a more in depth description at <a href="http://lea.hamradio.si/~s51kq/V-CIV.HTM" target="_top">http://lea.hamradio.si/~s51kq/V-CIV.HTM</a>
</li>
</ul>
<p />
-- <a class="twikiLink" href="../Main/AlexFerrer">AlexFerrer</a> - 12 Jan 2004
<hr />
<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/ColorModel?t=1129906839"><b>Edit</b></a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/ColorModel">Attach image or document</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/ColorModel?skin=print.pattern">Printable version</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/ColorModel?raw=on">Raw text</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/oops/Cinelerra/ColorModel?template=oopsmore&param1=1.3&param2=1.3">More topic actions</a><br />Revisions:  | r1.3 | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/ColorModel?rev1=1.3&rev2=1.2">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/ColorModel?rev=1.2">r1.2</a> | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/ColorModel?rev1=1.2&rev2=1.1">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/ColorModel?rev=1.1">r1.1</a> <span class="twikiSeparator">|</span> <a href="../../rdiff/Cinelerra/ColorModel">Total page history</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/search/Cinelerra/SearchResult?scope=text&regex=on&excludetopic=ColorModel&search=Color%20*Model%5B%5EA-Za-z0-9%5D">Backlinks</a></div>
<div class="twikiTopicInfo twikiRevInfo twikiGrayText twikiMoved"><i>Cinelerra.ColorModel moved from Cinelerra.ColorModels on 12 Jan 2004 - 16:57 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/ColorModel?newweb=Cinelerra&newtopic=ColorModels&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="UnderstandingTheUI">UnderstandingTheUI</a> &gt; <a class="twikiLink" href="MainProgram">MainProgram</a> &gt; <a class="twikiLink" href="TopMenuBar">TopMenuBar</a> &gt; <a class="twikiLink" href="VideoMenu">VideoMenu</a> &gt; <a class="twikiLink" href="SetFormat">SetFormat</a> <span class='twikiSeparator'>&gt;</span> ColorModel </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>