PDA

View Full Version : Unable to play RTMP files off Tou.TV. Are they RTMPE?


e0nblue
02-17-2010, 07:32 AM
Hello everyone,

I'm trying to write a plugin to view streams off the french-canadian site www.tou.tv for the XBMC software (a popular HTPC frontend).

I'ved used GetFLV (http://all-streaming-media.com/record-video-stream/GetFLV-Download-and-convert-flash-video-streaming.htm) to extract the RTMP links but cannot get those links to play in ANY software (FLV Player, XBMC, VLC). Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) can record the stream no problem, but Orbit (http://all-streaming-media.com/record-video-stream/Download-manager-Orbit-Downloader-Record-HTTP-MMS-RTSP-RTMP-media-streams-Freeware.htm)/Grab++ can't even detect it.

Judging from what I read, I though that the tou.tv stream might be RTMPE (I'm not sure how to tell if it's RTMP or RTMPE), but I haven't been able to get rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) to download them.

Here's an example video:

http://www.tou.tv/les-parent/S02E19

Once the main video starts (after the preroll video), GetFLV detects the following stream:

rtmp://medias-flash.tou.tv:443/ondemand/?auth=daEdrd3cTbycId7dDbiafbpdtbvbNcucrci-blE_Lu-T-9tsAzkGqBDE&aifp=v0001&slist=002/MOV/HR/2010-02-15_PARENT_0043_hr;002/MOV/MR/2010-02-15_PARENT_0043_mr;002/MOV/BR/2010-02-15_PARENT_0043_brmp4:002/MOV/HR/2010-02-15_PARENT_0043_hr.mov

Here's what I get when trying to load the stream with rtmpdump:

rtmpdump -r "rtmp://medias-flash.tou.tv:443/ondemand/?auth=daEdrd3cTbycId7dDbiafbpdtbvbNcucrci-blE_Lu-T-9tsAzkGqBDE&aifp=v0001&slist=002/MOV/HR/2010-02-15_PARENT_0043_hr;002/MOV/MR/2010-02-15_PARENT_0043_mr;002/MOV/BR/2010-02-15_PARENT_0043_brmp4:002/MOV/HR/2010-02-15_PARENT_0043_hr.mov"

RTMPDump v2.1c
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: rtmp server sent error
ERROR: rtmp server requested close


I've followed the SWF Verification steps for rtmpdump in the following post...

http://stream-recorder.com/forum/showpost.php?p=11003&postcount=3

...and tried to do the following:

- Download SWF player from :

http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf

- Decompress the SWF:

flasm.exe -x flvPlayer.swf

flvPlayer.swf successfully decompressed, 518751 bytes


- Generate the hash:

openssl sha -sha256 -hmac "Genuine Adobe Flash Player001" flvPlayer.swf

HMAC-SHA256(flvPlayer.swf)= f7f959181a9797b75eb12ee5cdf817accd4454a8b04d99f824 05e120f340d1e3


- Run rtmpdump:

rtmpdump -r "rtmp://medias-flash.tou.tv:443/ondemand/?auth=daEdrd3cTbycId7dDbiafbpdtbvbNcucrci-blE_Lu-T-9tsAzkGqBDE&aifp=v0001&slist=002/MOV/HR/2010-02-15_PARENT_0043_hr;002/MOV/MR/2010-02-15_PARENT_0043_mr;002/MOV/BR/2010-02-15_PARENT_0043_brmp4:002/MOV/HR/2010-02-15_PARENT_0043_hr.mov" --swfhash "f7f959181a9797b75eb12ee5cdf817accd4454a8b04d99f824 05e120f340d1e3" --swfsize 518751



...and I still get the same error:

RTMPDump v2.1c
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: rtmp server sent error
ERROR: rtmp server requested close



Can anybody tell me what I did wrong? Any hints would be greatly appreciated :)

e0nblue
02-17-2010, 10:08 AM
Now that I've discovered rcmpdump's debug option, I can understand a bit more clearly what's going on.

Here's the latest command that I've tried:

rtmpdump
-z -n medias-flash.tou.tv -c 80 -l 3
-y /mp4:002/MOV/HR/2010-02-09_TRAUMA_0006_hr.mov
-W http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf
-s http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf
-p rtmpdump -z -n medias-flash.tou.tv -c 80 -l 3

-y /mp4:002/MOV/HR/2010-02-09_TRAUMA_0006_hr.mov
-W http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf
-s http://static.tou.tv/lib/ThePlatform/4.1.2/swf/flvPlayer.swf
-p http://www.tou.tv/trauma/S01E06
-a ondemand/?auth=daEarbDcvdvdYdNdVbBbZcvahcZdidMcEb8-blFaYu-T-9rwAvmDrxDE&&aifp=v0001&&slist=002/MOV/HR/2010-02-09_TRAUMA_0006_hr;002/MOV/MR/2010-02-09_TRAUMA_0006_mr;002/MOV/BR/2010-02-09_TRAUMA_0006_br
-t rtmp://medias-flash.tou.tv:80/ondemand/?auth=daEarbDcvdvdYdNdVbBbZcvahcZdidMcEb8-blFaYu-T-9rwAvmDrxDE&&aifp=v0001&&slist=002/MOV/HR/2010-02-09_TRAUMA_0006_hr;002/MOV/MR/2010-02-09_TRAUMA_0006_mr;002/MOV/BR/2010-02-09_TRAUMA_0006_br
-a ondemand/?auth=daEarbDcvdvdYdNdVbBbZcvahcZdidMcEb8-blFaYu-T-9rwAvmDrxDE&&aifp=v0001&&slist=002/MOV/HR/2010-02-09_TRAUMA_0006_hr;002/MOV/MR/2010-02-09_TRAUMA_0006_mr;002/MOV/BR/2010-02-09_TRAUMA_0006_br
-t rtmp://medias-flash.tou.tv:80/ondemand/?auth=daEarbDcvdvdYdNdVbBbZcvahcZdidMcEb8-blFaYu-T-9rwAvmDrxDE&&aifp=v0001&&slist=002/MOV/HR/2010-02-09_TRAUMA_0006_hr;002/MOV/MR/2010-02-09_TRAUMA_0006_mr;002/MOV/BR/2010-02-09_TRAUMA_0006_br


Unfortunately, I still get an error - the server's response is "Access denied!"

I've noticed that rtmpdump strips ampersands (&) from the tcUrl and app strings. Could this be the cause of my problem?


Any hint from RTMPE experts would be greatly appreciated !!!

msills
03-04-2010, 09:31 AM
Hi,

I juste created an XBMC plugin for Tou.tv.
You can download it here : http://xbmctoutv.blogspot.com/

Feel free to ask any question you have about it.

hyc
03-04-2010, 03:44 PM
Hello everyone,

I'm trying to write a plugin to view streams off the french-canadian site www.tou.tv for the XBMC software (a popular HTPC frontend).

Judging from what I read, I though that the tou.tv stream might be RTMPE (I'm not sure how to tell if it's RTMP or RTMPE), but I haven't been able to get rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) to download them.

Here's an example video:

http://www.tou.tv/les-parent/S02E19

Once the main video starts (after the preroll video), GetFLV detects the following stream:

rtmp://medias-flash.tou.tv:443/ondemand/?auth=daEdrd3cTbycId7dDbiafbpdtbvbNcucrci-blE_Lu-T-9tsAzkGqBDE&aifp=v0001&slist=002/MOV/HR/2010-02-15_PARENT_0043_hr;002/MOV/MR/2010-02-15_PARENT_0043_mr;002/MOV/BR/2010-02-15_PARENT_0043_brmp4:002/MOV/HR/2010-02-15_PARENT_0043_hr.mov

Can anybody tell me what I did wrong? Any hints would be greatly appreciated :)

Port 443 is for https, that is, HTTP over SSL. This URL indicates that you should be using RTMPS to access the stream (RTMP tunneled over https). The rtmpdump code does not support any of the RTMP-tunneled-over-HTTP protocols.

e0nblue
03-05-2010, 06:34 AM
msills: Merci!! I had pretty much given up on the idea :) The plugin works flawlessly on my 2 XBMC installs.

hyc: thanks for pointing that out, I can't believe I missed that!

Stavr0
03-31-2010, 07:51 PM
Check the following site for details on how to form a rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) command line:
http://store-it.appspot.com/tou/tou.html

Stavr0
04-05-2010, 04:16 PM
TOU.TV is now supported by get-flash-videos. Just go download the latest version

elch
04-21-2010, 03:13 PM
Check the following site for details on how to form a rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) command line:
http://store-it.appspot.com/tou/tou.html

If you're use a Canadian proxy such as getby.us for the XML page, you can even download the geo-blocked movies if you're outside Canada.

cybergus
04-22-2010, 11:20 PM
Hello!

I just joined this site to ask a question concerning get-flash-videos' support of Tou.tv.

I have Windows 7 x32. I downloaded Perl, get-flash-videos and rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm). I can successfully download clips from YouTube and etc, but I cannot get Tou.tv to work. I know I need to use rtmpdump somehow, but I'm no expert in this field.. There seems to be a package written to support Tou.tv: http://code.google.com/p/get-flash-videos/source/browse/trunk/FlashVideo/Site/Tou.pm?r=364

Any help for what I need to do next would be greatly appreciated!

Thank you :)

elch
04-23-2010, 09:36 AM
Is your IP geoblocked?

cybergus
04-23-2010, 12:30 PM
No, it's not.

I'm wondering what command I need to write in the command prompt so I can download Tou.Tv's videos. I get an error if I use the same type of command for downloading videos from YouTube, for example. Since it's RMTP, do I need to do something different?

Thanks again!

elch
04-24-2010, 04:22 AM
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:

#! /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"

cybergus
04-28-2010, 05:13 PM
Thank you for your help, elch.

Since I'm running on Windows 7, I tried your method by installing Cygwin on my machine, but I seem to be getting an error when i'm running the script. I suppose it's cygwin's / "my lack of skills with it" fault. Where/how should I install rtmpdump somewhere beforehand?

Here's a screenshot of what I'm getting:
http://i.imgur.com/RgU5E.jpg

elch
04-29-2010, 11:23 AM
You need to escape the URL, i.e. surround the parameter with quotes.