Skip to content

Instantly share code, notes, and snippets.

@BigNerd95
Created March 13, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BigNerd95/5379eba4354d6366c0cdee4dd1c152d2 to your computer and use it in GitHub Desktop.
Save BigNerd95/5379eba4354d6366c0cdee4dd1c152d2 to your computer and use it in GitHub Desktop.
# BigBlueButton downloader by BigNerd95
url="$1"
proto=$(echo "$url" | sed -e 's|^\(.*://\).*|\1|g')
domain=$(echo "$url" | sed -e 's|^[^/]*//||' -e 's|/.*$||')
mid=$(echo "$url" | sed -e 's|.*meetingId=||')
base=$(echo "$proto$domain/presentation/$mid")
audio=$(echo "$base/video/webcams.mp4")
video=$(echo "$base/deskshare/deskshare.mp4")
echo "Downloading audio"
wget $audio -q --show-progress
echo "Downloading video"
wget $video -q --show-progress
echo "Merging audio-video"
ffmpeg -i deskshare.mp4 -i webcams.mp4 -c copy "$mid.mp4" -loglevel panic
rm webcams.mp4
rm deskshare.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment