added header lots of declarations for encoding
added encoding support
added encode.py example
updated examples to use new to_rgba method
tutorial fix
added libswresample
Merge pull request #5 from markreidvfx/master

Basic encoding support!