Created
March 13, 2020 12:14
-
-
Save BigNerd95/5379eba4354d6366c0cdee4dd1c152d2 to your computer and use it in GitHub Desktop.
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
# 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