They have a remote keyboard and start the game manually from windows. I saw this because they needed to restart it last time I was there.
Anyway I got around the startup issue by using xdotool.
Still trying to get the reception of the video to work, need to figure out what settings to use in ffmpeg to get it right. So far I do this:
Xvfb :1 -screen 0 1280x720x24 -fbdir /var/tmp/ +extension GLX +render -noreset &
export DISPLAY=:1.0
astronautics/astronautics &
xdotool key "Return"
xdotool key "Return"
ffmpeg -f x11grab -r 25 -s 1280x720 -i :1.0 -c:v libx264 -preset ultrafast -tune zerolatency -s 1280x720 -f mpegts udp://<receiver ip>:1234
I can get screenshots from the game with this:
xwud -in /var/tmp/Xvfb_screen0
So I see it is up and running. Just can't receive the stream yet. Oh and I will add audio to the ffmpeg stream as well.