rien / reStream

Stream your reMarkable screen over SSH.
MIT License
748 stars 58 forks source link

FrameBuffer as Video Device #17

Closed ax3l closed 4 years ago

ax3l commented 4 years ago

Hi,

Thank you for sharing these scripts, that's awesome!

Do you know if I can use the streamed framebuffer as new "video" device on the host? I would like to select the reMarkable as a video source in WebRTC/Skype/Zoom/etc. calls and wonder what needs to be done for that.

Thanks a lot, Axel

beardhatcode commented 4 years ago

I have a script that does exactly that. I'll make a PR for it.

ax3l commented 4 years ago

Oh wonderful, thank you @beardhatcode! :rocket: :sparkles:

rien commented 4 years ago

@ax3l could you try it out and report back if it works as expected?

ax3l commented 4 years ago

Thank you so much!

I had to upgrade my v4l2-loopback installation on Ubuntu 18.04 since prior to v0.12.0 this bug prevents me from using it. Had to sign the self-build module like this and now its working :)

One last practical aspect: should we add an option to mirror the video stream horizontally along the landscape toggle? An additional hflip filter did it for me :) (But that's likely only for the preview in one's own screen.)

@@ -118,6 +119,7 @@ window_bytes="$((width * height * bytes_per_pixel))"

 # rotate 90 degrees if landscape=true
 $landscape && video_filters="$video_filters,transpose=1"
+$hflip && video_filters="$video_filters,hflip"

This is nice!!