title: Is there a way to stream from mpv player's playback directly to web?
body: <p>I've got a python project that, in a loop, writes strings to be interpreted by mpv and drop them in a terminal shell. MPV Player is called and reproduces the sequence of cuts with variables randomly chosen on python.</p>
  
  <p>The thing is: I need to stream it.</p>
  
  <p>I got it working by OBS Studio's screen capture with iShowU, for the audio. It's streamed to my twitch or youtube channel. But the final stage of this project is to put it on a virtual machine. And the big thing is: the free virtual machines I found ( RedHat and Heroku ) don't have a screen to be captured! So I'd have to find a way to stream it directly from mpv. Or use some kind of pipe or socket to get it from mpv's playback.</p>
  
  <p>Is there a way to do so?</p>
  
  <p>I'll probably have to create an automated docker with everything I need inside it. Is that it?</p>
  
  <p>I'm running a high sierra mac and the docker would be linux, so coding should be the same.</p>
  
  <p>Have someone already done something alike?
  Thanks a lot!</p>