Last active
March 19, 2017 20:15
-
-
Save jbuchbinder/28943a6d3b14d582e3706ca159c719d5 to your computer and use it in GitHub Desktop.
Download discovery TV public access content
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 | |
# discovery-livestream.sh - @jbuchbinder | |
# | |
# Download date-stamped content from Channel 22 | |
STAMP=$( date +%Y%m%d-%H%M ) | |
rtmpdump \ | |
-v \ | |
-r 'rtmp://discovervideo.mpl.miisolutions.net/DiscoverVideo-live-29/_definst_/' \ | |
-s 'http://dv2.discovervideo.com/play/player.swf' \ | |
-y 'mp4:mu364pv' \ | |
-o "${STAMP}-Channel22.mp4" |
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 | |
# discovery.sh - @jbuchbinder | |
# | |
# Use rtmpdump to download discovery TV content as found here : http://www.killinglyschools.org/Page/4100 | |
# Example : TC_1-12-16.mp4 or BOE_3-23-16.mp4 | |
CHANNEL="killinglyps" | |
for S in $*; do | |
rtmpdump \ | |
-v \ | |
-r 'rtmp://discovervideo.mpfp.miisolutions.net/discovervideo-proxyvod-1/_definst_/mp4:mu364pv' \ | |
-s 'http://dv2.discovervideo.com/play/player.swf' \ | |
-y "mp4:$CHANNEL/video/$S" \ | |
-o "$S" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment