Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
#!/usr/bin/env bash | |
# exit on error | |
set -o errexit | |
STORAGE_DIR=/opt/render/project/.render | |
if [[ ! -d $STORAGE_DIR/chrome ]]; then | |
echo "...Downloading Chrome" | |
mkdir -p $STORAGE_DIR/chrome | |
cd $STORAGE_DIR/chrome |
/*! | |
query-string | |
Parse and stringify URL query strings | |
https://github.com/sindresorhus/query-string | |
by Sindre Sorhus | |
MIT License | |
*/ | |
(function () { | |
'use strict'; | |
var queryString = {}; |
// YouTube ShortCode [youtube src="" title="" duration="" thumbnail="" description=""] | |
function youtube_shortcode( $atts ) { | |
extract(shortcode_atts(array( | |
'src' => '', | |
'title' => '', | |
'duration' => '', | |
'thumbnail' => '', | |
'description' => '' | |
), $atts)); | |
$video_tag = '<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">'; |