title: Possible to Combine Live m3u8 stream with PIP overlay from WebRTC source?
body: <p>Can someone tell me what server-side technology (perhaps ffmpeg), one could use in order to:</p>
  
  <p>1) display this full-screen live-streaming video:</p>
  
  <p><a href="http://aolhdshls-lh.akamaihd.net/i/gould_1@134793/master.m3u8" rel="nofollow">http://aolhdshls-lh.akamaihd.net/i/gould_1@134793/master.m3u8</a></p>
  
  <p>2)  and overlay it in the lower-right corner with a live video coming from a webRTC video-chat stream?</p>
  
  <p>3)  and send that combined stream into a new m3u8 live-stream</p>
  
  <p>4)  Note that it needs to be a server-side solution - - - cannot launch multiple video players in this case (needs to pass the resulting stream to SmartTV's which only have one video-decoder at a time)</p>
  
  <p>The closest example I've found so far is this article:</p>
  
  <p><a href="https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos" rel="nofollow">https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos</a></p>
  
  <p>Which isn't really live, nor is it really doing overlays.</p>
  
  <p>any advice is greatly appreciated.</p>