FAQ  •  Register  •  Login

M6 Replay (France) [BROKEN]

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jun 25, 2012 11:20 am

Re: M6 Replay (France) [BROKEN]

Not sure if it's your problem, Illico. I didn't see any error regarding handshake 10 in the error log (like I have for some other sources)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jun 25, 2012 12:56 pm

Re: M6 Replay (France) [BROKEN]

I expose here the problem in detail:
M6replay changed the protocol, now, need a token.
For example with this source : mp4:production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4
Token Request= http://www.m6replay.fr/tokenrtmp_2-8-10 ... 120630.mp4
Token Result = /m6replaytoken/streaming/production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4?start_time=20120625125408&end_time=20120625145908&digest=09ca5d73eff61e65a16df&lang=

With rtmpdump2.5, its OK:
  Code:
rtmpdump.exe -l 2 -n "m6replayfs.fplive.net" -a "m6replaytoken/streaming?start_time=20120625125408&end_time=20120625145908&digest=09ca5d73eff61e65a16df" -y "mp4:production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4?start_time=20120625125408&end_time=20120625145908&digest=09ca5d73eff61e65a16df" --port 443 --swfVfy "http://l3.player.m6.fr/swf/ReplayPlayerV2Hds.swf" --swfAge 0 -o TEST.mp4


With ffmpeg/librtmp, its FAILED:
  Code:
ffmpeg.exe -i "rtmpe://m6replayfs.fplive.net:443/m6replaytoken/streaming app=m6replaytoken/streaming?start_time=20120624193853&end_time=20120624214353&digest=00400d1751105d283453e playpath=mp4:production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4?start_time=20120624193853&end_time=20120624214353&digest=00400d1751105d283453e swfurl=http://l3.player.m6.fr/swf/ReplayPlayerV2Hds.swf swfVfy=1"



That could be due to special symbol "&", "=" in the app path, any help ?

ffmpeg report (strange, the application path is not taking into account):
  Code:
ffmpeg.exe -report -i "rtmpe://m6replayfs.fplive.net:443/m6replaytoken/streaming app=m6replaytoken/streaming?start_time=20120625125408&end_time=20120625145908&digest=09ca5d73eff61e65a16df playpath=mp4:production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4?start_time=20120625125408&end_time=20120625145908&digest=09ca5d73eff61e65a16df swfurl=http://l3.player.m6.fr/swf/ReplayPlayerV2Hds.swf swfVfy=1"
ffmpeg started on 2012-06-24 at 22:39:57
Report written to "ffmpeg-20120624-223957.log"
ffmpeg version N-41843-gc17808c Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 22 2012 17:40:07 with gcc 4.7.1
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 61.100 / 51. 61.100
  libavcodec     54. 29.100 / 54. 29.100
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 82.100 /  2. 82.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Parsing...
Parsed protocol: 2
Parsed host    : m6replayfs.fplive.net
Parsed app     : m6replaytoken
RTMP_Connect1, ... connected, handshaking
HandShake: Client type: 06
HandShake: DH pubkey position: 166
HandShake: Client digest offset: 879
HandShake: Initial client digest:
07 3f 57 a1 ea 82 f0 b1 cf 76 8f 62 b3 42 87 6f
6d 39 a4 72 59 29 a2 21 e1 ac 0f 03 dd 7e 11 c2
HandShake: Type Answer   : 09
HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server Uptime : 472836310
HandShake: FMS Version   : 3.5.6.1
HandShake: Server DH public key offset: 8
HandShake: Secret key:
bd f7 b6 3e 5e de 1d d5 28 d7 6f 78 87 5a 8e 92
93 b3 d3 e3 7e a1 08 93 45 de 56 56 6f 1b 59 a3
4e c8 8d 9c d2 55 47 7d e8 b9 30 25 90 f9 4e 19
5a 94 1c 9a d6 1b 62 78 af 8e ce ed ee ef 2f 91
62 5a df cd b7 f4 28 59 53 77 f8 37 ee bc d3 3f
d4 2c cc d6 2a ce 17 70 4b b6 71 ab cc 96 ca 42
73 c3 28 87 c4 52 65 a5 a3 ab e1 37 0f 92 5a 52
54 a4 00 c5 9a de 65 38 52 be be 67 6f e1 a9 e8
RC4 Out Key:
76 c9 67 b2 57 e3 e8 c9 16 8d ab fe e2 71 3d 6e
RC4 In Key:
17 b0 0b f2 86 62 55 34 bd ee e1 ad f7 bb 89 32
HandShake: Calculated digest key from secure key and server digest:
26 81 1c 80 f1 b0 13 92 1e 9b a8 1f 75 12 96 e4
42 a0 eb c1 78 84 94 81 1b 7e 78 01 d6 da 11 b4
HandShake: Client signature calculated:
15 6f 50 d8 94 8b 21 45 d9 0b 05 0a d2 d2 8e ff
3f 7b f6 3d d3 a6 96 6c 7a 55 bf 2e ed a0 ef 51
HandShake: Server sent signature:
3a a7 79 4c 72 d9 32 ce 8e b9 21 a6 59 94 00 86
3d 93 91 b9 f0 2f 9d b3 44 22 63 87 58 07 99 50
HandShake: Digest key:
a1 06 88 15 f2 df ac 64 36 88 72 7c 18 04 f6 bd
07 7d 75 2f ea 51 b1 ca 9b 88 6b 0d 29 03 0b f7
HandShake: Signature calculated:
3a a7 79 4c 72 d9 32 ce 8e b9 21 a6 59 94 00 86
3d 93 91 b9 f0 2f 9d b3 44 22 63 87 58 07 99 50
HandShake: Genuine Adobe Flash Media Server
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
RTMP_ClientPacket, received: invoke 165 bytes
(object begin)
Property: <Name:           no-name., STRING:    _error>
Property: <Name:           no-name., NUMBER:    1.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING:    error>
Property: <Name:               code, STRING:    NetConnection.Connect.Rejected>
Property: <Name:        description, STRING:    Connection failed.>
Property: <Name:        description, STRING:    [ Server.Reject ] : Connection failed.>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
RTMP_ClientPacket, received: invoke 18 bytes
(object begin)
Property: <Name:           no-name., STRING:    close>
Property: <Name:           no-name., NUMBER:    0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <close>
rtmp server requested close
rtmpe://m6replayfs.fplive.net:443/m6replaytoken/streaming app=m6replaytoken/streaming?start_time=20120624193853&end_time
=20120624214353&digest=00400d1751105d283453e playpath=mp4:production/regienum/m6_charlotte-aux-fraises_339136_1306201206
30.mp4?start_time=20120624193853&end_time=20120624214353&digest=00400d1751105d283453e swfurl=http://l3.player.m6.fr/swf/
ReplayPlayerV2Hds.swf swfVfy=1: Unknown error occurred



rtmpdump report :
  Code:
rtmpdump.exe -v -l 2 -n "m6replayfs.fplive.net" -a "m6replaytoken/streaming?start_time=20120625170555&end_time=20120625191055&digest=039bef8f666594cddc87e" -y "mp4:production/regienum/m6_charlotte-aux-fraises_339136_130620120630.mp4?start_time=20120625170555&end_time=20120625191055&digest=039bef8f666594cddc87e" --port 443 --swfVfy "http://l3.player.m6.fr/swf/ReplayPlayerV2Hds.swf" --swfAge 0 -o TEST.mp4
RTMPDump v2.5 GIT-2012-03-31 (Handshake 10 support by Xeebo)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 10
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO:   duration              1271.12
INFO:   moovPosition          32.00
INFO:   width                 720.00
INFO:   height                404.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   avcprofile            77.00
INFO:   avclevel              32.00
INFO:   aacaot                2.00
INFO:   videoframerate        25.00
INFO:   audiosamplerate       24000.00
INFO:   audiochannels         2.00
INFO: trackinfo:
INFO:   length                31776000.00
INFO:   timescale             25000.00
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   length                30507008.00
INFO:   timescale             24000.00
INFO: sampledescription:
INFO:   sampletype            mp4a
4448.128 kB / 38.14 sec (3.0%)
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Mon Jun 25, 2012 1:08 pm

Re: M6 Replay (France) [BROKEN]

Maybe zip is seeing something I'm missing, but it appears to be handshake-10 on my end.

  Code:
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: 26 be c4 21 a8 10 ff 8f cb b1 f4 f7 8c a4 c9 a7
DEBUG: f9 46 fa aa 19 f3 da a3 89 1e 9f 79 c8 14 46 19
DEBUG: HandShake: Type Answer   : 0A
WARNING: HandShake: Type mismatch: client sent 6, server answered 10
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jun 25, 2012 2:15 pm

Re: M6 Replay (France) [BROKEN]

insane822 wrote:Maybe zip is seeing something I'm missing, but it appears to be handshake-10 on my end.

  Code:
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: 26 be c4 21 a8 10 ff 8f cb b1 f4 f7 8c a4 c9 a7
DEBUG: f9 46 fa aa 19 f3 da a3 89 1e 9f 79 c8 14 46 19
DEBUG: HandShake: Type Answer   : 0A
WARNING: HandShake: Type mismatch: client sent 6, server answered 10


This is your "ffmpeg report result" ?

I think, it's something on ffmpeg -i "rtmp...." command line syntaxe.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jun 25, 2012 4:26 pm

Re: M6 Replay (France) [BROKEN]

insane822 wrote:Maybe zip is seeing something I'm missing, but it appears to be handshake-10 on my end.

  Code:
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: 26 be c4 21 a8 10 ff 8f cb b1 f4 f7 8c a4 c9 a7
DEBUG: f9 46 fa aa 19 f3 da a3 89 1e 9f 79 c8 14 46 19
DEBUG: HandShake: Type Answer   : 0A
WARNING: HandShake: Type mismatch: client sent 6, server answered 10

... maybe I just wasn't looking properly. This does look like 10 :-D

BTW, it doesn't seem like anyone's talking about it on the rtmpdump mailing list, maybe it would be worth asking when/if they plan to implement it in the library.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Jun 26, 2012 1:25 pm

Re: M6 Replay (France) [BROKEN]

Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

ayour

Streaming enthusiast

Posts: 39

Joined: Wed May 09, 2012 5:25 pm

Post Thu Jun 28, 2012 12:14 pm

Re: M6 Replay (France) [BROKEN]

Hi,

Is there any solution? It was my prefered plugin.
Thanks.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Jun 28, 2012 12:20 pm

Re: M6 Replay (France) [BROKEN]

ayour wrote:Hi,
Is there any solution? It was my prefered plugin.
Thanks.


Not yet, sorry.

M6replay server changed the rtmp protocol and use "HandShake Type 10 answered".
But the librtmp library used by serviio does not support this latest protocol.
We have to wait for librtmp update.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Fri Jun 29, 2012 4:19 am

Re: M6 Replay (France) [BROKEN]

It appears they have a work around to compile as a shared library that supports handshake-10: http://stream-recorder.com/forum/releas ... 30p15.html

There's no telling when this will go official, but someone should be able to compile it themselves.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Jun 29, 2012 7:26 am

Re: M6 Replay (France) [BROKEN]

Yes some XBMC users had implemented the patch :
http://passion-xbmc.org/add-ons-video/m ... #msg133129
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Fri Jun 29, 2012 7:13 pm

Re: M6 Replay (France) [BROKEN]

I'm going to see if I can compile some ffmpeg binaries later to see if it works.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Jun 29, 2012 8:24 pm

Re: M6 Replay (France) [BROKEN]

Thanks,
The plugin is updated and ready, wait for new librtmp.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Sat Jun 30, 2012 8:42 pm

Re: M6 Replay (France) [BROKEN]

1) The unofficial sources have been updated to support a shared library. See https://github.com/K-S-V/Scripts/downloads
2) I compiled ffmpeg on linux for testing, and it seems to work just fine with handshake-10 streams:
  Code:
root@ubuntu:~/ffmpeg# ./ffmpeg -i "rtmpe://stream.adaptive.lv3.hbogo.com:1935/hbogoadapt/hbo/ app=hbogoadapt/hbo/ playpath=mp4:videos/hbo/feature/726742/v3/h                    bo_713537_PRO4_6.mp4?end=20120630203530&token=0e85bd390c150b2db8486 swfUrl=http://livepassdl.conviva.com/ver/2.48.0.55606/LivePassModuleMain.swf swfVfy=1" te                    st.mp4
ffmpeg version N-42077-gbe24f85 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun  2 2012 17:17:42 with gcc 4.6.3
  configuration: --enable-librtmp --pkg-config=pkg-config
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 31.100 / 54. 31.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.100 /  3.  0.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
HandShake: Type mismatch: client sent 6, server answered 10
HandleCtrl: SWFVerification Type 2 request not supported, attempting to use SWFVerification Type 1! Patches welcome...
Metadata:
  duration                3157.01
  moovPosition            32.00
  width                   1280.00
  height                  720.00
  videocodecid            avc1
  audiocodecid            mp4a
  avcprofile              77.00
  avclevel                40.00
  aacaot                  2.00
  videoframerate          23.98
  audiosamplerate         48000.00
  audiochannels           2.00
trackinfo:
  length                  75692000.00
  timescale               23976.00
  language                eng
sampledescription:
  sampletype              avc1
  length                  151536640.00
  timescale               48000.00
  language                eng
sampledescription:
  sampletype              mp4a
Input #0, flv, from 'rtmpe://stream.adaptive.lv3.hbogo.com:1935/hbogoadapt/hbo/ app=hbogoadapt/hbo/ playpath=mp4:videos/hbo/feature/726742/v3/hbo_713537_PRO4                    _6.mp4?end=20120630203530&token=0e85bd390c150b2db8486 swfUrl=http://livepassdl.conviva.com/ver/2.48.0.55606/LivePassModuleMain.swf swfVfy=1':
  Metadata:
    moovPosition    : 32
    avcprofile      : 77
    avclevel        : 40
    aacaot          : 2
    videoframerate  : 24
    audiochannels   : 2
  Duration: 00:52:37.01, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0:1: Audio: aac, 48000 Hz, stereo, s16


3) I don't know how to cross compile for windows, so I'm kind of screwed until someone else does it, or zip compiles the windows packages with shared libraries.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Jul 01, 2012 5:45 pm

Re: M6 Replay (France) [BROKEN]

Well,
Insane822,could you try the M6 Replay plugin with your ffmpeg build ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Mon Jul 02, 2012 3:40 am

Re: M6 Replay (France) [BROKEN]

Confirmed.

I compiled a static binary for windows with the code for handshake-10 support, installed your plugin and it seems to be working perfectly.

See viewtopic.php?f=22&t=3995&p=47604#p47604
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jul 02, 2012 7:07 am

Re: M6 Replay (France) [BROKEN]

insane822 wrote:Confirmed.
I compiled a static binary for windows with the code for handshake-10 support, installed your plugin and it seems to be working perfectly.
See viewtopic.php?f=22&t=3995&p=47604#p47604


Thank you, I will check that.
Between, I updated the first topic with your librtmp link.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

ayour

Streaming enthusiast

Posts: 39

Joined: Wed May 09, 2012 5:25 pm

Post Wed Jul 04, 2012 10:07 pm

Re: M6 Replay (France)

Hi,
Doesn't work for me.I updated with new version. What I have to do. The folder is empety.
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Jul 04, 2012 10:27 pm

Re: M6 Replay (France)

ayour wrote:Hi,
Doesn't work for me.I updated with new version. What I have to do. The folder is empety.


I just tested and it's still working on my end. Did you update to use the ffmpeg in the first post (assuming you are on windows)?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Jul 05, 2012 8:02 am

Re: M6 Replay (France)

ayour wrote:Hi, Doesn't work for me.I updated with new version. What I have to do. The folder is empety.

I also test with new groovy plugin and specific windows ffmpeg version and its OK.
What is your OS and CPU familly? (x86, AMD,etc)
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

ayour

Streaming enthusiast

Posts: 39

Joined: Wed May 09, 2012 5:25 pm

Post Thu Jul 05, 2012 10:12 am

Re: M6 Replay (France)

It works
After using new ffmpeg. it works great.
I have windows 7 (x86).
Thank you very much for your help.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 6 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.