Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Transcoder API Python Samples

This directory contains samples for the Transcoder API. Use this API to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. For more information, see the Transcoder API documentation.

Setup

To run the samples, you need to first follow the steps in Before you begin.

For more information on authentication, refer to the Authentication Getting Started Guide.

Install Dependencies

  1. Clone python-docs-samples and change directory to the sample directory you want to use.

     $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
    
  2. Install pip and virtualenv if you do not already have them. You may want to refer to the Python Development Environment Setup Guide for Google Cloud Platform for instructions.

  3. Create a virtualenv. Samples are compatible with Python 3.6+.

     $ virtualenv env
     $ source env/bin/activate
    
  4. Install the dependencies needed to run the samples.

     $ pip install -r requirements.txt
    

The client library

This sample uses the Google Cloud Client Library for Python. You can read the documentation for more details on API usage and use GitHub to browse the source and report issues.

Testing

Make sure to enable the Transcoder API on the test project. Set the following environment variables:

  • GOOGLE_CLOUD_PROJECT
  • GOOGLE_CLOUD_PROJECT_NUMBER
Morty Proxy This is a proxified and sanitized view of the page, visit original site.