Video

Programs to Create Screencasts Record Desktop OBS Studio Simple Screen Recorder Record Terminal Sessions Asciinema Notes on Editing With Blender Output Format Dimensions HDTV 1080P or HDTV 720P Output File Format: FFmpeg video Container: MPEG-4 or Matroska Video Codec: H.264 Audio Codec: AAC Convert a Portrait Video to Landscape …

Programs to Create Screencasts

Record Desktop

OBS Studio

Simple Screen Recorder

Record Terminal Sessions

Asciinema

Notes on Editing With Blender

Output Format

Dimensions
HDTV 1080P or HDTV 720P

Output
File Format: FFmpeg video
Container: MPEG-4 or Matroska
Video Codec: H.264
Audio Codec: AAC

Convert a Portrait Video to Landscape With Blurred Sides

Reference:
https://www.youtube.com/watch?v=VZ2B0vH1NNc&t=338s

  • Add same video clip twice (video will be stretched)
  • Delete one audio track
  • Add -> Effect -> Gaussian blur on the bottom video strip. Properties -> Add size x and y 100. For blend mode use, Alpha over.
  • Add a Transform effect on the uppermost video clip. Properties -> Scale -> 0.32 (experiment). For blend mode, use Alpha over.

Resizing to reduce - Import encoded video into a new project - Add a Transform effect. Properties -> Check Uniform scale and increase the scale on x and y axis

Video Stabilisation With ffmpeg and vidstab Plugin

Reference:
https://scottlinux.com/2016/09/17/video-stabilization-using-vidstab-and-ffmpeg-on-linux/
https://github.com/georgmartius/vid.stab
https://superuser.com/a/525931

Used stable ffmpeg static build from https://www.johnvansickle.com/ffmpeg/. It includes ffmpeg compiled with the vidstab plugin.

Analyze Video

ffmpeg -i input.mkv -vf vidstabdetect -f null -

If very shaky, do:

ffmpeg -i input.mkv -vf vidstabdetect=shakiness=10:accuracy=15 -f null -

Stabilize Video

To test stabilization and create a 1 minute test video:

ffmpeg -i input.mkv -c:v libx264 -crf 18 -c:a aac -strict -2 -vf vidstabtransform=smoothing=30:input="transforms.trf" -ss 60 -t 60 test.mkv

If satisfactory, create final output:

ffmpeg -i input.mkv -c:v libx264 -crf 18 -c:a aac -strict -2 -vf vidstabtransform=smoothing=30:input="transforms.trf" output.mkv

To make a side by side comparison video:

ffmpeg -i input.mkv -i output.mkv -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" side_by_side.mkv

Alternative (quick fix):

ffmpeg -i input.mp4 -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 output.mp4

Sharing Video on WhatsApp

Reference:
https://www.quora.com/Which-video-formats-does-WhatsApp-support?share=1

If video thumbnail is not displayed or if video is not supported, use ffmpeg to re-encode video using H264 and AAC codecs:

ffmpeg -i input.mp4 -vcodec libx264 -acodec aac wa-post.mp4

Create Video From Image Sequence Using ffmpeg

Reference:
https://trac.ffmpeg.org/wiki/Slideshow

With images numbered like image0001.png:

ffmpeg -framerate 29.97 -i image%04d.png -vf format=yuv420p output.mp4

Comments