Using the Transcoder API, you can queue asynchronous jobs for transcoding media into various output formats.
Output formats may include different streaming standards such as HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can also customize jobs using advanced features such as Digital Rights Management (DRM), audio equalization, content concatenation, and digital ad-stitch ready content generation.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
TranscoderServiceClient(TranscoderServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TranscoderServiceClient const &
|
TranscoderServiceClient(TranscoderServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TranscoderServiceClient &&
|
TranscoderServiceClient(std::shared_ptr< TranscoderServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< TranscoderServiceConnection >
|
opts |
Options
|
Operators
operator=(TranscoderServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TranscoderServiceClient const &
|
Returns | |
---|---|
Type | Description |
TranscoderServiceClient & |
operator=(TranscoderServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TranscoderServiceClient &&
|
Returns | |
---|---|
Type | Description |
TranscoderServiceClient & |
Functions
CreateJob(std::string const &, google::cloud::video::transcoder::v1::Job const &, Options)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location to create and process this job. Format: |
job |
google::cloud::video::transcoder::v1::Job const &
Required. Parameters for creating transcoding job. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::Job > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.Job) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateJob(google::cloud::video::transcoder::v1::CreateJobRequest const &, Options)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::CreateJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::Job > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.Job) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListJobs(std::string const &, Options)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::video::transcoder::v1::Job > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListJobs(google::cloud::video::transcoder::v1::ListJobsRequest, Options)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::ListJobsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::video::transcoder::v1::Job > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetJob(std::string const &, Options)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the job to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::Job > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.Job) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetJob(google::cloud::video::transcoder::v1::GetJobRequest const &, Options)
Returns the job data.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::GetJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::Job > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.Job) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteJob(std::string const &, Options)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the job to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteJob(google::cloud::video::transcoder::v1::DeleteJobRequest const &, Options)
Deletes a job.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::DeleteJobRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
CreateJobTemplate(std::string const &, google::cloud::video::transcoder::v1::JobTemplate const &, std::string const &, Options)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location to create this job template. Format: |
job_template |
google::cloud::video::transcoder::v1::JobTemplate const &
Required. Parameters for creating job template. |
job_template_id |
std::string const &
Required. The ID to use for the job template, which will become the final component of the job template's resource name. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::JobTemplate > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.JobTemplate) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateJobTemplate(google::cloud::video::transcoder::v1::CreateJobTemplateRequest const &, Options)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::CreateJobTemplateRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::JobTemplate > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.JobTemplate) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListJobTemplates(std::string const &, Options)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location from which to retrieve the collection of job templates. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::video::transcoder::v1::JobTemplate > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListJobTemplates(google::cloud::video::transcoder::v1::ListJobTemplatesRequest, Options)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::ListJobTemplatesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::video::transcoder::v1::JobTemplate > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetJobTemplate(std::string const &, Options)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the job template to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::JobTemplate > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.JobTemplate) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetJobTemplate(google::cloud::video::transcoder::v1::GetJobTemplateRequest const &, Options)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::GetJobTemplateRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::video::transcoder::v1::JobTemplate > |
the result of the RPC. The response message type (google.cloud.video.transcoder.v1.JobTemplate) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteJobTemplate(std::string const &, Options)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the job template to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteJobTemplate(google::cloud::video::transcoder::v1::DeleteJobTemplateRequest const &, Options)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::video::transcoder::v1::DeleteJobTemplateRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |