- NAME
-
- gcloud transcoder jobs create - create Transcoder jobs
- SYNOPSIS
-
-
gcloud transcoder jobs create
[--batch-mode-priority
=BATCH_MODE_PRIORITY
] [--input-uri
=INPUT_URI
] [--labels
=[KEY
=VALUE
,…]] [--location
=LOCATION
] [--mode
=MODE
] [--optimization
=OPTIMIZATION
] [--output-uri
=OUTPUT_URI
] [--file
=FILE
|--json
=JSON
|--template-id
=TEMPLATE_ID
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Create Transcoder jobs.
- EXAMPLES
-
To create a transcoder job with default template, input URI, and output URI:
gcloud transcoder jobs create --location=us-central1 --input-uri="gs://bucket/input.mp4" --output-uri="gs://bucket/output/"
To create a transcoder job with template id, input URI, and output URI:
gcloud transcoder jobs create --location=us-central1 --input-uri="gs://bucket/input.mp4" --output-uri="gs://bucket/output/" --template-id=my-template
To create a transcoder job with json format configuration:
gcloud transcoder jobs create --location=us-central1 --json="config: json-format"
To create a transcoder job with json format configuration file:
gcloud transcoder jobs create --location=us-central1 --file="config.json"
To create a transcoder job with labels:
gcloud transcoder jobs create --location=us-central1 --file="config.json" --labels=key=value
To create a transcoder job in batch mode:
gcloud transcoder jobs create --location=us-central1 --file="config.json" --mode=PROCESSING_MODE_BATCH
To create a transcoder job in batch mode with priority:
gcloud transcoder jobs create --location=us-central1 --file="config.json" --mode=PROCESSING_MODE_BATCH --batch-mode-priority=3
To create a transcoder job with optimizations disabled:
gcloud transcoder jobs create --location=us-central1 --file="config.json" --optimization=DISABLED
- FLAGS
-
--batch-mode-priority
=BATCH_MODE_PRIORITY
- Processing priority of a batch mode transcoder job. This value will override batch mode priority in job config.
--input-uri
=INPUT_URI
- Google Cloud Storage URI. This value will override input URI in job config.
--labels
=[KEY
=VALUE
,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. -
Location resource - Transcoder location This represents a Cloud resource. (NOTE)
Some attributes are not given arguments in this group but can be set in other
ways.
To set the
project
attribute:-
provide the argument
--location
on the command line with a fully specified name; -
set the property
transcoder/location
with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
--location
=LOCATION
-
ID of the location or fully qualified identifier for the location.
To set the
location
attribute:-
provide the argument
--location
on the command line; -
set the property
transcoder/location
.
-
provide the argument
-
provide the argument
--mode
=MODE
-
Processing mode of transcode job. This value will override mode in job config.
MODE
must be one of:PROCESSING_MODE_INTERACTIVE
,PROCESSING_MODE_BATCH
. --optimization
=OPTIMIZATION
-
Optimization strategy of transcode job. This value will override optimization in
job config.
OPTIMIZATION
must be one of:AUTODETECT
,DISABLED
. --output-uri
=OUTPUT_URI
- Google Cloud Storage directory URI (followed by a trailing forward slash). This value will override output URI in job config.
-
At most one of these can be specified:
--file
=FILE
- Path to job config.
--json
=JSON
- Job config in json format.
--template-id
=TEMPLATE_ID
- Job template id.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-02-06 UTC.",
"confidential": False
}