Video encoding using getUserMedia, socket.io, node.js and ffmpeg