X-Git-Url: https://git.rvb.name/vpproxy.git/blobdiff_plain/68a65fd06255411599601a0b9857be6ef2e8eba2..3893699c9a2984576b62b6c3f1eb77f34a4cf0ab:/vlcclient/vlcmessages.py diff --git a/vlcclient/vlcmessages.py b/vlcclient/vlcmessages.py index da8606c..d2ebe45 100644 --- a/vlcclient/vlcmessages.py +++ b/vlcclient/vlcmessages.py @@ -13,6 +13,9 @@ class VlcMessage(object): command = 'new "' + stream_name + '" broadcast input "' + input + '" output ' + (pre_access + ':' if pre_access else '#') if qtype=='mp4': command = command + 'transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:' + elif qtype=='webm': + command = command + 'transcode{vcodec=VP80,acodec=vorbis,vb=512,ab=64}:' + muxer='ffmpeg{mux=webm}' command = command +'http{mux=' + muxer + ',dst=:' + \ str(out_port) + '/' + stream_name + '} option sout-keep option sout-all enabled' + \ "\r\n" + 'control "' + stream_name + '" play'