Skip to content

Instantly share code, notes, and snippets.

@christianhent
Created March 5, 2017 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianhent/783f0c7efd562888ec56cad8decef65b to your computer and use it in GitHub Desktop.
Save christianhent/783f0c7efd562888ec56cad8decef65b to your computer and use it in GitHub Desktop.
Record a slideshow video from images
#1
/usr/lib/xscreensaver/glslideshow -pan 8 -duration 8 -delay 0 -fade 4 -zoom 75 -clip -geometry 1280x720+0+0 &
#2
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1280x720 -i :0.0+0,29 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 Videos/slideshow.mkv
#3
ffmpeg -ss 00:00:02 -t 00:01:50 -i Videos/slideshow.mkv -acodec aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 20 -threads 0 Videos/slideshow.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment