View Single Post
  #12  
Old 04-24-2010, 04:22 AM
elch elch is offline
Member
 
Join Date: Mar 2010
Posts: 78
elch is on a distinguished road
Default

Re: Unable to play RTMP files off Tou.TV. Are they RTMPE?


Personally, I don't use get-flash-videos but http://store-it.appspot.com/tou/tou.html works perfectly fine for me.

As described on the page, create a script toutv.sh containing:

Quote:
#! /bin/sh
RTMP="`echo $* | sed 's/<break>.*$//'`"
APP="`echo ${RTMP} | sed 's/^.*\/\(ondemand\/\?\)/\1/'`"
PLAYPATH="`echo $* | sed 's/^.*<break>//'`"
AUTH="`echo $* | sed 's/^.*auth=//;s/&.*$//'`"

set -x
exec rtmpdump --app ${APP} \
--flashVer 'WIN 10,0,22,87' \
--swfVfy 'http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf' \
--auth "${AUTH}" \
--tcUrl "${RTMP}" --rtmp "${RTMP}" \
--playpath "${PLAYPATH}" \
-o out.flv --verbose
chmod +x toutv.sh

Then request hxxp://release.theplatform.com/content.select?pid=PROGRAM_ID in your browser. Change PROGRAM_ID to its proper value.

There will be a value between an <url>...</url> that starts with "rtmp".

Copy it and use the script as follows:

./toutv.sh "RTMP_URL"
Reply With Quote