-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Easy screenrecording plugin #21237
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
base: main
Are you sure you want to change the base?
Easy screenrecording plugin #21237
Conversation
b901e65
to
746e1fc
Compare
72d67c1
to
5e206e0
Compare
5e206e0
to
88f3173
Compare
Would be even better imo if I could choose which resolution to record at. One way could be to have the plugin take care to copy the source texture to another texture then rescale as part of the render graph. Another could be to just use the CPU data and resize via e.g. the image crate or similar. The user-responsibility way is probably to have them choose the correct primary window size, but if I have a low res screen and want to record e.g. 4k then it's better to have an off-screen render target. |
Also, why not https://crates.io/crates/video-rs? |
I agree, but I think out of scope of this PR, that's part of the frame capture pipeline, this PR is mostly on what to do with the frames once captured. And hopefully to stay "easy and simple". |
Mainly because I'm so used to use ffmeg on the command line that I didn't look for a crate for it but directly for an encoder |
It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note. Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes. |
Objective
Solution
EasyScreenRecordPlugin
in the dev toolsTesting
bevy_internal/screenrecording
enabledffmpeg
is our friend!for file in *.h264; do ffmpeg -i $file $file.mp4; done
Showcase
directly taken by Bevy
load_gltf-1758937494581.h264.mp4