I'm kind of new to video enconding and decoding but I'm currently working with NodeJS and I need to stream the content of a window (using electron) to an angular app.
In my current implementation I'm "grabbing" the app window content:
ffmpeg -f gdigrab -i title="Windows App" -vcodec mpeg1video -r 30 -b:v 10 -bufsize:v 327680 -f rtp rtp://127.0.0.1:1234
Then I'm conveting to http:
ffmpeg -i rtp://127.0.0.1:1234 -protocol_whitelist file,crypto,udp,rtp,http,tcp -f mpegts -codec:v mpeg1video -s 500x515 -b:v 10 -bf 0 http://localhost:59655/
And on the client app using MpegJS to display it with almost the default configuration.
It works relativelly well except for some parts of text where if the font is smaller it's almost impossible to read it.
Like I said I'm new on this and I'm not sure how to optimize it to text. Any suggestions?