bryal / captrs

Cross-platform screen capture in Rust
GNU Affero General Public License v3.0
150 stars 16 forks source link

Linux wayland support? #13

Open RUGMJ opened 1 year ago

RUGMJ commented 1 year ago

Currently the method for grabbing the screen on linux is x11 which is now unmaintained so most people, like myself, are switching to wayland but obviously this means that x11 cap is no longer working, is there a workaround?

bryal commented 1 year ago

There's no workaround that I can think of. I just updated the README to reflect that I don't have the equipment to properly maintain this repo anymore. I suggest for anyone needing functionality to create a dedicated wayland screen recording crate, unless someone else takes up maintainership of this crate.

RUGMJ commented 1 year ago

Thanks for the response, can you recommend any active crates that do the same?

bryal commented 1 year ago

No, sorry. I'm working on different things nowadays and have not kept an eye on the screen capturing landscape.

FallingSnow commented 1 year ago

@RUGMJ Just to point you in the right direction. You're gonna wanna look a something that implements either the pipewire protocol or does KMS framebuffer grabbing (like ffmpeg). You may be able to use gstreamer's rust bindings and pipewiresrc.

RUGMJ commented 1 year ago

@RUGMJ Just to point you in the right direction. You're gonna wanna look a something that implements either the pipewire protocol or does KMS framebuffer grabbing (like ffmpeg). You may be able to use gstreamer's rust bindings and pipewiresrc.

Thanks, I was thinking about using pipewire as I knew other applications use it for simile purposes