title: How can I broadcast a Twilio (group room) video conference?
body: <p>I have been trying different solutions/approaches for last few days and posting here to get some more options.</p>
  
  <p>I am planning to use Twilio's <strong>Programmable Video</strong> solution with <strong>Group room</strong> (<em>upto 50 participants</em>) to allow hosts/presenters to join video conference meeting. Right now I am able to setup and get started <a href="https://github.com/twilio/video-quickstart-js" rel="noreferrer">with quickstart example here</a>   </p>
  
  <p>Also, in parallel, <strong>I need to be able to broadcast that live meeting room through RTMP/HLS (audio+video)</strong> streaming that can be viewed (through another portal) by large user set (ideally around 10k+)</p>
  
  <p>Twilio support team suggested - <em>integrating Twilio Video with Wowza using screenscrapping and ffmpeg (i.e. render the video into a (maybe virtual) screen, capture it and send to Wowza using ffmpeg.)</em></p>
  
  <p>I am new to both ffmpeg and wowza. However, I am looking to see high level solution which can be used to achieve this (<em>with minimum hanging parts</em>).</p>
  
  <p><strong>Ideal flow i can think of is</strong></p>
  
  <ul>
  <li>Start a Twilio video conference room with actual presenters</li>
  <li>all participants share there video and audio tracks with each other in the room - standard behavior </li>
  <li>a new ghost-participant joins-in from stand-alone server (<a href="https://www.twilio.com/docs/video/adding-programmable-voice-participants-video-rooms" rel="noreferrer">from wowza or SIP</a>) and subscribes to audio-video tracks in conference.</li>
  <li>arrange &amp; combine those tracks into one channel and stream it as HLS</li>
  <li>this ghost-participant will also be able to identify dominant speaker and re-arrange video tracks to show current speaker occupying bigger space (just like zoom)</li>
  <li>and of course, this streamed video (with audio) will be one-way and viewers cannot interact. Just see be able to see the room broadcasting.</li>
  </ul>
  
  <p><strong>Also/FYI</strong>
  I have tried exploring few more options below (with no success)</p>
  
  <ol>
  <li><p><a href="https://www.codeproject.com/Articles/1058144/Taking-audio-stream-from-Twilio-by-SIP-and-sending" rel="noreferrer">a blog here</a> explain how can we broadcast a twilio audio
  conference. At the bottom it also mention about video streaming. but, I am not getting how can we use SIP to get video stream that can be broadcasted. Also, how can I manipulate video tracks to show dominant speakers in full screen view Vs other participant in thumbnail view i.e. custom layouts.</p></li>
  <li><p>I also explored option of <a href="https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine" rel="noreferrer">Wowza WebRTC streaming</a> to achieve this, but it has got other technical challenges with setting up video room with multiple participants. I am going to reach out to them to see if this use-case is possible with their offering.</p></li>
  <li><p>I am looking for something as <a href="https://docs.pexip.com/admin/streaming_wowza_cloud.htm" rel="noreferrer">simple as here</a> - dial as guest participant into video room from standalone streaming server/wowza server. And get output as single stream to broadcast.</p></li>
  </ol>
  
  <p>Any other pointers or links to solutions would be helpful.</p>