<?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>VegasVideoHelp.com &#187; pixelate</title>
	<atom:link href="http://www.vegasvideohelp.com/tag/pixelate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vegasvideohelp.com</link>
	<description>Tutorials, Hints, and News for Sony Vegas (and DVD Architect, too!)</description>
	<lastBuildDate>Fri, 18 Sep 2009 19:04:27 +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>Censoring a Person or Object</title>
		<link>http://www.vegasvideohelp.com/censoring-person-or-object/</link>
		<comments>http://www.vegasvideohelp.com/censoring-person-or-object/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 22:40:12 +0000</pubDate>
		<dc:creator>Rob Strobbe</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cookie cutter]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[pixelate]]></category>

		<guid isPermaLink="false">http://www.vegasvideohelp.com/?p=268</guid>
		<description><![CDATA[Someone in your documentary is wearing a t-shirt with a logo for a product you don&#8217;t really feel comfortable advertising. Or some random person walked into your shot but won&#8217;t sign a release form for you to use their likeness. Or maybe you just want to obscure a rude gesture.
Blur it. Or pixelate it. Easy [...]]]></description>
			<content:encoded><![CDATA[<p>Someone in your documentary is wearing a t-shirt with a logo for a product you don&#8217;t really feel comfortable advertising. Or some random person walked into your shot but won&#8217;t sign a release form for you to use their likeness. Or maybe you just want to obscure a rude gesture.</p>
<p>Blur it. Or pixelate it. Easy enough, but how do you censor just part of a video in Sony Vegas while leaving the rest of it clear as day? Let&#8217;s find out.</p>
<p><span id="more-268"></span>The Pixelate FX is a good candidate for this trick, but like the rest of the effects, it doesn&#8217;t have an option to only affect one area of the screen. The trick is to add your media twice, one instance above the other, apply the effect to one instance, and then use masking to make sure only part of one those tracks is visible.</p>
<p>For this example, I&#8217;m using stock footage of a <a title="Horse Drawn Carriage stock footage" href="http://stockfootageforfree.com/free-horse-drawn-carriage-stock-footage/">horse drawn carriage</a> from Stock Footage for Free. If you want to follow along exactly, download the clip from them (registration is required but free). Alternatively, use your own footage and adjust your settings accordingly. I&#8217;ll be demonstrating how to censor an object that moves within the frame, so it would be helpful if you have something similar.</p>
<div id="attachment_275" class="wp-caption alignleft" style="width: 203px"><a href="http://www.vegasvideohelp.com/files/2008/12/1_duplicate_tracks.jpg"><img class="size-thumbnail wp-image-275" title="Duplicate Tracks" src="http://www.vegasvideohelp.com/files/2008/12/1_duplicate_tracks-193x150.jpg" alt="Figure 1: Duplicate Tracks" width="193" height="150" /></a><p class="wp-caption-text">Figure 1: Duplicate Tracks</p></div>
<p>Once you&#8217;ve chosen a video to censor, drag it onto a Vegas timeline. If you don&#8217;t already have a video track where you drop the video, Vegas will create one for it. If you need to crop it, add any other effects, or adjustments, do so now. Once you have it generally looking the way you want, we&#8217;re going to create a copy on the track below. Do this by holding down Ctrl on the keyboard, clicking the event with your video, and dragging it to an empty area below the track you already have. You&#8217;ll end up with two duplicate tracks. (In fact, you will get the same result if you right-click the track header and choose Duplicate Track.)</p>
<div id="attachment_276" class="wp-caption alignleft" style="width: 203px"><a href="http://www.vegasvideohelp.com/files/2008/12/2_all_pixelated.jpg"><img class="size-thumbnail wp-image-276" title="All Pixelated" src="http://www.vegasvideohelp.com/files/2008/12/2_all_pixelated-193x150.jpg" alt="Figure 2: All Pixelated" width="193" height="150" /></a><p class="wp-caption-text">Figure 2: All Pixelated</p></div>
<p>The first thing I&#8217;m going to do is apply the &#8220;censoring&#8221; effect to the copy on the upper track. Go to the Video FX window, select Pixelate from the list, and drag the Medium preset onto the event. You can see in the Preview window that the entire frame looks blocky. Adjust the settings in the Video Event FX window to make the image as pixelated as you like (scrub through the timeline so you can see how it looks throughout the whole video) and close the Video FX window.</p>
<p>Now we&#8217;ll isolate only the area we want censored. There are a few ways to mask out areas in Vegas. The driver&#8217;s face is a pretty basic shape, so the quickest way is to use the Cookie Cutter FX. Go to the Video FX window, select Cookie Cutter, and drag the Circle Center preset onto the event on the upper track. This preset cuts away everything from this event (which, remember, has the Pixelate FX applied to it) except for a large circle in the center. For the rest of the frame, this FX reveals our unpixelated event below. This puts on the road to what we really want: a circle that is about the size of the driver&#8217;s head and that moves along with his head throughout the video.</p>
<p>I want the difference between my censored and uncensored areas to be more obvious while I work, so I&#8217;m going to temporarily add another effect. If you think this will help you as well, select Color Curves in the Video FX window and drag the Night preset onto the event on the upper track. To return to editing the Cookie Cutter FX, click the &#8220;Cookie Cutter&#8221; button in the FX chain at the top of the Video Event FX window. (Be sure that you don&#8217;t deselect its check box, though, or you won&#8217;t see the effect any longer.)</p>
<div id="attachment_277" class="wp-caption alignleft" style="width: 203px"><a href="http://www.vegasvideohelp.com/files/2008/12/3_first_frame.jpg"><img class="size-thumbnail wp-image-277" title="First Keyframe" src="http://www.vegasvideohelp.com/files/2008/12/3_first_frame-193x150.jpg" alt="Figure 3: First Keyframe" width="193" height="150" /></a><p class="wp-caption-text">Figure 3: First Keyframe</p></div>
<p>Now, let&#8217;s get down to business. As mentioned above, we have a circle where the upper event is pixelated. It&#8217;s too big and in the wrong place. On the left of the Video Event FX window is a box with a square inside it. By dragging that square around, you can move the center of the circle around the frame. You can also type the X and Y coordinates for the center in the appropriate textboxes on the right. Try to center the circle around the driver&#8217;s head if you&#8217;re following along with my example. Then adjust the Size of the circle so that it covers his head but not a whole lot more. After some work, I&#8217;ve found that the following settings work well for the first frame of this video:</p>
<ul>
<li>Size: 0.010</li>
<li>Center X: 0.650</li>
<li>Center Y: 0.470</li>
</ul>
<p>There, that censors the driver&#8217;s face in the very first frame. Of course, if you play the video, that pixelated circle stays the same size and position the whole time &#8212; it doesn&#8217;t follow the driver, who is going to be very upset that we only hid his face very briefly. Luckily, Vegas makes it relatively easy to change a Video FX&#8217;s settings over time through the use of keyframes. Every &#8220;animation&#8221; requires at least two keyframes &#8212; one with one collection of settings and a later one with a different settings. Vegas then interpolates the frames between and &#8220;animates&#8221; what it can in order to get from one state to the other. You could go through the video frame by frame and add a keyframe for each state you need, but it&#8217;s less work if you start out by putting keyframes in the places you are absolutely sure will be different. Then check the frames in between to see where you may need to fine tune.</p>
<p>By changing the size and position above, we&#8217;ve edited the first keyframe that Vegas includes by default. Now, below the keyframe timeline at the bottom of the Video Event FX window, click the Last Keyframe button. This puts the cursor at the very end of the keyframe timeline and, in the Preview window, displays the very end of the event. By using the left and right arrow keys on the keyboard or hunting and pecking with your mouse, find the frame just before the driver&#8217;s head leaves the screen. Around 00:00:09:04 is good. (That&#8217;s nine seconds and four frames into the event.) Below the keyframe timeline, click the Create Keyframe button &#8212; it&#8217;s a diamond with a plus sign in it. Now, adjust the size and postion of the circle to again cover the driver&#8217;s head. These settings should work well for the frame I indicated above:</p>
<ul>
<li>Size: 0.045</li>
<li>Center X: 0.000</li>
<li>Center Y: 0.210</li>
</ul>
<p>If you preview the video, you&#8217;ll see that Vegas &#8220;fills in&#8221; between the two keyframes. The pixelated circle moves from one place to the other and increases in size. But the driver must not be moving at an entirely steady pace &#8212; because the circle gets ahead of him at first, and then he catches up by the end. We&#8217;ll need more keyframes to keep them in sync. When it comes to adjustments like this, I like to divide in conquer. I&#8217;ll first find a spot around the middle of the video, create a keyframe, and adjust the size and position of the circle. Notice that when you create a keyframe, it defaults to keeping whatever settings Vegas interpolated for that moment in time, so you should only need to tweak each one a little rather than having to start from scratch. To fine tune this, I&#8217;ll preview the video and, for each area where the pixelated circle drifts off of the driver&#8217;s head, I&#8217;ll put a new keyframe halfway between two adjacent ones and make any adjustments I need to the Size and Position of the circle. I ended up with seven keyframes to follow the driver accurately.</p>
<div id="attachment_278" class="wp-caption alignleft" style="width: 203px"><a href="http://www.vegasvideohelp.com/files/2008/12/4_exit.jpg"><img class="size-thumbnail wp-image-278" title="Last Keyframe" src="http://www.vegasvideohelp.com/files/2008/12/4_exit-193x150.jpg" alt="Figure 4: Last Keyframe" width="193" height="150" /></a><p class="wp-caption-text">Figure 4: Last Keyframe</p></div>
<p>One last adjustment to the Pixelate FX needs to be made. You may have noticed that if you play the video, there remains a pixelated circle on the screen even after the driver has gone completely out of frame. This is because in order to follow the driver off screen, we would need to give our circle&#8217;s Center X a negative value, and Vegas won&#8217;t let us. The lowest value we can use is 0, which puts will always leave half of the circle on screen. To remedy this (and still censor the driver&#8217;s face until it&#8217;s completely out of frame), find the frame at which the driver&#8217;s head has gone completely out of frame. There, create one more keyframe and set the circle&#8217;s Size to 0. Beginning with the previous keyframe, Vegas will shrink the circle as the driver leaves the screen, leaving a full and uncensored scene. Lastly, if you added Color Curves or some other FX as a temporary aid, make sure that you click on that FX in the FX chain at the top of the Video Event FX window and hit the Remove Selected Plug-In button to the right.</p>
<p>When you&#8217;re all done, you should have something similar to this:</p>
<p><!-- Smart Youtube --><span class="youtube"><object type="application/x-shockwave-flash" width="425" height="362" data="http://www.youtube.com/v/cbjYreH3ozo&amp;rel=0&amp;color1=006699&amp;color2=54abd6&amp;border=1&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0"><param name="movie" value="http://www.youtube.com/v/cbjYreH3ozo&amp;rel=0&amp;color1=006699&amp;color2=54abd6&amp;border=1&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /></object></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vegasvideohelp.com/censoring-person-or-object/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
