This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Software encoding, more options, slower | |
ffmpeg \ | |
-i input.mov \ | |
-hwaccel auto \ | |
-c:v libx264 \ | |
-c:a aac_at \ | |
-b:a 320k \ | |
-crf 17 \ | |
-preset slow \ | |
-movflags +faststart \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node >=15.7.0 required for Blob usage | |
const { Blob } = require('buffer'); | |
const crypto = require('crypto'); | |
const { Web3Storage } = require('web3.storage'); | |
// Secret env variables | |
// | |
// Grab token from https://web3.storage/tokens/ | |
const WEB3_STORAGE_API_KEY = 'my_api_key'; | |
// Encryption secret must have exact length of 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTH0_ISSUER_BASE_URL='https://YOUR_AUTH0_DOMAIN.auth0.com' | |
AUTH0_SCOPE='openid read:current_user create:current_user_metadata update:current_user_metadata' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BACKBLAZE_BUCKET_ID='YOUR_BACKBLAZE_BUCKET_ID' | |
BACKBLAZE_KEY_ID='YOUR_BACKBLAZE_KEY_ID' | |
BACKBLAZE_APP_KEY='YOUR_BACKBLAZE_APP_KEY' |