Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

www.playtv.fr/television/ - A serious challenge for livestreming

(http://stream-recorder.com/forum/showthread.php?t=8332)

KSV 03-27-2012 03:57 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
They have stopped using SecureToken. now they append auth string to connect packet and to calculate this auth string they use chained keys (one key leading to another and so on). final command will look like

Code:

rtmpdump -v -r "rtmpe://188.165.101.227:443/tvplayer/lcp-ps_hi" -W "http://beta.static.playtv.fr/swf/tvplayer.swf" -p "http://playtv.fr/television/#lcp-ps" -o Test.flv -C S:b440d0ff3c332fbab58fbc060f383d01c836536d41c17d79c99a8e25e4f306e1af8f6081f2efa885
Code:

RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  duration              0.00
INFO:  width                854.00
INFO:  height                480.00
INFO:  videodatarate        683.59
INFO:  framerate            25.00
INFO:  videocodecid          7.00
INFO:  audiodatarate        93.75
INFO:  audiosamplerate      48000.00
INFO:  audiosamplesize      16.00
INFO:  stereo                TRUE
INFO:  audiocodecid          10.00
INFO:  encoder              Lavf53.27.0
INFO:  filesize              0.00
601.738 kB / 5.06 sec


karlo2105 03-27-2012 05:47 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by KSV (Post 42567)
They have stopped using SecureToken. now they append auth string to connect packet and to calculate this auth string they use chained keys (one key leading to another and so on). final command will look like

Code:

RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  duration              0.00
INFO:  width                854.00
INFO:  height                480.00
INFO:  videodatarate        683.59
INFO:  framerate            25.00
INFO:  videocodecid          7.00
INFO:  audiodatarate        93.75
INFO:  audiosamplerate      48000.00
INFO:  audiosamplesize      16.00
INFO:  stereo                TRUE
INFO:  audiocodecid          10.00
INFO:  encoder              Lavf53.27.0
INFO:  filesize              0.00
601.738 kB / 5.06 sec


Too bad. I didn't figure out where did you find that auth string.
Is it there?

Code:

RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout

DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: f0 ae 30 26 70 bd 63 b9 9d f7 14 12 6e 8e c6 c9
DEBUG: 2a d9 06 ba 90 6a f8 5c da 0b b2 0d ed df 16 37
DEBUG: SWFSize  : 494681
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 166
DEBUG: HandShake: Client digest offset: 879
DEBUG: HandShake: Initial client digest:
DEBUG: 6d e8 76 dc 82 37 e8 18 0f 25 b2 21 a7 e4 1a 05
DEBUG: fb a0 fb 9f e4 a9 8a 6b 5f 25 63 be 32 50 b4 03
DEBUG: HandShake: Type Answer  : 06
DEBUG: HandShake: Server Uptime : 1409272802
DEBUG: HandShake: FMS Version  : 3.0.2.1
WARNING: Trying different position for server digest!
DEBUG: HandShake: Server DH public key offset: 1400
DEBUG: HandShake: Secret key:
DEBUG: b0 e2 8f 75 cb e6 bb e6 8b e2 f0 66 4c a8 b3 90
DEBUG: 70 81 e4 da d3 8d 49 88 0a 62 b3 26 9a ea 0a e5
DEBUG: f3 bc f0 8e e9 a7 6d 1f dd dc 17 cb 56 56 e4 b5
DEBUG: f2 6e ac fa 7d 7d 34 02 c5 f9 29 86 65 b1 66 04
DEBUG: 47 a9 e4 3c 2e b7 b0 a8 d4 9a cd ed b2 13 c7 23
DEBUG: 70 b1 7a cb 63 41 7b fd ba 4e 73 d7 2f c1 52 c8
DEBUG: 6e 34 d6 ee 33 3b 75 41 8d 11 cf 3d 71 cf 49 f1
DEBUG: 98 23 e0 b5 19 69 c8 f5 c6 46 8f 0b 26 eb e8 85
DEBUG: RC4 Out Key:
DEBUG: 3c 1e 43 ab e3 07 c2 51 1e d4 06 55 a6 4f be ba
DEBUG: RC4 In Key:
DEBUG: a9 4a ae a2 5e 53 02 a0 31 07 6b 18 93 da 7d 44
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: fc ca db 27 4e 8a 89 c7 2e 0f 72 8e 66 3d 31 11
DEBUG: 4f 2b 3d c8 0e ab 35 09 64 8b b5 6b 57 5f e1 77
DEBUG: HandShake: Client signature calculated:
DEBUG: ff 59 15 82 a2 28 70 89 ec 44 2a ed d3 97 c2 2a
DEBUG: 54 e9 b4 54 16 50 fc e0 c7 da af 4b de 92 87 2e
DEBUG: HandShake: Server sent signature:
DEBUG: 85 c3 2b 22 e0 bc ed 3d 75 24 b9 60 82 14 42 8d
DEBUG: 40 d7 93 d3 4e bd 7b 09 0f f9 80 a9 61 b4 e2 1d
DEBUG: HandShake: Digest key:
DEBUG: 51 97 03 7b 4f f0 6c ba 8c 5c a7 3c cf 85 5f 84
DEBUG: 56 5c e0 75 7d ab 63 83 97 d7 7b c4 10 f1 76 2a
DEBUG: HandShake: Signature calculated:
DEBUG: 85 c3 2b 22 e0 bc ed 3d 75 24 b9 60 82 14 42 8d
DEBUG: 40 d7 93 d3 4e bd 7b 09 0f f9 80 a9 61 b4 e2 1d
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG2: RTMP_SendPacket: fd=1892, size=314
DEBUG2:  0000:  03 00 00 00 00 01 3a 14  00 00 00 00              ......:.....

DEBUG2:  0000:  02 00 07 63 6f 6e 6e 65  63 74 00 3f f0 00 00 00  ...connect.?
....
DEBUG2:  0010:  00 00 00 03 00 03 61 70  70 02 00 08 74 76 70 6c  ......app...
tvpl
DEBUG2:  0020:  61 79 65 72 00 08 66 6c  61 73 68 56 65 72 02 00  ayer..flashV
er..
DEBUG2:  0030:  0e 57 49 4e 20 31 30 2c  30 2c 33 32 2c 31 38 00  .WIN 10,0,32
,18.
DEBUG2:  0040:  06 73 77 66 55 72 6c 02  00 2d 68 74 74 70 3a 2f  .swfUrl..-ht
tp:/
DEBUG2:  0050:  2f 62 65 74 61 2e 73 74  61 74 69 63 2e 70 6c 61  /beta.static
.pla
DEBUG2:  0060:  79 74 76 2e 66 72 2f 73  77 66 2f 74 76 70 6c 61  ytv.fr/swf/t
vpla
DEBUG2:  0070:  79 65 72 2e 73 77 66 00  05 74 63 55 72 6c 02 00  yer.swf..tcU
rl..
DEBUG2:  0000:  c3                                                .

DEBUG2:  0000:  24 72 74 6d 70 65 3a 2f  2f 31 38 38 2e 31 36 35  $rtmpe://188
.165
DEBUG2:  0010:  2e 31 30 31 2e 32 32 37  3a 34 34 33 2f 74 76 70  .101.227:443
/tvp
DEBUG2:  0020:  6c 61 79 65 72 00 04 66  70 61 64 01 00 00 0c 63  layer..fpad.
...c
DEBUG2:  0030:  61 70 61 62 69 6c 69 74  69 65 73 00 40 2e 00 00  apabilities.
@...
DEBUG2:  0040:  00 00 00 00 00 0b 61 75  64 69 6f 43 6f 64 65 63  ......audioC
odec
DEBUG2:  0050:  73 00 40 a8 ee 00 00 00  00 00 00 0b 76 69 64 65  s.@.........
vide
DEBUG2:  0060:  6f 43 6f 64 65 63 73 00  40 6f 80 00 00 00 00 00  oCodecs.@o..
....
DEBUG2:  0070:  00 0d 76 69 64 65 6f 46  75 6e 63 74 69 6f 6e 00  ..videoFunct
ion.
DEBUG2:  0000:  c3                                                .

DEBUG2:  0000:  3f f0 00 00 00 00 00 00  00 07 70 61 67 65 55 72  ?.........pa
geUr
DEBUG2:  0010:  6c 02 00 23 68 74 74 70  3a 2f 2f 70 6c 61 79 74  l..#http://p
layt
DEBUG2:  0020:  76 2e 66 72 2f 74 65 6c  65 76 69 73 69 6f 6e 2f  v.fr/televis
ion/
DEBUG2:  0030:  23 6c 63 70 2d 70 73 00  00 09                    #lcp-ps...

DEBUG: Invoking connect
INFO: Connected...
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  02 00 00 00 00 00 04 05  00 00 00 00              ............

DEBUG2:  0000:  00 26 25 a0                                        .&%.

DEBUG: HandleServerBW: server BW = 2500000
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  02 00 00 00 00 00 05 06  00 00 00 00              ............

DEBUG2:  0000:  00 26 25 a0 02                                    .&%..

DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  02 00 00 00 00 00 06 04  00 00 00 00              ............

DEBUG2:  0000:  00 00 00 00 00 00                                  ......

DEBUG: HandleCtrl, received ctrl, type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  02 00 00 00 00 00 04 01  00 00 00 00              ............

DEBUG2:  0000:  00 00 10 00                                        ....

DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  03 00 00 00 00 00 d1 14  00 00 00 00              ............

DEBUG2:  0000:  02 00 06 5f 65 72 72 6f  72 00 3f f0 00 00 00 00  ..._error.?.
....
DEBUG2:  0010:  00 00 05 03 00 05 6c 65  76 65 6c 02 00 05 65 72  ......level.
..er
DEBUG2:  0020:  72 6f 72 00 04 63 6f 64  65 02 00 1e 4e 65 74 43  ror..code...
NetC
DEBUG2:  0030:  6f 6e 6e 65 63 74 69 6f  6e 2e 43 6f 6e 6e 65 63  onnection.Co
nnec
DEBUG2:  0040:  74 2e 52 65 6a 65 63 74  65 64 00 0b 64 65 73 63  t.Rejected..
desc
DEBUG2:  0050:  72 69 70 74 69 6f 6e 02  00 33 43 6f 6e 6e 65 63  ription..3Co
nnec
DEBUG2:  0060:  74 69 6f 6e 20 66 61 69  6c 65 64 3a 20 41 70 70  tion failed:
 App
DEBUG2:  0070:  6c 69 63 61 74 69 6f 6e  20 72 65 6a 65 63 74 65  lication rej
ecte
DEBUG2:  0080:  64 20 63 6f 6e 6e 65 63  74 69 6f 6e 2e 00 0b 61  d connection
...a
DEBUG2:  0090:  70 70 6c 69 63 61 74 69  6f 6e 02 00 1e 4e 65 74  pplication..
.Net
DEBUG2:  00a0:  43 6f 6e 6e 65 63 74 69  6f 6e 2e 43 6f 6e 6e 65  Connection.C
onne
DEBUG2:  00b0:  63 74 2e 52 65 6a 65 63  74 65 64 00 08 63 6c 69  ct.Rejected.
.cli
DEBUG2:  00c0:  65 6e 74 69 64 00 41 a1  eb 02 8a 00 00 00 00 00  entid.A.....
....
DEBUG2:  00d0:  09                                                .

DEBUG: RTMP_ClientPacket, received: invoke 209 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    _error>
DEBUG: Property: <Name:            no-name, NUMBER:    1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:    error>
DEBUG: Property: <Name:              code, STRING:    NetConnection.Connect.Re
jected>
DEBUG: Property: <Name:        description, STRING:    Connection failed: Appli
cation rejected connection.>
DEBUG: Property: <Name:        application, STRING:    NetConnection.Connect.Re
jected>
DEBUG: Property: <Name:          clientid, NUMBER:    150307141.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG2: RTMP_ReadPacket: fd=1892
DEBUG2:  0000:  03 00 00 00 00 00 12 14  00 00 00 00              ............

DEBUG2:  0000:  02 00 05 63 6c 6f 73 65  00 00 00 00 00 00 00 00  ...close....
....
DEBUG2:  0010:  00 05                                              ..

DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    close>
DEBUG: Property: <Name:            no-name, NUMBER:    0.00>
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.

Is there any chance to automize that with some script so I can include it in batch? I really miss those channels.
I will be really grateful to you if you can do it. ;)

KSV 03-27-2012 12:17 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42570)
Is there any chance to automize that with some script so I can include it in batch? I really miss those channels.
I will be really grateful to you if you can do it. ;)

here is the PlayTV script. it's features are similar to WeebTV script. apart from rtmp it can also handle http streams used for some channels (Nasa TV etc.).

Code:

http://www.mediafire.com/file/00be1ttt49zzef5/PlayTV.php

chap 03-27-2012 03:05 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
does not want to download:confused:
Code:

C:\PHP>C:\PHP\PlayTV.php

KSV PlayTV Downloader

 1) BFM TV                13) KTO                  25) RT Doc

 2) CCTV F                14) LCP / PS              26) Russia Al-Yaum

 3) Correze TV            15) Liberty TV            27) Russia Today

 4) Demain TV            16) Maritima TV          28) Souvenirs from Earth

 5) Euronews              17) MCE                  29) Telesud

 6) France 24            18) MENтАЩS UP TV        30) TV Rennes 35 Bretagne

 7) France 24 Arabe      19) Mirabelle TV          31) TV5 Monde Europe

 8) France 24 English    20) NASA                  32) TV8 Mont Blanc

 9) Grand Lille TV        21) Normandie TV          33) TVM Est Parisien

10) Guysen TV            22) NTD                  34) T├йb├йo

11) i>TELE                23) Renault TV            35) t├йl├йGrenoble

12) Just 4 talent        24) Rouge TV              36) W├йo

Enter Channel Number : 14
Retrieving html . . .

C:\PHP>

PHP v 5.3.8

KSV 03-27-2012 03:16 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
try with latest php version.

chap 03-27-2012 03:45 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by KSV (Post 42584)
try with latest php version.

the same result:confused:

Bahman 03-27-2012 04:34 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Yeah, It doesn't create PlayTV.bat so as to run rtmpdump!!
but It creates a Cookies.txt with this information:
Code:

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.

#HttpOnly_playtv.fr        FALSE        /        FALSE        0        PHPSESSID        p49npjr3k2emh9liqg9bah2e21
#HttpOnly_tvplayer.playtv.fr        FALSE        /        FALSE        0        PHPSESSID        4bvhk2utv18skcnnoh08sd5fh3
tvplayer.playtv.fr        FALSE        /        FALSE        0        ajxtoken        58ab1c2098200c97e6249d18335267d6


KSV 03-27-2012 09:21 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
it's working totally fine for me. can you post your php-errors log located in C:\Windows\Temp.

chap 03-27-2012 11:58 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by KSV (Post 42592)
it's working totally fine for me. can you post your php-errors log located in C:\Windows\Temp.

Code:

[28-Mar-2012 06:02:34 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for '3.0/DST' instead' in C:\PHP\Новая папка\PlayTV.php:486
Stack trace:
#0 C:\PHP\Новая папка\PlayTV.php(486): DateTime->__construct()
#1 C:\PHP\Новая папка\PlayTV.php(630): ShowChannel('8eF4k8IU3c', 'LCP / PS')
#2 {main}
  thrown in C:\PHP\Новая папка\PlayTV.php on line 486


evol 03-28-2012 04:03 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
The latest version of PHP is 5.4 (5.4.0)

KSV 03-28-2012 07:58 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
you guys are having problem because date.timezone setting is not defined by default and php craps out when it's not defined. set it like following in your php.ini
Code:

date.timezone = America/New_York
List of timezones
Code:

http://in3.php.net/manual/en/timezones.php
Also latest version of php is 5.4. they didn't provided windows installer for this version. just download the zip release and overwrite all the files in "C:\Program Files\PHP" or wherever your php installation folder is then copy the following PHP.ini file to your php installation folder. it contains all relevant changes and enables all the extensions available in 5.4.
Code:

http://www.mediafire.com/file/yu86i2l12eae9m9/PHP.ini

chap 03-28-2012 09:41 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
KSV
Thanks:cool: :cool:
now works fine

php is a great tool (in your hands);)

KSV 03-28-2012 09:46 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
have you tried more than once? what's the output of following url on your system?

Code:

http://tvplayer.playtv.fr/js/dea5Va6CHQ.js

KSV 03-28-2012 11:04 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42626)
Yes I tried several times, Command prompt quickly displays error messages I posted above and it disapperas.

Here is what I get with page above :

Code:

(function(){if(typeof tvplayer!=="undefined"){var a={a:"http://beta.static.playtv.fr/swf/tvplayer.swf?r12",b:{"a":"209df77fec147dcbd31d26b37e9d84e9804338742eaa8e1f282ba57ec19a8f5b5f1bfad759f13c52de4811048a859d8049bead5d5064d74ef334923c4aa14abde6619f536fb9df5d88da0ff0b989ae7c7ecf399da60b04f6e2420d1047f049a12a9d717a8e7ef366","b":"ee29826ca14ff45045211a1574adfb0a18e9525beac9f9da3ffed24ae200a8c39595b34b04ea51177c15ad1a8cd9483e"}};tvplayer.callback(a)}})();

can you also post your php_errors.log file? url output is exactly what it should be. i am surprised why it's not working on your pc.

KSV 03-28-2012 11:15 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
add var_dump($init); before and after the line 472 and post the script output.

Edit: just saw your edit. you are using the wrong command line. --url parameter requires channel id not full url. run PlayTV.php --list to get the id for different channels. why weren't you testing it with it's own CLI interface?

KSV 03-28-2012 11:21 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42631)
How could I locate line 472 with Notepad or Wordpad as they don't display that info?

see the edit above and use better text editor.

KSV 03-28-2012 11:42 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42637)
I thought you made PlayTV.php script like Weeb to include it in personal list batch file, that's why I used --url.
I am sorry to waste your time but I am completely lost.
I don't see where is CLI interface located.

just double click the script and it will show you the list of channels to select from. you can also use it from batch file with something like:
Code:

call %php% PlayTV.php --url dea5Va6CHQ
use --list option to list all channel id's.

KSV 03-28-2012 11:55 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42639)
Thanks very much it's finally working. :D IS there any chance to display geo-locked channels list id with your script?

just use it with vpn or fill your http proxy at line 290.

karlo2105 03-28-2012 12:11 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by KSV (Post 42640)
just use it with vpn or fill your http proxy at line 290.

Thank you very much. You are the best. I will never forget it. :D :D :D

KSV 03-29-2012 01:52 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Code:

1. Added some error checking
2. added socks proxy support
3. minor fixes

you can set the proxy at line 624 in the following format:
Code:

http://1.2.3.4:123
socks4://1.2.3.4:123
socks5://1.2.3.4:123

Proxy is only needed to view some geo restricted channels. they will not be listed until you use the proxy.

Code:

http://www.mediafire.com/file/pdm7q7q9x5cv75b/PlayTV.php

karlo2105 03-29-2012 03:12 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
@KSV
Marvellous. Everything is working fine. :D It's pretty long PHP script code.
As I also use linux system, could you tell me lines I should change in your PHP script to get working it on Ubuntu?

KSV 03-29-2012 04:48 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by karlo2105 (Post 42656)
@KSV
Marvellous. Everything is working fine. :D It's pretty long PHP script code.
As I also use linux system, could you tell me lines I should change in your PHP script to get working it on Ubuntu?

if you have php and php-curl extension installed then it should work without any changes to the script. also make sure curl extension is enabled in your php.ini.

Code:

sudo apt-get install php5
sudo apt-get install php5-curl


karlo2105 04-04-2012 09:54 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Yes with php5-curl your PHP scripts work flawlessly on Ubuntu.:D
However I noticed today, something seems broken. I tried to sniff their streams with rtmpsrv and rtmpsuck it doesn't work at all. php list still displays channels id. They removed beta in their SWF player address, I changed it in PHP script. I don't see any other changes apart it doesn't work anymore. I wonder what's going wrong.

KSV 04-04-2012 12:28 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
here is the updated script. it was just a minor trick.

Code:

http://www.mediafire.com/file/g04ifiyl002hfol/PlayTV.php

KSV 04-11-2012 09:17 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
update for minor changes in authentication system. they like to fiddle around with security system frequently. :D

Code:

http://www.mediafire.com/file/2go3j8g6bqa606z/PlayTV.php

chap 04-11-2012 09:25 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by KSV (Post 43243)
update for minor changes in authentication system. they like to fiddle around with security system frequently. :D

Code:

http://www.mediafire.com/file/2go3j8g6bqa606z/PlayTV.php

Thanks.:cool:
When they calm down?:rolleyes:

karlo2105 04-11-2012 10:27 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Thanks KSV for supporting this script. ;-)

beowluf 04-15-2012 01:06 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
hi

How to use the php file to obtain live streaming channel .php for p2p this is new for me .There are any softwares or something to do have the video. can any one show how ?
thanks

karlo2105 04-15-2012 03:27 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by beowluf (Post 43487)
hi

How to use the php file to obtain live streaming channel .php for p2p this is new for me .There are any softwares or something to do have the video. can any one show how ?
thanks

See PM.
Please don't put instructions here because once is known it will last shorter than now.

Vaganza 09-04-2012 11:34 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Could somebody (KSV ?) put up a new link to a fully functional (downloadable) PlayTV.php ?
(Windows 7). I'm not astute enough to make use of the one on KSV's Script page.
Should it be kept in the php-5.4.0 folder or a separate ? I put the PHP.ini in the php-5.4.0 folder.
Do you still need find out new tokens and whatnot described herein-above ?
Quote:

Originally Posted by KSV (Post 42567)
They have stopped using SecureToken. "..."

Need my Proxifier be configured in another way or the .php like this ?
Quote:

Originally Posted by KSV (Post 42654)
you can set the proxy at line 624 in the following format:
Code:

http://1.2.3.4:123
socks4://1.2.3.4:123
socks5://1.2.3.4:123


Perhaps also a link to the PM, mentioned ?

svnpenn 09-04-2012 04:26 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by Vaganza
Could somebody (KSV ?) put up a new link to a fully functional (downloadable) PlayTV.php ?

raw.github.com/K-S-V/Scripts/master/PlayTV.php

Quote:

Originally Posted by Vaganza
Should it be kept in the php-5.4.0 folder or a separate ?

PHP cannot find a script from the PATH (that i know of) so you will need to call the script directly via an absolute path or path relative to the current directory.

For example, if your current directory was C:\Users\Steven and the script was C:\Users\Steven\PlayTV.php, then you could do this

Code:

php PlayTV.php
Otherwise you will probably need to use full path, as such

Code:

php C:\php\PlayTV.php
or similar. Please let it be very clear that I am not going more in to depth on this. You are asking about the very basics of the command line, something you should have learned long ago.

knarf 03-25-2013 03:34 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Hi,

It looks like the script doesn't work on my computer (Archlinux, php & vlc installed). I'm trying the watch 62 (Souvenirs from earth).
EDIT:
I've just commented open_basedir in the php.ini. Works perfectly! Sorry for the noise :)

I get this:
Code:

$ php PlayTV.php                                             

                            KSV PlayTV Downloader

PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/knarf/prog/as/PlayTV.php on line 286
 1) 2M Maroc              27) France 3              53) Opal TV             
...
26) France 2              52) OFIVE TV             

Enter Channel Number : 62
Retrieving html....                                                           
PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/knarf/prog/as/PlayTV.php on line 286
PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/knarf/prog/as/PlayTV.php on line 286
PHP Warning:  pack(): Type H: illegal hex digit < in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit h in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit t in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit m in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit l in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
 in /home/knarf/prog/as/PlayTV.php on line 508t
PHP Warning:  pack(): Type H: illegal hex digit
 in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit < in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit h in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit < in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit t in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit i in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit t in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit l in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
...
...
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
 in /home/knarf/prog/as/PlayTV.php on line 508t
PHP Warning:  pack(): Type H: illegal hex digit
 in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit < in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit / in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit o in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit y in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
 in /home/knarf/prog/as/PlayTV.php on line 508t
PHP Warning:  pack(): Type H: illegal hex digit
 in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit < in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit / in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit h in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit t in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit m in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit l in /home/knarf/prog/as/PlayTV.php on line 508
PHP Warning:  pack(): Type H: illegal hex digit > in /home/knarf/prog/as/PlayTV.php on line 508
 in /home/knarf/prog/as/PlayTV.php on line 508t
PHP Warning:  pack(): Type H: illegal hex digit
 in /home/knarf/prog/as/PlayTV.php on line 508
Unable to decode server response

Notice how the arg to pack are html source code instead of hex digit.

Anyway...

I just wanted to play the stream on playtv in mplayer or vlc. Turns out it's not a simple flv where I can sniff the url from firebug. So I'm guessing the flash client open a new connection on its own. I fire wireshark and I see some encrypted stuff... shit.

After some googling I learn a bit about rmtp/rmtpe/rmtps... and end up on this very thread.
I can see that once again, the DRM is useless... Well done KSV!

peterpan 11-28-2014 07:02 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
KSV's playtv.fr script no longer works!!! Looks like they've made some changes to their streaming protocol, which caused KSV playtv script to stop working :( It'll be great if KSV can fix it. Thanks in advance!

getflv 11-28-2014 07:44 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by peterpan (Post 72371)
KSV's playtv.fr script no longer works!!! Looks like they've made some changes to their streaming protocol, which caused KSV playtv script to stop working :( It'll be great if KSV can fix it. Thanks in advance!

Latest GetFLV can help you. Try iPad Mode and download m3u8 stream from playtv.fr.:cool:

peterpan 11-28-2014 09:35 PM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Thanks Man!

mk123 05-29-2015 06:03 AM

Re: www.playtv.fr/television/ - A serious challenge for livestreming


 
Quote:

Originally Posted by getflv (Post 72373)
Latest GetFLV can help you. Try iPad Mode and download m3u8 stream from playtv.fr.:cool:

its not working can you rechek please maybe they changed their website

thank you

edit: webpage asking to download latest flash player , how can we do this within getflv ?


All times are GMT -6. The time now is 06:48 PM.