All Transcoder API code samples
This page contains code samples for Transcoder API. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.
Quickstart: Transcode a video with the Transcoder API
Create a basic video transcoding job using the default settings of the Transcoder API.
- Google Cloud
- Cloud Storage
- Transcoder API
- Transcoder API
- JavaScript
- Java
- Ruby
- PHP
- Go
- Python
- C#
Create a job with an animated overlay
Create a transcoding job with an overlay. The overlay consists of a JPEG image that is inserted on top of the output video. The overlay can fade in or fade out.
- Google Cloud
- Transcoder API
- Transcoder API
- Python
- C#
- PHP
- Ruby
- Go
- Java
- Node JS
- JavaScript
Delete a job
Delete a transcoding job.
- Google Cloud
- Transcoder API
- Transcoder API
- JavaScript
- C#
- PHP
- Ruby
- Java
- Node JS
- Python
- Go
List jobs
List all of the transcoding jobs for a given location.
- Google Cloud
- Transcoder API
- Transcoder API
- PHP
- JavaScript
- Java
- Python
- Node JS
- C#
- Ruby
- Go
Create a job using a template
Create a transcoding job based on a predefined job template.
- Transcoder API
- Google Cloud
- Transcoder API
- Java
- JavaScript
- C#
- Node JS
- Python
- PHP
- Ruby
- Go
Create a job using a preset
Create a transcoding job using a preset. A preset is similar to a job template but contains system-defined default values instead of user-defined default values.
- Transcoder API
- Google Cloud
- Transcoder API
- Java
- Go
- PHP
- Python
- Ruby
- Node JS
- C#
- JavaScript
Concatenate multiple input videos
Create a job based on an ad-hoc job configuration that concatenates two input videos.
- Transcoder API
- Google Cloud
- Transcoder API
- Java
- Python
- JavaScript
- C#
- Ruby
- Node JS
- PHP
- Go
Get the job state
Get the job state for a specific transcoding job.
- Google Cloud
- Transcoder API
- Transcoder API
- Python
- Go
- C#
- Java
- Ruby
- JavaScript
- PHP
- Node JS
List job templates
List all of the transcoding job templates for a given location.
- Google Cloud
- Transcoder API
- Transcoder API
- PHP
- Node JS
- Go
- Java
- Python
- Ruby
- C#
- JavaScript
Create a job that embeds captions in the output video
Create a transcoding job that embeds captions in the output video. Captions can include both closed captions and subtitles.
- Transcoder API
- Google Cloud
- Transcoder API
- Java
- Go
- JavaScript
- Python
- Node JS
Get a job template
Get the details for a specific transcoding job template.
- Transcoder API
- Google Cloud
- Transcoder API
- Python
- PHP
- Node JS
- C#
- JavaScript
- Java
- Go
- Ruby
Create a job using an ad-hoc configuration
Create a transcoding job by defining the values for the job configuration rather than referencing a job template or preset.
- Google Cloud
- Transcoder API
- Transcoder API
- Java
- C#
- Go
- JavaScript
- Python
- Node JS
- Ruby
- PHP
Create a job that generates a spritesheet with a fixed number of images
Create a transcoding job that generates a spritesheet of video frames. You define the number of images (rows x columns) in the spritesheet.
- Transcoder API
- Google Cloud
- Transcoder API
- Python
- Java
- Ruby
- Node JS
- PHP
- JavaScript
- C#
- Go
Create a job with a static overlay
Create a transcoding job with an overlay. The overlay consists of a static JPEG image that is inserted on top of the output video.
- Google Cloud
- Transcoder API
- Transcoder API
- C#
- Java
- Ruby
- Go
- PHP
- JavaScript
- Node JS
- Python
Create a job that generates a spritesheet with a variable number of images
Create a transcoding job that generates a spritesheet of video frames. You define how often to capture a video frame image from the output video.
- Google Cloud
- Transcoder API
- Transcoder API
- JavaScript
- Node JS
- Go
- Ruby
- Java
- PHP
- Python
- C#
Create a job template
Create a transcoding job template to define the job configuration.
- Google Cloud
- Transcoder API
- Transcoder API
- Node JS
- Go
- C#
- PHP
- Java
- Python
- JavaScript
- Ruby
Get a job
Get the details for a specific transcoding job.
- Transcoder API
- Google Cloud
- Transcoder API
- Python
- Java
- Ruby
- Node JS
- PHP
- JavaScript
- C#
- Go
Delete a job template
Delete a transcoding job template.
- Google Cloud
- Transcoder API
- Transcoder API
- C#
- Node JS
- JavaScript
- PHP
- Python
- Java
- Ruby
- Go
Create a job that can use captions from a standalone file
Create a transcoding job that can use captions from a standalone file. Captions can include both closed captions and subtitles.
- Google Cloud
- Transcoder API
- Transcoder API
- Python
- Java
- JavaScript
- Go
- Node JS