No description, website, or topics provided.
Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pycaption-cli adding content Nov 2, 2016
pycaption adding content Nov 2, 2016
LICENSE Initial commit Nov 2, 2016
README.md update readme Nov 2, 2016
caption_converter.py
test.py adding content Nov 2, 2016

README.md

DFXP to WebVTT Caption Migration Tool

This Python script uses Media API to find all videos that have old style captions (ttml, dfxp) downloads the caption files and uses pycaption to convert them to WebVTT captions. It then uses the Source File Upload API for Dynamic Ingest to get an S3 bucket, push the webvtt files to to the S3 bucket, and then makes Dynamic Ingestion calls to add the WebVTT captions to the correct video.

Installation

  1. Python 2.7 must be installed
  2. Use the same process for installing that is detailed in https://docs.brightcove.com/en/video-cloud/brightcove-player/guides/webvtt-converter.html
  3. Copy test.py into the same directory as the caption-converter.py file.
  4. In test.py Replace the following User Variables:
    • pub_id (your account id)
    • client_id (see step 5)
    • client_secret (see step 5)
    • MAPItoken (a Media API READ token for the account)
  5. You must enable these operations for the client credentials: API Operations

See https://support.brightcove.com/en/video-cloud/docs/managing-api-authentication-credentials for details of obtaining client credentials.