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