Comments (9)
For example something like url @transcode(…)
would be great.
{
asset(kind: "video") {
title
url @transcoder(width:768 ,videoBitRate:"500k")
}
}
from craft-transcoder.
@gaelpleeroy I have not done any work on implementing a GraphQL API for the Transcoder plugin. You're the second person who has requested such a feature, though, which adds to its likelihood of being implemented
from craft-transcoder.
I'd really like to see GraphQL support as well.
from craft-transcoder.
@khalwat I guess this has no priority?
from craft-transcoder.
It isn't something I'd planned to implement, but if enough people are interested, sure.
Understand if the video is in the middle of transcoding, you'll get nothing back. But I suppose that's not much different than the current Twig API.
from craft-transcoder.
alright, thanks for that information. then I hope there are people out there requesting this feature as well.
For anyone searching for a temporary solution, I used the Preparse Field Plugin that I added to the asset entry type to trigger the video transcoding. Here is the twig code I used to create a mp4 version of a video:
{% set myAsset = craft.assets().uid(element.uid).one() %}
{% if myAsset.kind == 'video' %}
{% set mp4 = craft.transcoder.getVideoUrl(myAsset, {
"width": "",
"height": "",
}) %}
{{ { 'mp4': mp4 } | json_encode }}
{% endif %}
@khalwat are there events I could listen to inside a custom module to trigger a resave of that field when the transcoding is finished? Could not find anything in the documentation
from craft-transcoder.
Hello @khalwat any news on that? We got some self-hosted video assets and it seems this is the only plugin available.
Also is there a roadmap?
from craft-transcoder.
hi @khalwat , any plans to get this feature implemented in the near future?
from craft-transcoder.
It's on the list, but not immediately unfortunately.
from craft-transcoder.
Related Issues (20)
- Nothing Works (transVideoUrl, "auto-generated" video thumbnails, progress URLs, etc.) HOT 9
- Need information before I commit to this plugin HOT 6
- Feature request: Store transcoded files in external source HOT 1
- [FR]: Switch all exec calls to proc_open HOT 3
- Transcoder produces an error when using environment variables for the asset volume file system path HOT 3
- Suggestion: Reduce the 'timeInSecs' default for thumbnail options to prevent CP thumbnail errors HOT 2
- Doesn't work :( HOT 5
- timeInSecs of 20 seems to be the only value that works HOT 2
- Transcoder doesn't create thumbs of videos in portrait orientation HOT 2
- Videos not loading HOT 9
- AWS Elemental MediaConvert integration
- Can't get Admin CP Thumbnails generating/showing HOT 19
- [FR] - AWS S3 Storage HOT 3
- Craft 4 support HOT 3
- Feature request: encoding process via queue HOT 1
- Thumbnails stopped working in the CP HOT 1
- Add possibility to check for encoded videos via CURL/HTTP instead of local paths
- Add option to remove audio channel from video file HOT 2
- WebM generates an empty video file, H264 works as expected. HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-transcoder.