-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Stream video to a texture #5221
Comments
This is also super useful for making snippets to share on social media for both players and devs! |
I planned to build a bevy_gstreamer plugin about 9 months ago, but got distracted by other things. Glad to see this issue here. |
Is there progress on this issue? |
There might be a more efficient way to do this for wgpu now (at least for some backends), since this was merged: Add support for importing external buffers |
Sorry for the issue assignment, misclicked 😇 I took a quick look at what's available for hardware video decoding depending on the platform/wgpu backend:
|
On the web it is also be possible to get a video frame from a |
Indeed I just saw that the api actually allows creating an external texture either from a (WebCodecs) |
The GStreamer plugin for QtQuick uses the GStreamer method Wrap the texture ID in a |
I try to use gstreamer+image+rodio to play the video. |
Related wgpu issue gfx-rs/wgpu#2330 was closed as not planned. Does the Bevy community plan to implement independently to support the important, in my opinion, functionality of this for cutscenes, built-in videos, gifs, etc.? |
At some point we need a solution for video: cut scene support is not negotiable in games. I don't have strong feelings on the best way to implement that yet though. |
It's blocked on gfx-rs/wgpu#4067 for using vulkan video. |
What problem does this solve or what need does it fill?
It's useful to stream a video from a compressed form, such as MPEG4 or WebM, for:
What solution would you like?
I would like a way to stream compressed video from an asset to a texture that can be applied to a mesh.
What alternative(s) have you considered?
I've considered using libraries provided by the OS to layer video on top, but this isn't ideal.
Additional context
Related
wgpu
issue: gfx-rs/wgpu#2330Software decoding could be provided by
gstreamer
: https://crates.io/crates/gstreamerThe text was updated successfully, but these errors were encountered: