View Single Post
  #18  
Old 11-04-2016, 04:37 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: Can somebody help get filmon rtmp code to play with livestreamer?


About D3n1s script, it is served to you like a meal on a silver platter.
To run it is a matter of knowing how to run bash script on bash command line.


BBC 4 can be recorded like this, as you see, successfully:

rtmpdump -r rtmp://live-1183.gv2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a7f4a0269ee0c9381d661a439138a4da376366c0670726e e989947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2 bb7157aecd03ba0ba2d9f38690c83846610011549d250a5f39 530c9cfbdb93ab9bcdd77d264f9553ba5ac3444ecf61d113c7 4edcc2a3 ^
-a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a7f4a0269ee0c9381d661a439138a4da376366c0670726e e989947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2 bb7157aecd03ba0ba2d9f38690c83846610011549d250a5f39 530c9cfbdb93ab9bcdd77d264f9553ba5ac3444ecf61d113c7 4edcc2a3" ^
-y 3191.low.stream ^
-o test.flv


C:\>rtmpdump -r rtmp://live-1183.gv2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6
a738d35b096712269a4b58937a2748d9cac553841a7f4a0269 ee0c9381d661a439138a4da376366c0670726ee989947ccece 9cb22bb6ede792da9df4
bff4efc50a48ef17f2bb7157aecd03ba0ba2d9f38690c83846 610011549d250a5f39530c9cfbdb93ab9bcdd77d264f9553ba 5ac3444ecf61d113c74e
dcc2a3 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a
7f4a0269ee0c9381d661a439138a4da376366c0670726ee989 947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2bb71 57aecd03ba0ba2d9f386
90c83846610011549d250a5f39530c9cfbdb93ab9bcdd77d26 4f9553ba5ac3444ecf61d113c74edcc2a3" -y 3191.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
180.987 kB / 11485.92 sec


HRTV fails, like this:


rtmpdump -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee3 26439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5 e0313dbc1e216dfd46b94fa67e06a25c32dc1b34b8374d5c30 c016acc045d709bf5aa0b87d12b043a63a17305a53908f7cc7 65431387 ^
-a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee3 26439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5 e0313dbc1e216dfd46b94fa67e06a25c32dc1b34b8374d5c30 c016acc045d709bf5aa0b87d12b043a63a17305a53908f7cc7 65431387" ^
-y 694.low.stream ^
-o test.flv


C:\>rtmpdump -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6
a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f565efa5 3ffe021808d2313e9c504098a053a8d3b74ee326439ecc3a61 289cd472a2ae44ddca0c
1049032644a4df9bf5e0313dbc1e216dfd46b94fa67e06a25c 32dc1b34b8374d5c30c016acc045d709bf5aa0b87d12b043a6 3a17305a53908f7cc765
431387 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3
f565efa53ffe021808d2313e9c504098a053a8d3b74ee32643 9ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5e031 3dbc1e216dfd46b94fa6
7e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d 12b043a63a17305a53908f7cc765431387" -y 694.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: WriteN, RTMP send error 10054 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header



Looking at RTMP error messages may be missleading unless you are streaming expert.

____________________
EDITED:

ERROR: WriteN, RTMP send error 10054 (42 bytes) goes away if you use -v switch... rtmpdump -v -r .....

ERROR: RTMP_ReadPacket, failed to read RTMP packet header is most of time about -T, but not sure about that
_______________________


Comparing BBC 4 and HRTV from http://www.filmon.com/api-v2/channel...protocol=rtmp:


BBC 4:

"watch-timeout":86500



HRTV:

"watch-timeout":0 ( pay and watch, maybe something to do with secure token )




C:\>rtmpdump -V -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286
df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f565e fa53ffe021808d2313e9c504098a053a8d3b74ee326439ecc3 a61289cd472a2ae44ddc
a0c1049032644a4df9bf5e0313dbc1e216dfd46b94fa67e06a 25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d12b04 3a63a17305a53908f7cc
765431387 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc f
ad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee32 6439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5e 0313dbc1e216dfd46b94
fa67e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b 87d12b043a63a17305a53908f7cc765431387" -y 694.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : live-1130.la2.edge.filmon.com
DEBUG: Parsed app : live
DEBUG: Protocol : RTMP
DEBUG: Hostname : live-1130.la2.edge.filmon.com
DEBUG: Port : 1935
DEBUG: Playpath : 694.low.stream
DEBUG: tcUrl : rtmp://live-1130.la2.edge.filmon.com:1935/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe
3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f 565efa53ffe021808d2313e9c504098a053a8d3b74ee326439 ecc3a61289cd472a2ae4
4ddca0c1049032644a4df9bf5e0313dbc1e216dfd46b94fa67 e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d1 2b043a63a17305a53908
f7cc765431387
DEBUG: app : live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e
5dcfad3f565efa53ffe021808d2313e9c504098a053a8d3b74 ee326439ecc3a61289cd472a2ae44ddca0c1049032644a4df9 bf5e0313dbc1e216dfd4
6b94fa67e06a25c32dc1b34b8374d5c30c016acc045d709bf5 aa0b87d12b043a63a17305a53908f7cc765431387
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 59222260
DEBUG: HandShake: FMS Version : 0.0.0.0
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 5000000
DEBUG: HandleClientBW: client BW = 5000000 2
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 190 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 1.00>
DEBUG: Property: <Name: no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: (object end)
DEBUG: Property: <Name: no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: objectEncoding, NUMBER: 3.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl, type: 0x0003
DEBUG: Invoking createStream
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 2.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: 694.low.stream
DEBUG: Invoking play
DEBUG: sending ctrl, type: 0x0003
DEBUG: Socket closed by server, nBytes: 0
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.


C:\>pause
Press any key to continue . . .
Reply With Quote