dkrivoruchko / ScreenStream

ScreenStream Android App
https://screenstream.io
MIT License
1.56k stars 319 forks source link

Is it possible to implement webp? #257

Open CristobalManga opened 1 month ago

CristobalManga commented 1 month ago

I speak from ignorance, but I once read that the webp format compresses images very well. This would cause the application to consume less bandwidth locally. Is this possible?

dkrivoruchko commented 1 month ago

Well, You are not the first one who raised that question. There are two reason why there is no WebP in the app:

  1. WebP compression is very slow (it requires much more calculation to produce smaller result) in comparison to JPEG. Meaning, if some device is capable to compress 20-30 JPEGs per second, the WebP will be around 2-3 per second.
  2. App uses MJPEG standard to stream JPEGs, there is no such thing for WebP.