edelmoral / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

TOU.TV changed format and stopped working #461

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to download any video from tou.tv

What is the expected output? What do you see instead?
They changed their format from rtmp to segmented videos.

What version of the product are you using? On what operating system?
Windows 7, Adobe Flash 11.2

Please provide any additional information below.

Original issue reported on code.google.com by aulisme...@gmail.com on 14 Dec 2012 at 4:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
From any TouTV video page in the html source you can find mediaId, search for 
"idMedia":.

Next step is to get javascript callback with a link to HDS manifest. Replace 
HERE-GOES-YOUR-MEDIA-ID-THAT-YOU-FOUND with the mediaId.

http://api.radio-canada.ca/validationMedia/v1/Validation.html?deviceType=flashhd
&idMedia=HERE-GOES-YOUR-MEDIA-ID-THAT-YOU-FOUND&connectionType=broadband&appCode
=thePlatform &multibitrate=true&output=jsonp&timeout=66&callbac 
k=Player_srcAV_21378044.validationSuccess

Make this request VERY quick, after 10-15 seconds the link will expire. Reponse 
contains a link to the manifest. "url":" and so on.

Next step is to feed the manifest URL to AdobeHDS.php (don't lose the quotes)

php AdobeHDS.php --manifest "HERE_GOES_YOUR_MANIFEST"

And then:

Processing manifest info....
Quality Selection:
Available: 1324 861 561
Selected : 1324
Unknown packet type 11 encountered! Encrypted fragments can't be recovered.

DRM'ed video content. Bummer.

Original comment by aulisme...@gmail.com on 14 Dec 2012 at 6:44

GoogleCodeExporter commented 8 years ago
I haven't spent a lot of time on the main site (tou.tv), but at least on the 
mobile site (m.tou.tv), the decryption part if really simple. I documented the 
process there:

http://store-it.appspot.com/tou/tou_mobile.html

The article is in French, but the working proof-of-concept scripts are all in 
English.

Original comment by fourman...@gmail.com on 9 Jan 2013 at 9:41

GoogleCodeExporter commented 8 years ago
Great Tutorial from Sylvain on http://store-it.appspot.com/tou/tou_mobile.html 
:)

Got everything working on
OSX 10.8
Pyhton 2.7.2
OpenSSL 1.0.0c
Requests 0.14.2
Firefox User-Agent complementary module

3 Thumbs up (!) and a big Thank You to  fourman for all his efforts and time 
put into this :)

(just have to specifiy the playlist file put in same directory than m3udump.py 
(found originally under /tmp) when invoking python m3udump.py -- i.e python 
m3udump.py playlist_2013_01_13_17h05m32s.txt)

Original comment by no1r...@gmail.com on 13 Jan 2013 at 10:16

Attachments:

GoogleCodeExporter commented 8 years ago
As a follow-up, here is a bourne shell script allowing the non-interactive 
download of all tou.tv content using the http live streaming back-end:

http://store-it.appspot.com/tou/mtou.sh.html

I don't know if it's within the scope of get-flash-videos to include it (after 
all, it no longer have anything to do with Flash), but at least you have a 
working recipe.

Original comment by fourman...@gmail.com on 6 Feb 2013 at 9:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
#6: Tout marche bien. Vérifie ta connection.

Original comment by aulisme...@gmail.com on 7 Feb 2013 at 12:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks #7 :) Should have rebooted before asking for help!!! D'oh !!! ;o)

Original comment by no1r...@gmail.com on 7 Feb 2013 at 7:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for #5 :) 
Once you have the right gnu modules installed and linked with the right PATH on 
OSX it works like a charm. 

It's a must look at for get_flash_videos devs to keep on having Tou.tv support 
:o)

Thanks get_flash_videos and to fourmanoit@ for all the time and efforts put 
into this :)

Original comment by no1r...@gmail.com on 8 Feb 2013 at 5:29