Merge pull request #5 from markreidvfx/master

Basic encoding support!
use av_opt_set_int instead of swr_alloc_set_opts
added option to use avresample instead of swresample (for libav)