Skip to content

Instantly share code, notes, and snippets.

@jbuchbinder
Last active March 19, 2017 20:15
Show Gist options
  • Save jbuchbinder/28943a6d3b14d582e3706ca159c719d5 to your computer and use it in GitHub Desktop.
Save jbuchbinder/28943a6d3b14d582e3706ca159c719d5 to your computer and use it in GitHub Desktop.
Download discovery TV public access content
#!/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"
#!/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