-
Notifications
You must be signed in to change notification settings - Fork 447
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
Video rendering support #667
Comments
Thanks for sending us these pointers. This is indeed a hot topic. |
I would suggest and request native android developers to look into this and use android Mediacodec API for hardware accelerated actions instead of ffmpeg. |
I'd love to be able to create a video timeline scrub with canvas. I made one with react native ffmpeg but it feels pretty over-engineered. See here That'd be a great use case for me. If I can help somehow, is be happy to! |
This article is crazy) |
Crazy good or crazy bad? 😝 |
I think crazy good, but I've performance concerns |
Thanks, you're too kind. |
It's been quite a while since this issue was opened, does anyone have any solution yet? @ALL |
I’m exploring options for overlays on videos or ideally using a video as a mask for something else. Has anyone been able to get a video surface into a format that can be consumed by RN Skia? |
I've used animated images (webp). It looks like video, if preload all frames |
Thanks for the tip, but my use case requires video. I’m guessing makeimagefromview isn’t fast enough to run on every frame? |
Don't know, maybe you should check it |
I would love it if it was possible to render WebRTC video to a react-native-skia video tile as it would allow me to generate beautiful overlays that react to the underlying video - for example the designer I have came up with a graph that blurs video under it, easy to do with react-native-skia but extremely hard to do otherwise. Obviously this part of the work and a format that can be produced by WebRTC or whatever would have to be agreed on, would it just take the raw decoded frames somehow or accept an MP4/VP8 stream directly. |
We are actively working on this now. collab.mov |
Can't wait to test it 😁 |
We currently don't have a specific use case for this, but I think it would be nice for react-native-skia to support video rendering. Especially as this could provide the possibility to apply blurs on top of video content, and make for example;
Also, this could eliminate the need of adding an extra library such as react-native-video, when react-native-skia is already part of your project. This could be practical if you just want some basic video rendering.
Some related code files I found in the Skia source which might be helpful;
Skia video decoder
Skia video decoder ffmpeg
The text was updated successfully, but these errors were encountered: