gcloud transcoder jobs create Stay organized with collections Save and categorize content based on your preferences.
- 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:
gcloudtranscoderjobscreate--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:
gcloudtranscoderjobscreate--location=us-central1--input-uri="gs://bucket/input.mp4"--output-uri="gs://bucket/output/"--template-id=my-templateTo create a transcoder job with json format configuration:
gcloudtranscoderjobscreate--location=us-central1--json="config: json-format"To create a transcoder job with json format configuration file:
gcloudtranscoderjobscreate--location=us-central1--file="config.json"To create a transcoder job with labels:
gcloudtranscoderjobscreate--location=us-central1--file="config.json"--labels=key=valueTo create a transcoder job in batch mode:
gcloudtranscoderjobscreate--location=us-central1--file="config.json"--mode=PROCESSING_MODE_BATCHTo create a transcoder job in batch mode with priority:
gcloudtranscoderjobscreate--location=us-central1--file="config.json"--mode=PROCESSING_MODE_BATCH--batch-mode-priority=3To create a transcoder job with optimizations disabled:
gcloudtranscoderjobscreate--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 overridebatch 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, andnumbers. 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 otherways.
To set the
projectattribute:- provide the argument
--locationon the command line with a fullyspecified name; - set the property
transcoder/locationwith a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
--location=LOCATION- ID of the location or fully qualified identifier for the location.
To set the
locationattribute:- provide the argument
--locationon 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.
MODEmust be one of:PROCESSING_MODE_INTERACTIVE,PROCESSING_MODE_BATCH. --optimization=OPTIMIZATION- Optimization strategy of transcode job. This value will override optimization injob config.
OPTIMIZATIONmust be one of:AUTODETECT,DISABLED. --output-uri=OUTPUT_URI- Google Cloud Storage directory URI (followed by a trailing forward slash). Thisvalue 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 helpfor details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.