Video webserver
Ameb opened this issue · comments
It would be cool to optionally run a webserver on the host machine, similar to srvfb. This will allow to use reStream on Windows, or share the video on LAN (or even over the internet).
Good idea! You're always welcome to look for a way to implement this and create a PR. I think ffmpeg will probably be able to create a video stream. So maybe this just needs the right ffmpeg paramters?
I think a webserver like srvfb would be fairly overkill, but ffmpeg can just output a video stream in typical formats. The main issue will be getting an ffmpeg binary that is optimized to work on the reMarkable by using NEON instructions (the one in entware doesn't).
This would be cool for Linux too, because it would allow a .socket service like srvfb, so you can just point whatever videoplayer to your reMarkable IP, and it will start the stream and should stop it when the videoplayer disconnects
I would expect ffmpeg to allow configuring the encoding of the live video stream, and just allow "raw" at worst. My intuition is that surely there is some encoding that works as at least as well as the lz4 scheme and implementation that is used currently.
The fact that ffmpeg is probably optimized for reading out the frame buffer efficiently should also be taken into account.