-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
record window with mouse click #1145
Comments
This is not possible at the moment. Even recording individual windows is not possible. |
By not possible I mean nobody has implemented anything similar, not that you cannot make a plugin to do exactly this. |
hmm, very tempting :D i just tried for me, the grand guestion is how/where would the best (for all) place be to implement this?
(on my web adventures i found emersion/slurp#16 (comment) and cause neither of those apps do it, i guess there is no wayland protocol (yet)?) but in any case, i definetly think that every wayland compositor should not have to implement their own video recording... and for a quick i-want-it-now solution, a way to get a wayfire window pos/size with a click, and feed it to wf-recorder, should be possible/simple with a wayfire plugin? ps. todo: how/can obs select wayland (wayfire) window as source? |
@oskude In case the window is always at the top of the window stack (e.g always-on-top or simply always focused), yes, you could try selecting the geometry of the window. Currently, the dbus plugin here might have this information. However, I am not the author and neither am I using it so @damianatorrpm @soreau might know a bit more. I only know that wf-prop is a tool to click on a view to get its properties, should be close to what you need :) EDIT: the plugin is actually a subproject of the linked repo, in case you can't find it otherwise ... |
Right, this should be relatively easy to do in a wayfire plugin where you have access to the surface textures. You should be able to render it even if it is occluded by other surfaces. @ammen99 how would minimized surfaces work, if you use the texture, is it a still image or does the client render normally or is it not to be rendered? |
The compositor has the textures for minimized surfaces too (and this should make zero difference for plugins). But, if their use-case is that the captured window is always on top, going the wf-recorder + dbus route would be much much simpler to implement right now. EDIT: misunderstood the question, it would normally be a still image but a plugin can just send additional frame events to the client so that it is dynamically updated. |
Now, this is the real question :) I would say that the best place is xdg-desktop-portal. It is the only truly cross-compositor option for capturing the screen/window contents (wf-recorder uses the wlr-screencopy protocol). The xdg-desktop-portal-wlr implementation is what needs to be extended with the option of recording individual surfaces. See emersion/xdg-desktop-portal-wlr#107 |
Here is a plugin to do what I had in mind. EDIT: 'View Shot' plugin has been merged. |
Closing since this is a general issue with the Wayland ecosystem (see for example emersion/xdg-desktop-portal-wlr#107) |
how do we record a video of a wayland/wayfire window with a single (not mouse moving) click?
The text was updated successfully, but these errors were encountered: