I am trying to make a remote desktop protocol that runs in your web browser. This is what I have so far in order to capture the desktop (on windows):
ffmpeg -f gdigrab -framerate 60 -i desktop -c:v libx264rgb -preset ultrafast -f mp4 out.mp4
Which seems to work great to capture to a file.
I have tried just piping the data out from ffmpeg to a web server and playing it in a web browser, but the video just spins and fails to load. I've also tried changing the video format but then I lose a lot of my FPS and the video still fails to load.