<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>undefined-type &#187; settings</title>
	<atom:link href="http://undefined-type.com/tag/settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://undefined-type.com</link>
	<description>Flex,Flash &#38; AIR</description>
	<lastBuildDate>Wed, 18 Nov 2009 09:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Encode to FLV</title>
		<link>http://undefined-type.com/2009/02/encode-to-flv/</link>
		<comments>http://undefined-type.com/2009/02/encode-to-flv/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 12:10:13 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[encode]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[f4v]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://undefined-type.com/?p=397</guid>
		<description><![CDATA[This is a quick help for how to Encode/Convert movies to the Flash FLV format. There are a couple of general encoding features that could be good to know. The key is to find a good balance of frame rate, data rate and keyframe.
When working with digitally compressed video in a format such as Flash [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick help for how to Encode/Convert movies to the Flash FLV format. There are a couple of general encoding features that could be good to know. The key is to find a good balance of frame rate, data rate and keyframe.</p>
<p>When working with digitally compressed video in a format such as Flash Video, the higher the frame rate, the larger the file size. To reduce the file size, you must lower either the frame rate or the data rate If you lower the data rate and leave the frame rate unchanged, the image quality is reduced. If you lower the frame rate and leave the data rate unchanged, the video motion may look less smooth than desired. Something to remember here as well is that you can never gain quality when encoding, so if you have a bad video to start with it will not get any more pleasant to look at just because you boost the data rate.</p>
<p><strong>For short;</strong><br />
<strong>Frame rate (fps); </strong>The less, the more jumpy.<br />
<strong>Data rate (bitrate); </strong>The less, the more pixels/blur.<br />
<strong>Keyframe;</strong> The less, smaller file size.</p>
<p>Since Flash Player 9<em>,0,115,0</em> there is now the possibility to convert <a href="http://www.adobe.com/products/hdvideo/" target="_blank">HD quality</a>, so i brief version list of the codecs;<br />
Flash 6-7; Sorenson Video<br />
Flash 8-9; On2<br />
Flash 9-10; On2 (new <a href="http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v10.pdf" target="_blank">F4V open format</a> since 9,0,115,0)</p>
<p>There is a really good convert guide to get some help on the export settings;<br />
<a href="http://www.adobe.com/devnet/flash/apps/flv_bitrate_calculator/" target="_blank">http://www.adobe.com/devnet/flash/apps/flv_bitrate_calculator/</a></p>
<p><strong>How to work out the best video compression for me?</strong><br />
This is the hard bit, for short I would recommend these steps.<br />
1.) Figure out a compression that you guess would be the perfect one (get help from calculator).<br />
2.) Setup 4 more compressions, 2 that has higher quality than your (1.) setting and 2 that are below.<br />
3.) Line up all the videos and find the video with the lowest quality settings but that you find is still good. Now from this go back to step 2.<br />
4.) After a couple of rounds this way you should have found a compression for your video.</p>
<p>Remember that all videos are different, so there is no magic setting that will work on all your videos. Also when choosing the &#8220;best&#8221; video you need to keep track on the file size and what the target is going to be.<br />
<span id="more-397"></span></p>
<p>&nbsp;</p>
<h2><strong>Frame rate (fps)</strong></h2>
<p>Video is a sequence of images that appear on the screen in rapid succession, giving the illusion of motion. The number of frames that appear every second is known as the frame rate, and it is measured in frames per second (fps). The higher the frame rate, the more frames per second are used to display the sequence of images, resulting in smoother motion. The trade-off forhigher quality, however, is that higher frame rates require a larger amount of data to display the video, which uses more bandwidth.</p>
<p>Video looks much better at native frame rates so it&#8217;s recommended to keep it if possible. For full-motion NTSC (National Television System Committee in the U.S.), use 29.97 fps.  For PAL (Phase Alternating Line in Europe), use 25 fps.</p>
<p>If you lower the frame rate to lower file size the Flash Video Encoder drops frames at a linear rate to achieve the new fps rate. However, if you need to reduce the frame rate, the best results come from dividing evenly. For example, if your source has a frame rate of 24 fps, then reduce the frame rate to 12 fps, 8 fps, 6 fps, 4 fps, 3 fps, or 2 fps. If the source frame rate is 30 fps, in most cases you can adjust the frame rate to 15 fps, 10 fps, 6 fps, and so on.</p>
<p>If a video clip is longer than 10 minutes, the audio will drift noticeably out of sync if you do not adhere to the 29.97 fps rate or an accurate even division for lower frame rates (such as 14.98 fps, which is half of 29.97).</p>
<p><strong>For short;</strong><br />
<strong>NTSC (u.s);</strong> 29.97 fps<br />
<strong>PAL (Europe);</strong> 25 fps<br />
<strong>Dropping frames;</strong> Reduce by 2 (e.g. 24, 12, 8, 6, 4, 3, 2 fps)</p>
<p>&nbsp;</p>
<h2><strong>Data rate (bitrate)<br />
</strong></h2>
<p>The data rate affects the quality of a video clip. When you deliver video using the Internet, you should produce files using lower data rates. Users with fast Internet connections can view the files with little or no delay, but dial-up users must wait for files to download. If you anticipate an audience of dial-up users, you should make short video clips to keep the download times within acceptable limits. There are a couple of presets when encoding but it&#8217;s as well possible to set your custom data rate.</p>
<p>When converting you can choose the bitrate encoding from CBR (Constant Bitrate) to VBR (Variable Bitrate). When using CBR it will hold the same bitrate constant over the whole video, the VBR will analyze the video and where there is not a lot of movement it will lower the data rate, on the other hand where it&#8217;s a lot of movement it will set a higher data rate. You can also change the Encoding passes from One to Two, when doing so it will first analyze the video before encode, use this as a default for professional videos.</p>
<p><strong>For short;</strong><br />
<strong>Data rate;</strong> Keep as low as possible without losing your &#8220;maximum quality&#8221;.<br />
<strong>CBR;</strong> Constant bitrate, same data rate over whole movie<br />
<strong>VBR;</strong> Variable bitrate, changes data rate by analyzing movements</p>
<p>&nbsp;</p>
<h2><strong>Keyframes</strong></h2>
<p>Keyframes are complete video frames (or images) that are inserted at consistent intervals in a video clip. The frames between the keyframes contain information on movement and scene changes that occurs between keyframes. For example, if a video depicts a person walking past a doorway, the keyframes contain the complete image of the person and the door in the background, and the interval frames contain information describing the person’s movement as they walk in front of the door.</p>
<p>The keyframe interval value tells the encoder how often to re-evaluate the video image and record a full frame/keyframe. The keyframe interval value can be any number up to 100. When you select Automatic as an interval setting, Flash Video Encoder places a keyframe every two seconds of playback time.</p>
<p>For example, if the video you’re encoding has a frame rate of 30 fps, a keyframe will be inserted every 60 frames. In general, the default keyframe interval value provides a reasonable level of control when seeking within a video clip. If you need to select a custom keyframe placement value, be aware that the smaller the keyframe interval, the larger the file size. If your footage has a lot of scene changes or rapidly moving motion or animation, then the overall image quality may benefit from a lower keyframe interval. In general, a higher keyframe interval produces better image quality because data is not wasted describing the areas of an image that remain unchanged from frame to frame.</p>
<p>An important dependency of the keyframe interval is that it affects the ability of Flash Player to seek (fast-forward or rewind) through an FLV file. Flash Player can only advance from keyframe to keyframe, so if you want to skip to different places and pause the frames, you must use a lower keyframe interval value. If you want to advance to every frame in an FLV file, use a keyframe interval value of 1. When you reduce the keyframe interval value, you must raise the data rate for the Flash video to maintain comparable image quality.</p>
<p><strong>For short;</strong><br />
<strong>Keyframe low number; </strong>Good for &#8220;moving&#8221; in video timeline, file size is bigger and need higher data rate.<br />
<strong>Keyframe high </strong><strong>number</strong><strong>;</strong> Lower file size, Good &#8220;standard&#8221; rule is (frame rate * 2), doesn&#8217;t work good for something that changes scene or moves fast.</p>
<p>&nbsp;</p>
<h2><strong>Aspect ratio</strong></h2>
<p>The most commonly used aspect ratio is 4:3, 16:9 and 2:1. As a rule you should use the same aspect ratio as the original video, else the video will look distorted. An exception is when converting form DV formats that uses rectangular pixels (non-square pixels).</p>
<p>There are some easy formulas to use if you want to resize the video, first decide your locked side (height or width).</p>
<p><strong>Height is master; </strong><br />
<a href="http://undefined-type.com/wp-content/uploads/2009/02/calc011.png" rel="lightbox[397]"><img class="alignleft size-medium wp-image-402" title="calc011" src="http://undefined-type.com/wp-content/uploads/2009/02/calc011-300x53.png" alt="calc011" width="300" height="53" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Height with 4:3 as example;</strong><br />
<a href="http://undefined-type.com/wp-content/uploads/2009/02/calc02.png" rel="lightbox[397]"><img class="alignleft size-full wp-image-403" title="calc02" src="http://undefined-type.com/wp-content/uploads/2009/02/calc02.png" alt="calc02" width="205" height="60" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Width is master;</strong><br />
<a href="http://undefined-type.com/wp-content/uploads/2009/02/calc03.png" rel="lightbox[397]"><img class="alignleft size-medium wp-image-404" title="calc03" src="http://undefined-type.com/wp-content/uploads/2009/02/calc03-300x48.png" alt="calc03" width="300" height="48" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Width with 4:3 as example;</strong><br />
<a href="http://undefined-type.com/wp-content/uploads/2009/02/calc04.png" rel="lightbox[397]"><img class="alignleft size-full wp-image-405" title="calc04" src="http://undefined-type.com/wp-content/uploads/2009/02/calc04.png" alt="calc04" width="204" height="59" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Example;</strong> if your video is 720&#215;480 and want to change it to a 4:3 format. We use the height formula and lock 480. This will give us the new video size of 640&#215;480.<br />
<a href="http://undefined-type.com/wp-content/uploads/2009/02/calc05.png" rel="lightbox[397]"><img class="alignleft size-full wp-image-406" title="calc05" src="http://undefined-type.com/wp-content/uploads/2009/02/calc05.png" alt="calc05" width="154" height="66" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>For short;</strong><br />
<strong>Ratio;</strong> Try to keep original ratio, when changing video size, use formulas.</p>
<p>&nbsp;</p>
<h2>Interlaced / Non-Interlaced</h2>
<p>Most broadcast video is interlaced, though emerging high-definition television standards have interlaced and noninterlaced variants. Interlaced video consists of two fields that make up each video frame. Each field contains half the number of horizontal lines in the frame; the upper field (or Field 1) contains all of the odd-numbered lines, and the lower field (or Field 2) contains all of the even-numbered lines. This actually means that a NTSC 30 fps TV is displaying 60 fps.</p>
<p>Noninterlaced video frames are not separated into fields. A progressive-scan monitor displays a noninterlaced video frame by drawing all of the horizontal lines, from top to bottom, in one pass. Because of this, both fields that make up a video frame are shown simultaneously. Thus, a computer monitor displays video at 30 fps, and most video displayed on computer monitors is noninterlaced.</p>
<p><strong>For short;</strong><br />
<strong>Interlaced;</strong> TV (uses 2 fields)<br />
<strong>Non-Interlaced;</strong> Computer (uses 1 field)</p>
<p>&nbsp;</p>
<h2>Audio</h2>
<p>The audio settings are often the simplest ones. You can select Mono/Stereo channels, if you don&#8217;t need Stereo so select Mono to save some file size. You have as well the bitrate (kbps) for the sound, standard music cd-rom has 128kbps, try to go as low as possible without getting strange noises.</p>
]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2009/02/encode-to-flv/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

