Skip to content

Scripts to download and transcode Khan Academy videos and put them on S3

Notifications You must be signed in to change notification settings

isabella232/youtube-export

 
 

Repository files navigation

Youtube Export

A python script that converts our Youtube videos into several downloadable formats.

Currently run every 24 hours as a cronjob in our internal services repo, This script does the following:

  1. Finds the Youtube videos that are missing from GCS
  2. Converts them into mp4 and m3u8 format, using Zencoder
  3. Upload the converted files into GCS

Running the Script

In the case that our kubernetes cluster is down and we want to run the script manually, set the following keys as environment variables:

  1. GOOGLE_APPLICATION_CREDENTIALS
  2. ZENCODER_API_KEY

then run ./cron/convert.sh.

Deploying

Since this service is run on our internal services kubernetes cluster, make sure to go to the internal services repo and deploy it with make deploy in the youtube-export directory.

Monitoring

Monitoring for this job can be found here.

About

Scripts to download and transcode Khan Academy videos and put them on S3

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.7%
  • C 24.5%
  • Roff 4.6%
  • Shell 0.2%