Get ffmpeg working

Rigging up the things with libavformat, libavcodec, libavutils.