A Resource for Audiovisual Preservation!
This is a quick and dirty adaption of my ‘Demystifying FFmpeg’ talk! Includes an embedded version as well as useful links and cut/paste versions of some of the commands used in the slides.
Links:
These render a little oddly (extra blank space) in this webpage, but work fine when cut pasted (at least on my machine!) Most commands are written using macOS file paths unless otherwise specified. For windows users, substitute ~power.gif
for your output file.
FFmpeg macOS Homebrew Install:
Install Homebrew by opening Terminal and following homebrew install instructions from https://brew.sh)
Then run:
brew install ffmpeg --with-sdl2
Alternately Download from here (OSX and Windows) https://ffmpeg.org/download.html
Caveat for following slides:
FFmpeg must be installed with freetype and openssl for the following slides. If already installed, run:
brew reinstall ffmpeg --with-freetype --with-openssl
OSX Command:
ffmpeg -f lavfi -i testsrc=500x500 -i http://github.com/privatezero/NDSR/raw/master/heman.tiff -filter_complex "[0:v][1:v]overlay=-30:55,drawtext=fontfile=/Library/Fonts/Andale Mono.ttf:text='I have the power':fontcolor=white:fontsize=40:box=1:boxcolor=black" -r 10 -t 5 ~/desktop/power.gif
Windows Command:
ffmpeg -f lavfi -i testsrc=500x500 -i http://github.com/privatezero/NDSR/raw/master/heman.tiff -filter_complex "[0:v][1:v]overlay=-30:55,drawtext=fontfile=/Windows/Fonts/lucon.ttf:text='I have the power':fontcolor=white:fontsize=40:box=1:boxcolor=black" -r 10 -t 5 ~power.gif
ffmpeg -i http://github.com/privatezero/NDSR/raw/master/heman.tiff ~/desktop/power.gif
ffmpeg -f lavfi -i testsrc ~/desktop/power.gif
ffmpeg -f lavfi -i testsrc -r 10 -t 5 ~/desktop/power.gif
ffmpeg -f lavfi -i testsrc -vf vflip -r 10 -t 5 ~/desktop/power.gif
ffmpeg -f lavfi -i testsrc=500x500 -i http://github.com/privatezero/NDSR/raw/master/heman.tiff -filter_complex "[0:v][1:v]overlay=-30:55" -r 10 -t 5 ~/desktop/power.gif