Last active
May 3, 2021 14:47
-
-
Save zulonas/4cadc7d6deeb49f74b8c262b856864fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Extract any video from adobe connect | |
# | |
# requirements: wget, unzip, ffmpeg | |
set -euo pipefail | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 video-url" | |
exit 1 | |
fi | |
src=$(echo $1 | sed "s/?/output\/filename.zip?download=zip\&/") | |
tmp_dir=$(mktemp -d) | |
current_dir=$(pwd) | |
file_name="video_src.zip" | |
wget -nc --no-check-certificate -O $tmp_dir/$file_name $src | |
unzip $tmp_dir/$file_name -d $tmp_dir | |
cd $tmp_dir | |
ffmpeg -i cameraVoip*.flv -i screenshare_*.flv -c:a aac -strict -2 -c:v libx264 $current_dir/output.flv | |
rm -rf $tmp_dir | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment