-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add transformer for video files (gatsby-transformer-video) #15071
Comments
This would definitely be something we're interested in! This will work super well with Gatsby Cloud as we'll be able to off-load processing of videos into cloud workers. |
We're designing a proper Jobs API that this should hook into. |
Yes, exactly the issue I am slowly getting with my project. Since we now have more than 10 videos, converting all of these in h264, h265 + previews in 3 formats, clearing the cache on netlify would result in a broken build 😢
Omg that be amazing! |
So I talked to @KyleAMathews how we can progress here, this is the outcome of our discussion:
I guess I'll close the issue as soon the PR is ready for review :) Ps.: The project I'll extract the code from is now live. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Closing here, lets continue discussion in the pull request #15783 |
Summary
I am working on
gatsby-transformer-video
to transform videos within Gatsby.For now, its just a
setFieldsOnGraphQLNodeType
in my projectsgatsby-node.js
.My main question:
Is @gatsbyjs/inkteam interested to have video transformation within the gatsby core repo?
The caching mechanism will be close to what
gatsby-transformer-sqip
does and I think in perspective of Gatsby v3, Gatsby Cloud etc. it might be valuable to have this in the Gatsby core.If not, I am happy to release it as a separate project on GitHub & npm :)
So how does it work?
It will transform videos via ffmpeg from file-system + contentful into:
Additionally it will provide components to properly render the previews and videos.
Basic example
example query:
Rendering:
Or go crazy by using the generated animated preview as posterimage:
Motivation
I want to host videos on my own, not using payed services or share them on youtube. Additionally this allows me to transform the video in any shape I like to.
Demotime
Example project production link: https://eineartjakob.de
here is some video of it in action: Kapture 2019-06-24 at 11.43.56.mp4.zip
Generated animated preview gif from the plugin: (fps are 50% of other previews on gifs due to massive file size of gifs)
Webp & mp4 variants are way smaller even with double fps
Anything else?
What else? Did I forget something? Any further thoughts?
The text was updated successfully, but these errors were encountered: