All language subtitles for 07. Image Stabilization with a Track

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:03,054 --> 00:00:10,054 In this lesson, we're going to learn how to do image stabilization with a track. 2 00:00:10,054 --> 00:00:13,326 OK, so I'm just starting off here in 07_begin, 3 00:00:13,326 --> 00:00:16,053 which is just going to be a blank Nuke script. 4 00:00:16,053 --> 00:00:19,053 So I want to go ahead and drop in the footage we're going to be using. 5 00:00:19,054 --> 00:00:23,653 So let's go ahead and grab your reference files folder and just grab that 6 00:00:23,653 --> 00:00:27,054 image stabilize folder and drop that onto your node graph. 7 00:00:27,054 --> 00:00:30,804 And that's going to give you the footage we're going to work with for 8 00:00:30,804 --> 00:00:33,054 the remainder of this course and for this lesson. 9 00:00:33,054 --> 00:00:36,054 So go ahead and plug your viewer in. 10 00:00:36,054 --> 00:00:38,354 And we'll go ahead and hit Play just to cache those frames 11 00:00:38,354 --> 00:00:41,053 and take a look at what we've got here. 12 00:00:41,054 --> 00:00:43,053 So we're going to be doing a lot with this clip. 13 00:00:43,054 --> 00:00:46,720 In some later lessons, we're going to learn the last type of tracking, 14 00:00:46,720 --> 00:00:49,720 which is going to be a four point track, 15 00:00:49,720 --> 00:00:51,900 and we're going to learn how we can use that with a corner 16 00:00:51,900 --> 00:00:54,053 pin to replace the screen on this phone. 17 00:00:54,054 --> 00:00:57,387 But the first thing we need to do, before we get to that point, 18 00:00:57,387 --> 00:00:59,054 is to stabilize this shot. 19 00:00:59,054 --> 00:01:04,144 So you can see that the shot was shot with a hand held camera because we've 20 00:01:04,144 --> 00:01:07,054 got quite a lot of movement around here on the edges. 21 00:01:07,054 --> 00:01:10,417 So we're going to get a cleaner looking shot and also a 22 00:01:10,417 --> 00:01:14,053 better track eventually for that four point track on the 23 00:01:14,054 --> 00:01:18,054 phone by stabilizing the image first. 24 00:01:18,054 --> 00:01:21,053 So let's go ahead and get ready to do that. 25 00:01:21,054 --> 00:01:27,054 And I want to show you an additional technique before we hook up our tracker. 26 00:01:27,054 --> 00:01:31,053 And that is using color correction to help bump up the 27 00:01:31,054 --> 00:01:35,942 contrast in your shot and therefore make your tracker have a 28 00:01:35,942 --> 00:01:39,053 little bit more accurate of a track. 29 00:01:39,054 --> 00:01:41,654 So let's go ahead and just come down here to our node graph, 30 00:01:41,654 --> 00:01:47,053 hit the Tab key, and we'll type in color. 31 00:01:47,054 --> 00:01:50,053 You just want to choose the Color Correct node. 32 00:01:50,054 --> 00:01:54,054 And you can just drop that between your read and your viewer node. 33 00:01:54,054 --> 00:01:58,054 And then let's go ahead and just come over here to Contrast and pull that up. 34 00:01:58,054 --> 00:01:58,284 Now, 35 00:01:58,284 --> 00:02:00,823 you don't want to do it too high because if you 36 00:02:00,823 --> 00:02:02,654 blow these colors completely out, 37 00:02:02,654 --> 00:02:08,054 then Nuke will actually have a worse time tracking. 38 00:02:08,054 --> 00:02:10,053 So you just want to bump up the contrast a little bit, 39 00:02:10,054 --> 00:02:14,054 just so kind of in this area over here we've got just kind 40 00:02:14,054 --> 00:02:19,053 of a better area between the chair leg or the coffee table 41 00:02:19,054 --> 00:02:21,054 leg and that black area. 42 00:02:21,054 --> 00:02:24,454 And then also let's track, let's say, this part right here, 43 00:02:24,454 --> 00:02:26,054 maybe this grout line. 44 00:02:26,054 --> 00:02:29,054 This is a great place of contrast right there. 45 00:02:29,054 --> 00:02:31,720 And because we've got this nice intersecting line, 46 00:02:31,720 --> 00:02:34,053 that's going to give us a really good pattern to track. 47 00:02:34,054 --> 00:02:36,454 Any time you have intersecting lines like that, 48 00:02:36,454 --> 00:02:39,054 it really gives you a great reference point. 49 00:02:39,054 --> 00:02:42,942 So for a image stabilization like this, 50 00:02:42,942 --> 00:02:46,053 you're definitely going to want to use two points. 51 00:02:46,054 --> 00:02:48,387 You can do a one point track, 52 00:02:48,387 --> 00:02:51,554 but because it was handheld you want to get that rotation 53 00:02:51,554 --> 00:02:53,054 information in there to help correct. 54 00:02:53,054 --> 00:02:54,887 So I'm going to go ahead and close out the color 55 00:02:54,887 --> 00:02:57,054 correct now and we'll add our tracker. 56 00:02:57,054 --> 00:02:59,823 So you can just hit the Tab key down here in your 57 00:02:59,823 --> 00:03:03,053 node graph and type in tracker. 58 00:03:03,054 --> 00:03:05,654 And that's actually going to drop the tracker on after the color correction, 59 00:03:05,654 --> 00:03:08,804 which is what we want because we want that color 60 00:03:08,804 --> 00:03:11,054 correction to be affecting the tracker, 61 00:03:11,054 --> 00:03:14,054 affecting the pixels that the tracker's looking at. 62 00:03:14,054 --> 00:03:18,053 So let's go ahead and zoom in up here on our leg of our 63 00:03:18,054 --> 00:03:21,053 coffee table and we'll add a track. 64 00:03:21,054 --> 00:03:23,053 And I'm just going to position this. 65 00:03:23,054 --> 00:03:27,054 Let's just kind of have it right here in the middle where 66 00:03:27,054 --> 00:03:30,130 this shadow kind of turns into a V. 67 00:03:30,130 --> 00:03:32,054 So kind of just right about there. 68 00:03:32,054 --> 00:03:35,053 Or you could maybe even come up here to kind of the tip of that. 69 00:03:35,054 --> 00:03:38,053 That would work as well. 70 00:03:38,054 --> 00:03:41,781 Any time you just have a feature that has a very stark contrast right around it, 71 00:03:41,781 --> 00:03:45,599 you can kind of see this area might here not be as good because 72 00:03:45,599 --> 00:03:49,054 the pixels around it might be a little closer. 73 00:03:49,054 --> 00:03:50,831 Anytime there's more contrast from pixel to pixel, 74 00:03:50,831 --> 00:03:54,054 you're going to need the best information. 75 00:03:54,054 --> 00:03:57,054 So we'll use this for our first track. 76 00:03:57,054 --> 00:03:58,768 And you want to pull this over here to the side so 77 00:03:58,768 --> 00:04:01,054 you can see your transformation, rotation, 78 00:04:01,054 --> 00:04:02,054 and scale. 79 00:04:02,054 --> 00:04:05,053 We'll just do the translation. 80 00:04:05,054 --> 00:04:09,054 And then let's move this over here and zoom in on this grout line. 81 00:04:09,054 --> 00:04:12,387 Notice if you zoom in first before adding a track, 82 00:04:12,387 --> 00:04:15,054 if I just hit a track, it's going to add that right in the middle of the viewer. 83 00:04:15,054 --> 00:04:21,053 So it's a lot easier to add or to move that closer to where you want it 84 00:04:21,053 --> 00:04:24,054 if you're zoomed in that position in the first place. 85 00:04:24,054 --> 00:04:27,054 OK, so I'm going to pull this down. 86 00:04:27,054 --> 00:04:31,054 We don't need that pattern area to be quite so large. 87 00:04:31,054 --> 00:04:34,326 And let's go ahead and turn on the translation, 88 00:04:34,326 --> 00:04:37,054 rotation, and scale for this tracker. 89 00:04:37,054 --> 00:04:40,054 Then let's zoom back out. 90 00:04:40,054 --> 00:04:41,053 And I have a feeling this one's going to be pretty easy 91 00:04:41,054 --> 00:04:43,754 compared to some of the other ones we've done, 92 00:04:43,754 --> 00:04:46,053 especially since we added this color correction. 93 00:04:46,054 --> 00:04:50,054 So let's go ahead and we'll just Shift-Select to both of those tracks. 94 00:04:50,054 --> 00:04:54,554 And it looks like this time since we've started on the 38th frame, 95 00:04:54,554 --> 00:04:57,054 we probably should have gone back to the first frame. 96 00:04:57,054 --> 00:04:58,053 But that's OK. 97 00:04:58,054 --> 00:05:02,053 We can just track backwards and then come back to frame 38 and track forwards. 98 00:05:02,054 --> 00:05:07,054 So this time let's just hit this button right here that says Track To Start. 99 00:05:07,054 --> 00:05:09,054 And that's just going to kind of automate that for us. 100 00:05:09,054 --> 00:05:11,154 That looks like, for the most part, 101 00:05:11,154 --> 00:05:13,653 that's really staying nicely in place because, 102 00:05:13,653 --> 00:05:17,053 honestly, it's not that bad of a shaky image. 103 00:05:17,054 --> 00:05:23,054 So in fact, I think with both of these tracks selected, we can just watch this. 104 00:05:23,054 --> 00:05:24,963 And just kind of looking right here, 105 00:05:24,963 --> 00:05:28,053 this really looks like it's staying in place very nicely. 106 00:05:28,054 --> 00:05:32,053 So let's just come back over here to frame 38 and we'll hit Track To End 107 00:05:32,053 --> 00:05:41,054 and finish up that track all the way through to the end. 108 00:05:41,054 --> 00:05:41,361 OK, 109 00:05:41,361 --> 00:05:45,853 so right here we've run into a little bit of an issue where our 110 00:05:45,853 --> 00:05:50,690 timeline is only showing 44 frames but clearly that tracker was 111 00:05:50,690 --> 00:05:55,054 trying to continue to go past that 44. 112 00:05:55,054 --> 00:05:56,887 So we're going to come over here to where we see 113 00:05:56,887 --> 00:05:59,053 global and change this to Input. 114 00:05:59,054 --> 00:06:02,053 And basically that's going to give us the full amount of 115 00:06:02,054 --> 00:06:05,054 frames that we have for this shot. 116 00:06:05,054 --> 00:06:08,054 So let's continue to track the rest of this shot. 117 00:06:08,054 --> 00:06:10,130 I'm just going to come back here to 74, 118 00:06:10,130 --> 00:06:13,053 which is the final frame that the track stopped on. 119 00:06:13,054 --> 00:06:16,053 And then we'll just tell it to continue to track to the end. 120 00:06:16,054 --> 00:06:19,054 And it'll track all the way to 297. 121 00:06:19,054 --> 00:06:21,053 So that's quite a few frames. 122 00:06:21,054 --> 00:06:24,054 That's a really long track. 123 00:06:24,054 --> 00:06:27,361 But again, because we don't have a lot of movement in our shot, 124 00:06:27,361 --> 00:06:32,054 that's going to be just fine to deal with even if it is a little bit 125 00:06:32,054 --> 00:06:35,054 longer than some of the other clips we've worked with. 126 00:06:35,054 --> 00:06:37,554 So while this is finishing up, 127 00:06:37,554 --> 00:06:45,054 let's go ahead and talk about what we're going to be doing next. 128 00:06:45,054 --> 00:06:49,599 So just like before, whenever we get our tracking data, 129 00:06:49,599 --> 00:06:56,054 we need to apply it to something to move the image. 130 00:06:56,054 --> 00:07:01,054 So in this case, we're not really going to have a second thing to move. 131 00:07:01,054 --> 00:07:06,053 So we've used our tracking data so far to move something around the shot. 132 00:07:06,054 --> 00:07:08,053 But basically, in this scenario, 133 00:07:08,053 --> 00:07:14,054 we want to take the tracking data and use it on the image 134 00:07:14,054 --> 00:07:19,054 itself in order that it makes the image basically move 135 00:07:19,054 --> 00:07:21,054 backwards of those movements. 136 00:07:21,054 --> 00:07:25,387 So it ends up just kind of counteracting that and what you 137 00:07:25,387 --> 00:07:28,053 end up with is a still looking shot. 138 00:07:28,054 --> 00:07:32,053 So the way that we start to apply this data is slightly 139 00:07:32,054 --> 00:07:34,054 different from what we've done in the past. 140 00:07:34,054 --> 00:07:39,054 So now that this is finished tracking, let's go ahead and apply this. 141 00:07:39,054 --> 00:07:42,054 So come over here to your Transform tab. 142 00:07:42,054 --> 00:07:46,054 And what we're going to do is to kind of look at this transformation. 143 00:07:46,054 --> 00:07:49,053 So right now the transformation is set to None. 144 00:07:49,054 --> 00:07:52,387 So this is usually going to be when you're calculating your track, 145 00:07:52,387 --> 00:07:55,053 you want this to be set to None. 146 00:07:55,054 --> 00:08:00,054 And then we can come in here and change this to the stabilize function. 147 00:08:00,054 --> 00:08:04,054 So go ahead and click that. 148 00:08:04,054 --> 00:08:06,054 And because we did a stabilization with two points, 149 00:08:06,054 --> 00:08:10,053 we'll just choose this first option, not stabilize one point. 150 00:08:10,054 --> 00:08:11,054 So just click stabilize. 151 00:08:11,054 --> 00:08:17,054 And believe it or not, that's all you have to do to apply that data to itself. 152 00:08:17,054 --> 00:08:20,054 So now let's hit the Play button again. 153 00:08:20,054 --> 00:08:23,054 And you're going to see two things happening. 154 00:08:23,054 --> 00:08:26,054 Now our image looks much more still. 155 00:08:26,054 --> 00:08:30,053 We don't have that crazy movement that we had earlier. 156 00:08:30,054 --> 00:08:33,054 But we also get this black edge here. 157 00:08:33,054 --> 00:08:38,720 So that is basically what happens whenever you move an image in this way and 158 00:08:38,720 --> 00:08:43,609 basically what's happening is it's rotating down or moving down to counteract 159 00:08:43,609 --> 00:08:47,054 that rotation and transformation information. 160 00:08:47,054 --> 00:08:54,053 And then the black outside of the image is being shown. 161 00:08:54,054 --> 00:08:55,053 So that's not what we want. 162 00:08:55,054 --> 00:09:00,054 What we'll have to do to counteract those black areas is to scale our image up. 163 00:09:00,054 --> 00:09:09,054 And one other thing that you can do before you change that is to make 164 00:09:09,054 --> 00:09:13,054 sure that the reference frame is set to the right frame. 165 00:09:13,054 --> 00:09:17,054 So right now it's still fixing this because it's very close. 166 00:09:17,054 --> 00:09:20,690 But you'll notice that our reference frame is 0 and 167 00:09:20,690 --> 00:09:23,054 this reference frame is set to one. 168 00:09:23,054 --> 00:09:26,053 So you want it to be from the first frame. 169 00:09:26,054 --> 00:09:28,053 So I'm just going to go ahead and change that to 0. 170 00:09:28,054 --> 00:09:33,387 And that's actually going to help it be a little bit closer to what it 171 00:09:33,387 --> 00:09:38,054 really should be doing to counteract that frame by frame. 172 00:09:38,054 --> 00:09:41,253 And if your sequence that you're working with, 173 00:09:41,253 --> 00:09:43,417 if you're not using our project files, 174 00:09:43,417 --> 00:09:47,054 starts on frame one then you would leave that reference frame to frame one. 175 00:09:47,054 --> 00:09:51,054 It's basically whatever first frame you have there. 176 00:09:51,054 --> 00:09:53,053 And it's usually going to be a 0 or a one. 177 00:09:53,054 --> 00:09:53,411 OK, 178 00:09:53,411 --> 00:09:58,387 so now let's go ahead and fix the scale of this so that we 179 00:09:58,387 --> 00:10:01,054 don't get those black bars on the edge. 180 00:10:01,054 --> 00:10:01,207 Now, 181 00:10:01,207 --> 00:10:03,054 what I'm going to do is kind of scrub forward to a 182 00:10:03,054 --> 00:10:05,054 place where I see the most black. 183 00:10:05,054 --> 00:10:09,054 Looks like that's mostly happening here at the top. 184 00:10:09,054 --> 00:10:13,054 So we also get a little bit down at the bottom here towards the end. 185 00:10:13,054 --> 00:10:15,054 So maybe right about there, actually. 186 00:10:15,054 --> 00:10:17,054 That's quite a bit. 187 00:10:17,054 --> 00:10:22,054 So let's go ahead and have our transform node to scale this up. 188 00:10:22,054 --> 00:10:24,054 So what I'll do is just kind of zoom out a little bit. 189 00:10:24,054 --> 00:10:27,220 And also, at this point we don't need that color correct node, 190 00:10:27,220 --> 00:10:28,720 so you can just select that and delete it, 191 00:10:28,720 --> 00:10:31,054 because we already have all our tracking data. 192 00:10:31,054 --> 00:10:34,054 That's just going to make it look a little bit less blown out. 193 00:10:34,054 --> 00:10:36,942 And you can go ahead and select that tracker because we want the 194 00:10:36,942 --> 00:10:41,054 Transform node to appear between that tracker and the viewer. 195 00:10:41,054 --> 00:10:43,054 So we'll just come over here to our Transform button, 196 00:10:43,054 --> 00:10:47,054 choose the Transform node, and that'll drop that in there for us. 197 00:10:47,054 --> 00:10:49,054 And you can see that's right there in the middle. 198 00:10:49,054 --> 00:10:50,054 Perfect. 199 00:10:50,054 --> 00:10:53,054 And let's go ahead and bump up our scale a little bit. 200 00:10:53,054 --> 00:10:59,054 So looks like right in there on 106 pushes that black right outside the edge. 201 00:10:59,054 --> 00:11:01,054 And let's just go ahead and play through. 202 00:11:01,054 --> 00:11:06,144 Just make sure that those dotted lines you see don't go on the 203 00:11:06,144 --> 00:11:11,053 inside of this solid gray line that's your frame. 204 00:11:11,054 --> 00:11:15,053 So one of the drawbacks of image stabilization is that 205 00:11:15,054 --> 00:11:18,054 you're going to lose some resolution. 206 00:11:18,054 --> 00:11:21,053 So it's not going to be actually a different size. 207 00:11:21,054 --> 00:11:24,054 It's still going to be your 1280 by 720. 208 00:11:24,054 --> 00:11:27,054 But the pixels that are there to make that up are going to be stretched a 209 00:11:27,054 --> 00:11:29,054 little bit further than they originally were intended. 210 00:11:29,054 --> 00:11:32,942 Now again, the scale is only 1. 211 00:11:32,942 --> 00:11:35,054 06, so it's not a huge change. 212 00:11:35,054 --> 00:11:38,054 You're probably not going to notice a huge difference. 213 00:11:38,054 --> 00:11:41,054 But it just kind of depends on the shot. 214 00:11:41,054 --> 00:11:43,554 So if you end up shooting things bigger than they need to 215 00:11:43,554 --> 00:11:46,554 be and then doing your stabilization, 216 00:11:46,554 --> 00:11:51,054 then you can scale them down and you'll preserve more data. 217 00:11:51,054 --> 00:11:53,053 That's actually going to be better to do it that way. 218 00:11:53,054 --> 00:11:57,963 So if you shot it at 1080 and your final output is going to be 720, 219 00:11:57,963 --> 00:12:04,054 you would want to do your transformation in between that change. 220 00:12:04,054 --> 00:12:06,054 So this is starting to look pretty good. 221 00:12:06,054 --> 00:12:11,054 So we've got our image stabilized and the tracker was set up. 222 00:12:11,054 --> 00:12:16,054 We've got that transform node in there just to bring the scale up. 223 00:12:16,054 --> 00:12:17,054 Really, really looking nice. 224 00:12:17,054 --> 00:12:19,453 So now that our footage has been stabilized, 225 00:12:19,453 --> 00:12:22,554 we're ready to learn how to do a four point track to 226 00:12:22,554 --> 00:12:25,054 replace this screen in the phone. 227 00:12:25,054 --> 00:12:38,054 And we're going to learn how to do that in our next lesson. 20241

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.