Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 4.53 KB

README.md

File metadata and controls

32 lines (24 loc) · 4.53 KB

AWS Automation

Lambda functions and Scripts Documentation
Export CloudWatch logs to S3
CloudWatch logs group retention
EC2 automated Snapshots
DynamoDB Table Backup
Lambda Function Tuning
Update Lambda Functions Timeout
Update Lambda Functions Memory
Update Lambda Functions Run Time
Update Lambda Functions Environment Variable
Set Invocations Alarm for Lambda Functions
Enable all ApiGateway APIs logging to CLoudWatch
Stop running EC2 instances
Redshift DC to DS cluster migration

Brightcove videos retranscode

First we fetch all videos data and store it as a json file in local. Here we fetch 20 videos and retrancode them at a time.

Step 1: Fetch all videos data and store in local

Execute the following command in terminal to store videos data in local :

$ CLIENT_SECRET=<CLIENT_SECRET> CLIENT_ID=<CLIENT_ID> BRIGHTCOVE_ACCOUNT_ID=<BRIGHTCOVE_ACCOUNT_ID> FUNCTION_NAME=storeBrightcoveVideoDataInJson FILE_DIR_PATH=<FILE_DIR_PATH> node brighcove_videos_bulk_retranscode.js

Step 2: Retranscode videos

Execute the following command in terminal to retranscode videos :

$ CLIENT_SECRET=<CLIENT_SECRET> CLIENT_ID=<CLIENT_ID> BRIGHTCOVE_ACCOUNT_ID=<BRIGHTCOVE_ACCOUNT_ID> INGETION_PROFILE=<INGETION_PROFILE> BRIGHTCOVE_VIDEO_MIN_VIEWS=<BRIGHTCOVE_VIDEO_MIN_VIEWS> FUNCTION_NAME=retranscodeVideos FILE_DIR_PATH=<FILE_DIR_PATH> sh brightcove_all_videos_retranscode.sh