Encloader-server is a project mainly written in PYTHON and JAVASCRIPT, it's free.
Web app for encoding and uploading stuff.
Documentation can be found at: https://github.com/reidransom/encloader/wiki