View Single Post
  #6  
Old 11-30-2010, 04:30 AM
dooglus dooglus is offline
Junior Member
 
Join Date: Nov 2010
Posts: 1
dooglus is on a distinguished road
Default

Re: theplatform.com: RTMP stream works with all GUI rippers, not with RTMPDump, confu


I found I only have to specify --host, --app, and --playpath to download Canwest_Broadcast_Entertainment stuff.

Here's a shell script that fetches the URL including the auth token, splits it up and runs rtmpdump:

Code:
#!/bin/sh

pid='C43FtRVCkqcF6nDGMPGudYYK1sa_giDI' # Cesar Millan

start="http://release.theplatform.com/content.select?pid=$pid&UserName=Unknown&Site=global_prg.com&k4=pr&Tracking=True&v4=globalnews&k7=page&v5=programs&v6=16x9&k2=kw&k0=kw&Embedded=True&k8=cnt&Portal=GlobalTV&k3=nk&v3=cbrdcst&k1=kw&v0=ron&v1=programs&v8=news&k6=sck&v2=16x9&TrackBrowser=True&v7=video&k5=ck&TrackLocation=True&k9=cnt&v9=social_issues&Zone=16x9thebiggerpicture&show=16x9_the_bigger_picture&episode=&network=&season=&clipLength=long&format=SMIL"

url=$(wget -o/dev/null -O- "$start" | grep '[.]flv' | cut -d'"' -f2)

host="$(echo "$url" | cut -d/ -f3)"
app="$(echo "$url" | cut -d/ -f4-5 | sed 's/&/\&/g')"
playpath="$(echo "$url" | cut -d/ -f6- | sed -e 's/<break>//' -e 's/[.]flv$//')"
file="$(echo "$playpath" | cut -d/ -f2).flv"

rtmpdump --host "$host" --port 1935 --app "$app/" --playpath "$playpath" -o "$file"
It gets this URL:

Code:
rtmp://cp68811.edgefcs.net/ondemand/?auth=dbEd6ddbdc8aTcOblddb1dYdnaRata3aGby-bm9n.u-4q-d9i-9qoEDpKnBEXN2&aifp=1234&slist=Canwest_Broadcast_Entertainment/<break>Canwest_Broadcast_Entertainment/16X9Nov29-1a.flv
breaks it up as follows:

Code:
host: cp68811.edgefcs.net
app: ondemand/?auth=dbEd6ddbdc8aTcOblddb1dYdnaRata3aGby-bm9n.u-4q-d9i-9qoEDpKnBEXN2&aifp=1234&slist=Canwest_Broadcast_Entertainment
playpath: Canwest_Broadcast_Entertainment/16X9Nov29-1a
file: 16X9Nov29-1a.flv2
and ends up running this command:

Code:
rtmpdump --host cp68811.edgefcs.net --port 1935 --app ondemand/?auth=dbEd6ddbdc8aTcOblddb1dYdnaRata3aGby-bm9n.u-4q-d9i-9qoEDpKnBEXN2&aifp=1234&slist=Canwest_Broadcast_Entertainment/ --playpath Canwest_Broadcast_Entertainment/16X9Nov29-1a -o 16X9Nov29-1a.flv2
Reply With Quote