Fix "Too many packets buffered for output stream"
Fix "Too many packets buffered for output stream"

And move encoder global options in a global wrapper

Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube