Last active
April 10, 2017 09:47
-
-
Save stefanschmidt/7967510 to your computer and use it in GitHub Desktop.
Download silverlight video streams from a presentation2go server on OS X
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
#!/bin/bash | |
# 1. Install wireshark and mimms (e.g. via Homebrew) | |
# 2. Start this script | |
# 3. Play a presentations2go video in a browser | |
# 4. Wait for the download to finish (can take a while) | |
# Alternatively you can also try to disable the Silverlight plugin and then HTML5 videos might be displayed | |
# To enforce display of HTML5 videos it might help to set your browser's user agent to iPad | |
echo "Waiting for stream url..." | |
stream_url=$(tshark -l -Y "http.request.full_uri contains token" -i en1 -T fields -e http.request.full_uri 2>/dev/null | head -n 1) | |
mms_url=$(echo $stream_url | sed -n s/^http/mms/p) | |
mimms $mms_url video.wmv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment