Comments (6)
The final working template looks closer to this, where [[PLACEHOLDERS]]
are replaced, and the template was created from scratch in the web interface.
{
"JobTemplate": "[[JOB TEMPLATE]]",
"UserMetadata": {
},
"Role": "[[ROLE]]",
"Settings":{
"OutputGroups": [
{
"CustomName": "Custom File Group Name",
"Name": "File Group",
"Outputs": [
],
"OutputGroupSettings": {
"Type": "FILE_GROUP_SETTINGS",
"FileGroupSettings": {
"Destination": "[[DESTINATION]]"
}
}
}
],
"Inputs": [
{
"AudioSelectors": {
"Audio Selector 1": {
"Offset": 0,
"DefaultSelection": "DEFAULT",
"ProgramSelection": 1
}
},
"VideoSelector": {
"ColorSpace": "FOLLOW"
},
"FilterEnable": "AUTO",
"PsiControl": "USE_PSI",
"FilterStrength": 0,
"DeblockFilter": "DISABLED",
"DenoiseFilter": "DISABLED",
"TimecodeSource": "EMBEDDED",
"FileInput": "[[FILE_INPUT]]"
}
]
}
}
from aws-doc-sdk-examples.
Just to follow up; this is what I use in my lambdas now. If you're working in a single region then it probably makes more sense to configure this early on rather than when you instantiate a new MediaConvert instance.
AWS.config.update({
mediaconvert: {
apiVersion: '2017-08-29',
endpoint: customEndpoint
}
})
It should be noted that describeEndpoints()
is an expensive process, counts against your request per second, and should be avoided when doing batch jobs. The endpoint will be pretty much permanent for each region, so grab it in your console under AWS Elemental MediaConvert > Account
and set it in your environmental vars. See the docs.
from aws-doc-sdk-examples.
Does the Code Sample need to be updated?
from aws-doc-sdk-examples.
@jschwarzwalder - I would say yes.
My code doesn't want to run without OutputGroups
specified in Settings
as well as a modification to the Inputs
to remove SelectorType
and Tracks
(which cause another error).
Error { BadRequestException: /inputs/0/audioSelectors/Audio Selector 1: Should match all dependencies: See other errors for more details /inputs/0/audioSelectors/Audio Selector 1/languageCode: Unexpected property "languageCode" found /inputs/0/audioSelectors/Audio Selector 1/selectorType: Must be LANGUAGE_CODE
Error { BadRequestException: /inputs/0/audioSelectors/Audio Selector 1: Should match all dependencies: See other errors for more details /inputs/0/audioSelectors/Audio Selector 1/selectorType: Must be TRACK
from aws-doc-sdk-examples.
For anyone still coming across this trouble with Media Convert, user @spouzols provided the proper way to handle a createJob() request with his GitHub issue, where he declares the endpoint in the actual class call.
new MediaConvert({ endpoint: [[ENDPOINT]] ]})
Sorry if this is clearly stated elsewhere, but I just spent a few hours trying to get the endpoint working. If not, then I believe the documentation should be changed to reflect this, as its a much prettier and more clear implementation anyways. Especially when using it in the callback of the describeEndpoints()
method.
Thanks for keeping my hair intact @spouzols
reference:
aws/aws-sdk-js#2208
from aws-doc-sdk-examples.
@jgraup pfff... it looks that some of the other params are also mandatory (although they are set in the Job Template) and of course they may change at any time :). AWS is so inconsistent in all these examples. The minimum accepted data for the HLS group is :
"HlsGroupSettings": {
"Destination": "[s3://bucket/destination]",
"MinSegmentLength": Integer,
"SegmentLength": Integer
}
from aws-doc-sdk-examples.
Related Issues (20)
- Monthly issue metrics report 2024-03-01..2024-03-31
- [EPIC] - Remove most SecretsManager examples
- Remove most Kotlin SecretsManager examples
- Remove most CPP SecretsManager examples
- Remove most Java SecretsManager examples
- Remove most Rust SecretsManager examples
- Remove Ford from FordGPT
- [Enhancement]: Java V2 SQS Manual retry example
- Cpp: Change CMake files to handle static builds
- .NET: convert legacy Pinpoint examples
- Tools - Ailly POC for Workflows
- [Bug]: Go Cloudwatch CreateCustomMetric example does not display errors
- Epic: SSM Getting Started Scenario
- SNS Request for SDK for Java 2.x - from SIM
- .NET Redshift Getting Started Scenerio
- Go Redshift Getting Started Scenario
- Metadata: non-localizable text in descriptions must be marked as noloc or code
- Javascript Language Level Linting README
- Start a Scout for AWS Key Management Service
- Update HealthImaging workflow specification
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 aws-doc-sdk-examples.