Advertisement
  1. 3D & Motion Graphics
  2. Blender
Cgi

How to Scribble Over a Video in Blender

by
Difficulty:BeginnerLength:LongLanguages:

In this tutorial I'll show you how to draw or scribble over a video in Blender in order to achieve an effect seen in the Justin Bieber 'What do you mean' lyric video. 

The tutorial is divided into five parts: 

  1. Introduction to Grease Pencil tool
  2. Animating with Grease Pencil
  3. Preparing the video
  4. Animating over a video, and
  5. Rendering

Screencast

1. Introduction to the Grease Pencil Tool

Step 1

In a new file, Press A on the keyboard to select all objects and then press Del to delete them.

Delete default objects
Delete default objects

Step 2

To execute Grease Pencil tool, hold D key on the keyboard, and just draw a stroke with left mouse button or your pen tablet, in the 3D viewport. The stroke will finish when you release the mouse button. 

Rotate the view with middle mouse button and you will see that the stroke is in 3D, and can be created from any angle.

Draw a stroke
Draw a stroke

Step 3

To see more options for drawing with the Grease Pencil tool, press T and bring out the Toolshelf. Click on the Grease Pencil Tab.

Grease Pencil toolshelf
Grease Pencil toolshelf

Step 4

Here you will see the four basic tools which can be used in drawing.

  1. Draw—enables the brush to draw a freehand stroke
  2. Erase—erases the grease pencil stroke
  3. Line—Drag to create straight lines
  4. Poly—create polygons by connecting the end points of line strokes
Grease Pencil tools
Grease Pencil tools

Step 5

You need to hold D key on the keyboard or click the Draw button each time to draw a stroke. You can avoid this by checking the Continuous Drawing option. 

With this option, a sketching session starts, allowing to create multiple strokes. Press Esc or Enter to exit sketching session.

Continuous Drawing mode
Continuous Drawing mode

Step 6

At the lower part you will find the Stroke Placement options.

Stroke Placement options
Stroke Placement options

There are several choices for Drawing Settings.

  • View—Strokes are locked to the view
  • Cursor—Strokes are drawn with position determined by the 3D cursor
  • Surface—Strokes are drawn onto the visible surface of a 3D object
  • Stroke—Strokes are drawn in 3D-space, with their position projected onto existing visible strokes
Stroke Placement options
Stroke Placement options

Step 7

With the mouse in 3D view, Press N to bring up the Properties panel. In the Grease Pencil panel you'll see all other appearance settings.

  1. By default a new layer will be automatically added when you start drawing
  2. Stroke—Sets the line color. Move the Opacity slider to set the transparency of the stroke
  3. Fill—Sets the color of the interior of the strokes. The opacity slider sets the transparency of the fill color
  4. Thickness—Sets the thickness of the stroke
  5. X-Ray—Makes the lines visible when they pass behind other objects in the scene
Grease Pencil properties
Grease Pencil properties

Step 8

Press the X button to remove the grease pencil object that is the rough scribble you just made.

Removing the Grease Pencil
Removing the Grease Pencil

2. Animating Using Grease Pencil

Step 1

Blender allows you to use the Grease Pencil tool to do tradition 2D animation by drawing frame by frame. Just delete the previous Grease Pencil layer or object if you have any or open a new file. 

Press 1 on the number pad to get into front view. Press 5 to toggle off perspective mode. This will give a neat flat view which will be a good background to draw the animation. 

In the Grease Pencil tab of the tool shelf, turn on Continuous Drawing. This will be useful while sketching, otherwise you might need to hold D again and again to draw. Press the Draw button. You will notice that a new layer for Grease Pencil is created.

Continuous Drawing mode
Continuous Drawing mode

Step 2

Press Shift-Right arrow to make sure you are on frame one. I'll be animating a falling circle, you can draw anything you want. This is not an animation tutorial and focuses more on the Grease Pencil tool.

Drawing on 3D view
Drawing on 3D view

Step 3

Press Right arrow on the keyboard to go to the next frame—frame 2. You can click on the right arrow of the frame counter to go to next frame but since you are in sketching mode you need to press Esc or Enter to exit Continuous Drawing and then click on any other button and then back to Draw button again. 

Therefore it is better to use the keyboard shortcut if you are in sketching mode.

Going to the next frame
Going to the next frame

Step 4

In frame 2 you'll see the sketch you made in the first frame. This will go away as soon as you make a new one. Draw the circle slightly at a lower position to animate it falling down.

Drawing on the next frame
Drawing on the next frame

Step 5

Press Right arrow on the keyboard to go into next frame. Draw the sketch in the frame. Similarly repeat the process to make a shot.

Drawing and animation
Drawing and animation

Step 6

Press Esc to exit Continuous Sketching mode. Press Shift-Left arrow to get into first frame or press the Go to First Frame button in the timeline window. 

Press the play button or Alt-A to preview the animation. Press Esc to stop.

Playing the animation
Playing the animation

The more frames drawn in between, the more fluid and smooth will be the animation.

Animation preview
Animation preview

Step 7

The Grease Pencil tool also has Onion Skinning feature. You can see the previous and next frames. 

In the Properties panel, under Grease Pencil panel, check Onion Skinning to enable it.

You can choose the color for previous and next frames. After selecting Colors, press the Color wheel button to see the changes. You can also set the number of frames to see before or after the current frame.

Onion Skinning options
Onion Skinning options

Step 8

You can add new Layers of drawings in Grease Pencil. Press the + button on the side to add a layer.

Grease Pencil Layers
Grease Pencil Layers

Step 9

Layers can help create different objects and sketches as required. Ensure you're on the first frame. Rename the new layer Ground. Set the stroke color to green and draw a line to show the ground. 

Each layer can have its own settings. I want this ground to be stable so there is no need to draw it on every frame.

New layer of Grease Pencil
New layer of Grease Pencil

Press the Play button or Alt-A to see the animation.

Animation Preview
Animation Preview

3. Preparing the Footage

Step 1

For practice, I downloaded the video from videvo.net. I wanted the video to be in greyscale and scribble it over with white. 

If you want to continue with your video as it is, you can skip this part and go directly to Animating Over the Video. To convert the video to gray greyscale, in a new file, click on the Screen Layout button and select Compositing.

Compositing Layout
Compositing Layout

Click on the Use Nodes checkbox to enable node editing.

Enable Use Nodes
Enable Use Nodes

Step 2

Select the Render Layers node with secondary-click and press Del on the keyboard to delete it.

Delete Render Layers node
Delete Render Layers node

Step 3

With the mouse over the node editor, press Shift-A to bring out Add node menu. Click on Input and then select Movie Clip so that you can import your video file.

Adding Movie Clip
Adding Movie Clip

Step 4

Click on the Open button of the node and browse for the file.

Open video file
Open video file

Step 5

Press Shift-A to bring out the Add node menu. Click on Color and then select Hue Saturation Value

You can move a node around by dragging with its titlebar at the top.

Adding Hue Saturation Value node
Adding Hue Saturation Value node

Step 6

Connect the nodes as shown in the image. Primary-click and drag the mouse from the Image output socket (yellow dot) of the Movie clip node to the Image input socket (yellow dot) of the Hue Saturation node and then release the mouse button. 

Connect the Hue Saturation node to the Composite node as well.

Decrease Saturation
Decrease Saturation

Step 7

In the Renders properties, in the Dimensions panel, ensure the resolutions are same as the video. 

Check the Frame Rate as well, it should match with the video. 

In the Post Processing panel, check the Compositing option. This will process the render result form the compositing pipeline i.e the node setup.

Render settings
Render settings

Press F12 or Render button to render a test frame.

Render preview
Render preview

Step 8

I want the white sketches and scribble to stand out on a darker background. So I reduced the contrast and the whiteness in the video. 

To do that, press Shift-A to bring out the Add menu. Click on Color and select RGB Curves.

Adding RGB Curves node
Adding RGB Curves node

Place it between the Hue Saturation node and the Composite node.

Placing the node
Placing the node

Step 9

Tweak the curve so that the whites are reduces. You can also tweak the blacks and reducing the contrast of the whole video.

Tweaking the curve
Tweaking the curve

You can compare the result.

Reducing the contrast
Reducing the contrast

Step 10

In the Render properties and in the Output panel, choose the desired directory and filename for the rendered video. Select MPEG for File Type. 

In the Encoding panel, select MPEG-4 for format.

Render settings
Render settings

In the Dimensions Panel, ensure the resolution and frame rate is same as of footage. 

You can also trim the footage from start and end, and input only those frames which you want to use, instead of rendering whole video.

Frame Range settings
Frame Range settings

Step 11

Press the Animation button. This will render out the video.

Rendering the video
Rendering the video

4. Animating Over the Video

Step 1

Now the actual project starts, where you will scribble over the video. 

Press Ctrl-N to create a new file. Hold Shift and then secondary-click on the cube and light to select both. Press Del on the keyboard to delete them.

Delete cube and light
Delete cube and light

Step 2

Secondary-click on the camera to select it.

  • Press Alt-R to reset its rotation
  • Alt-G to reset its location
  • Press 3 on the numpad to get into sideview
  • Move the camera away from the 3D cursor because by default, the grease pencil stroke is aligned to the 3D cursor. 
  • Select the camera with secondary-click and press G to move or use the arrow widget
Adjusting the Camera
Adjusting the Camera

Step 3

Press N to bring out the Properties. In the Background Images panel,

  • Click on Add image.
  • Select Camera in Axis
  • Press the Movie Clip button
  • Uncheck Camera Clip
  • Increase the opacity of the background video to 1
Background video settings
Background video settings

Step 4

Hold D and start drawing over the video. Press T to bring the Tool shelf for Grease Pencil tool options. 

Check the Continuous Drawing mode. In the Properties panel, change the color of the stroke to white.

Drawing over the video
Drawing over the video

Step 5

Press the right arrow button on the keyboard to go to the next frame to draw and animate.

What you draw depends totally up to you and your creativity. At the last frame, use the eraser tool to erase the sketch completely, and it will not appear further in any frame. 

Save the file.

Animating over the video
Animating over the video

Step 6

You can also see the keyframes in the Dope sheet. 

Split the 3D view and select Dope Sheet in the view type. You can delete, duplicate or move these keyframes.

Keyframes in the Dope Sheet
Keyframes in the Dope Sheet

5. Rendering

Step 1

The sketches cannot be rendered via the Render button in the Render Properties. They can only be rendered via openGL render option. 

Click on the camera button in the 3D view port to render a single frame. You can preview the result and increase or decrease the thickness of the stroke according to your preference.

OpenGL render
OpenGL render

Step 2

In the Render properties, under the Dimensions panel,

  • Set the Resolution and frame rate of the output. The frame rate should be same as the original video but now you can change the resolution. Still, it should be in proportion to original. i.e you can type the resolution of the original video and then decrease the percentage slider if you want a smaller output
  • Under the Output Panel, choose the desired folder and filename
  • Select MPEG for file format
  • In the Encoding Panel, select MPEG-4 for format
Render Settings
Render Settings

Step 3

Finally click on the Clap button in the 3D viewport, to render the video along with scribble over it.

OpenGL animation render
OpenGL animation render

Step 4

To add sound or music, in a new file, select Video Editing for screen layout.

Video Editing screen layout
Video Editing screen layout

Step 5

Move the mouse over the video sequencer window and press Shift-Left arrow to make sure you are on the first frame. Press Shift-A and click on Movie to add a movie strip.

Adding the video
Adding the video

Set the End frame number according to the video strip length. Click on the End frame counter to input custom frame number.

Setting the frame range
Setting the frame range

Step 6

Now again press Shift-Left arrow on keyboard to go to first frame. Press Shift-A again to add a sound clip. I downloaded mine from YouTube's free Audio Library

You can select the strips with secondary-click and move them with G key. Both must start on frame one.

Adding sound or music
Adding sound or music

Step 7

In the Sync Mode choose AV sync so that we can have a preview with audio and video synchronized.

AV Sync mode
AV Sync mode

Press Play button or Alt-A for preview.

Preview video
Preview video

You'll see the video and music playing together. If the video does not play smoothly, that means blender is calculating to scale the video to the dimensions  as set in the render options. 

If the resolutions in the Render panel are same of the video strip then the preview will run smoother.

Preview video with music
Preview video with music

Step 8

Return to Default screen layout.

Default screen layout
Default screen layout

Step 9

In the Render Properties, under the Dimensions panel, check the resolution and frame rate. 

In the Post Processing Panel, uncheck the Compositing and Check Sequencer. This will process the render through the video editor pipeline.

Render settings
Render settings

Step 10

In the Output Panel, select and type in the desired output directory and filename.

  • Select MPEG in file type
  • In the Encoding panel, select MPEG-4 for Format and MP3 for Audio Codec
Render settings
Render settings

Step 11

Press the Animation button in the Render panel. This will render the video with the music. Browse for the file and play.

Rendering the final video
Rendering the final video

Advertisement
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.