Blender: Difference between revisions

From Bitpost wiki
No edit summary
Line 5: Line 5:
=== Set up project ===
=== Set up project ===


* Start blender, change the "screen block" (first dropdown to the right of the File-Render-Window menu in the far top-left corner) to Video Editing
* Start blender, make sure "Info" view is selected in top left View Type
* Change the "screen block" (first dropdown to the right of the File-Render-Window menu in the far top-left corner) to Video Editing
* Now you have three areas, what I'll call top-left "graph", top-right "video preview", middle "video sequence", bottom "video playback"; each has a viewbar at the bottom of the area; in the "graph" area, select the area type dropdown (far left) and change it to "properties"; note that strangely, the properties ares has its area type dropdown at the TOP of the area, doh
* Now you have three areas, what I'll call top-left "graph", top-right "video preview", middle "video sequence", bottom "video playback"; each has a viewbar at the bottom of the area; in the "graph" area, select the area type dropdown (far left) and change it to "properties"; note that strangely, the properties ares has its area type dropdown at the TOP of the area, doh
* Set the End frame in the video sequence (bottom toolbar) to give enough width to fit the videos, eg 250 > 25000
* Set the End frame in the video sequence (bottom toolbar) to give enough width to fit the videos, eg 250 > 25000

Revision as of 18:50, 1 June 2019

Blender IS FUCKING LIT. But deep as hell.

Video Editing

Set up project

  • Start blender, make sure "Info" view is selected in top left View Type
  • Change the "screen block" (first dropdown to the right of the File-Render-Window menu in the far top-left corner) to Video Editing
  • Now you have three areas, what I'll call top-left "graph", top-right "video preview", middle "video sequence", bottom "video playback"; each has a viewbar at the bottom of the area; in the "graph" area, select the area type dropdown (far left) and change it to "properties"; note that strangely, the properties ares has its area type dropdown at the TOP of the area, doh
  • Set the End frame in the video sequence (bottom toolbar) to give enough width to fit the videos, eg 250 > 25000
  • Once you have the first video imported, hover over the preview clip, press N, select Proxy render size 25% - you should only have to do this once

Set up Render

  • In the top-right preview window, you are viewing VSE output (looks like a filmstrip S shape)
  • Carefully change that to Properties (remembering that the fucking toolbar will POP from bottom to top of the window - you want to set it BACK to VSE when done configuring the render properties)
  • Now you can change "Render Settings"
    • Dimensions > Resolution > (default is 1920x1080, you might want 1920x1920 if you have both vertical and horizontal footage); See Add a movie, below, to use Image Offset when importing to center each one accordingly
    • Output > directory to (project)/output
    • Output > ffmpeg video, RGB
    • Encoding > Container > MPEG-4, Codec H.264
    • Encoding > Audio Codec > AAC
    • (used to have Presets > MPEG-4, Codec > H.264, Audio Codec > AAC (these codecs play on iphone + android + chrome + firefox!))

Add a movie

  • In the "video sequence" area, click Add > Movie to get a file browser and pick a movie file
    • I find it easiest to drag from a project folder visible in nautilus
    • You can also change the view to list and sort to by date by using the toolbar
  • Set up smaller "proxy" videos for each video strip you import; right-click video strips to select them, select Proxy/Timecode in properties, 25%, then click rebuild proxy and timecodes - YOU HAVE TO DO THIS FOR EVERY STUPID CLIP

Rotating Zooming Panning Video

Annoyingly Blender does not use the camera metadata to rotate the video, so you often need to fix this manually. It's not too bad once you're used to the process. You have to attach a "transform" strip to the video strip you want to ... transform.

  • select the target video strip (rclick or G)
  • VSE menu one up from the bottom > Add > Effect strip > Transform
  • select it, set the rotation to whatever you need
  • You can also zoom and crop the video with this same process, it's very useful
  • There is a way to set up a "driver" for dynamic panning etc. but I'm not smart enough for that yet

You can also rotate video FIRST with ffmpeg. But I got shit results, as it always seems to decode+encode, f that. This will strip the metadata so make sure you rotate the raw video to the correct rotation:

# To simply remote metadata:
ffmpeg -i VID_20180712_202358.mp4 1_grandentry.mp4

# To rotate
# transpose=1 means CW 90 degrees
# transpose=2 means CCW 90 degrees
# Use -vf "transpose=2,transpose=2" for 180 degrees
ffmpeg -i VID_20180712_202358.mp4 -vf transpose=2 -codec:a copy -metadata:s:v:0 rotate=0 1a_grandentry.mp4

Important keys

  • Use the scrollwheel to zoom out, and ctrl-scrollwheel to center the sequence
  • Ctrl-s to save
  • Shift-Ctrl-s to save-as
  • A to unselect all, then B to "box select", then drag the mouse
  • On a strip...
    • press K to cut it
    • press X to delete it
    • press G to move it left/right/across tracks
  • Click in the video sequence to set the current position; press M to leave a Marker there that can be returned to using the Marker menu
  • Alt-A to play/pause