Video
ffmpeg
Record desktop
From
https://trac.ffmpeg.org/wiki/Capture/Desktop
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+000,600 output.mp4
Video in video
https://www.daniel-mitchell.com/blog/video-in-a-video-ffmpeg/
ffmpeg -i video-chunk-2-2.mp4 -i video-jibo-small.mp4 -b:v 1M -filter_complex "[1:v]scale=360:640 [ovrl], \ [0:v][ovrl]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" video-chunk-2.mp4
Convert video to gif
ffmpeg -y -i "$1" \ -filter_complex "fps=${4:-10},scale=${3:--1}:-1:flags=lanczos[x];[x]split[x1][x2]; \ [x1]palettegen[p];[x2][p]paletteuse" "$2"
Parameters
Input
Output
Width of output (default: same as input)
FPS (default: 10)
Mencoder