reStream icon indicating copy to clipboard operation
reStream copied to clipboard

Version for paper pro?

Open agheorghiu opened this issue 1 year ago • 5 comments

Hi! Any chance we can get a version of reStream for the paper pro? Thanks!

agheorghiu avatar Sep 12 '24 14:09 agheorghiu

If the system architecture doesn't differ too much, it might be possible to use reStream with the paper pro as well. Unfortunately I don't have one so I cannot test it.

Some changes will need to be done to the underlying libraries first. I guess those devs will already be trying to make things work 😁

I'll keep you updated through this issue.

rien avatar Sep 12 '24 15:09 rien

If the system architecture doesn't differ too much, it might be possible to use reStream with the paper pro as well. Unfortunately I don't have one so I cannot test it.

Some changes will need to be done to the underlying libraries first. I guess those devs will already be trying to make things work 😁

I'll keep you updated through this issue.

There is no framebuffer device on the rM Paper Pro, so you'd need to hook into xochitl to find where it's storing the display in memory. There is a /dev/dri/card0 device, but I don't know enough about it to know what is possible to pull from it.

Eeems avatar Sep 12 '24 15:09 Eeems

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/DRM-framebuffer-capture-tool/ta-p/1523863 has some related question from 2023 about capturing a DRM framebuffer. iMx make something on the paper pro as I remember @Eeems linking me there on Bluetooth. If they are in-charge of the DRM GPU / rendering I do not know

Lewiscowles1986 avatar Oct 14 '24 12:10 Lewiscowles1986

Another (possibly convoluted) example of capturing from DRM graphics

https://wiki.tonytascioglu.com/scripts/ffmpeg/kmsgrab_screen_capture

ffmpeg -re -f alsa -i pulse -framerate 15 -device /dev/dri/card0 -re -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0' -s 1280x720 -c:v mpeg2video -q:v 10 -g 240 -c:a libmp3lame -b:a 64k -y ~/Recordings/screencap-(date +%Y-%m-%d--%H-%M).avi

this relies on ffmpeg, which might rely on a host of other things including xwindows / wayland compatible display manager.

Suggests to me that unless the prior link is useful as-is, then getting X or Wayland running would seem like a first logical step before being able to use this approach.

Lewiscowles1986 avatar Oct 14 '24 12:10 Lewiscowles1986

More useful than being able to stream the rMPP to my computer, would be being able to stream to the rMpp, but I doubt that will be possible,

Lewiscowles1986 avatar Oct 14 '24 12:10 Lewiscowles1986