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.
The thing is: I need to stream it.
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.
Is there a way to do so?
I'll probably have to create an automated docker with everything I need inside it. Is that it?
I'm running a high sierra mac and the docker would be linux, so coding should be the same.
Have someone already done something alike? Thanks a lot!