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.
- Transcoder API
- Google Cloud
- Cloud Storage
- Transcoder API
- Ruby
- JavaScript
- C#
- Python
- Go
- Java
- PHP
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
- JavaScript
- Node JS
- C#
- Ruby
- Go
- Java
- PHP
Delete a job
Delete a transcoding job.
- Google Cloud
- Transcoder API
- Transcoder API
- Ruby
- Go
- Node JS
- JavaScript
- C#
- Python
- Java
- PHP
List jobs
List all of the transcoding jobs for a given location.
- Google Cloud
- Transcoder API
- Transcoder API
- PHP
- Python
- Go
- C#
- JavaScript
- Java
- Ruby
- Node JS
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.
- Transcoder API
- Google Cloud
- Transcoder API
- PHP
- Ruby
- Node JS
- Go
- Python
- JavaScript
- C#
- Java
Create a job using a template
Create a transcoding job based on a predefined job template.
- Google Cloud
- Transcoder API
- Transcoder API
- JavaScript
- Ruby
- Python
- Go
- Java
- C#
- Node JS
- PHP
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
- Python
- Java
- Ruby
- Go
- C#
- Node JS
- JavaScript
- PHP
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
- Node JS
- JavaScript
- Java
- Ruby
- Go
- PHP
- Python
- C#
Get the job state
Get the job state for a specific transcoding job.
- Transcoder API
- Google Cloud
- Transcoder API
- Ruby
- Java
- Python
- Node JS
- Go
- C#
- JavaScript
- PHP
List job templates
List all of the transcoding job templates for a given location.
- Transcoder API
- Google Cloud
- Transcoder API
- Ruby
- C#
- Node JS
- Java
- JavaScript
- Python
- Go
- PHP
Create a job template
Create a transcoding job template to define the job configuration.
- Google Cloud
- Transcoder API
- Transcoder API
- JavaScript
- Python
- Java
- Ruby
- PHP
- C#
- Node JS
- Go
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
- Go
- Java
- JavaScript
- Node JS
- Python
Get a job
Get the details for a specific transcoding job.
- Google Cloud
- Transcoder API
- Transcoder API
- JavaScript
- Node JS
- Go
- C#
- Ruby
- Java
- Python
- PHP
Get a job template
Get the details for a specific transcoding job template.
- Google Cloud
- Transcoder API
- Transcoder API
- Python
- Ruby
- Java
- Go
- Node JS
- C#
- JavaScript
- PHP
Delete a job template
Delete a transcoding job template.
- Transcoder API
- Google Cloud
- Transcoder API
- Ruby
- Go
- PHP
- JavaScript
- C#
- Python
- Node JS
- Java
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
- Ruby
- Go
- Python
- Node JS
- C#
- Java
- JavaScript
- 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
- Go
- PHP
- Java
- JavaScript
- Node JS
- Python
- Ruby
- C#
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
- PHP
- C#
- Node JS
- Go
- Java
- Python
- Ruby
- JavaScript
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.
- Transcoder API
- Google Cloud
- Transcoder API
- JavaScript
- Go
- Python
- Java
- Node JS