Merge pull request #4 from markreidvfx/master

AVFMTCTX_NOHEADER fix
added header lots of declarations for encoding
added encoding support
added encode.py example