Page 1 of 1

French catchup TV (France)

PostPosted: Tue Oct 25, 2011 4:25 pm
by Illico
This page provide link to all french catchup-tv website
http://www.catchup-tv.org/


The following plugins are available
Gulli : viewtopic.php?f=20&t=4709
Pluzz - France Television : viewtopic.php?f=20&t=4365
Arte : viewtopic.php?f=20&t=4791
TF1 : viewtopic.php?f=20&t=4863
WAT : viewtopic.php?f=20&t=4925
M6 : viewtopic.php?f=20&t=5118
W9 : viewtopic.php?f=20&t=5126
Canal+ : viewtopic.php?f=20&t=5143



_

Re: French catchup TV

PostPosted: Wed Oct 26, 2011 12:45 pm
by Illico
--

Re: French catchup TV (France)

PostPosted: Fri Oct 28, 2011 3:16 pm
by Phil.cdtpixel
Hello,

Does it works without plugin ? (not for me :( )

Re: French catchup TV (France)

PostPosted: Fri Oct 28, 2011 3:48 pm
by zip
I assume not, hence it's in Plugin requests forum ;-)

Re: French catchup TV (France)

PostPosted: Fri Oct 28, 2011 7:01 pm
by Phil.cdtpixel
oops, you got me zip ;)

Re: French catchup TV (France)

PostPosted: Thu Dec 15, 2011 9:41 pm
by Illico
I'm working on plugin for myTF1 catchup TV, this site is linked to http://www.wat.tv servers.
I could parse rss feed and extract some informations:
for example:
GET URL
  Code:
http://www.wat.tv/get/webhd/5986763?token=19799c3589a5b09ac5b9c01b24b92135/4ee90d7a&domain=videos.tf1.fr&domain2=null&refererURL=%2Ftotally-spies%2Fepisode-totalement-grillees-6828308.html&revision=4.1.017.10&synd=0&helios=1&context=swfpu&pub=5&country=FR&sitepage=TF1%2Fvideos%2Fcatchup%2Ftotally-spies%2F20111214%2Fint&lieu=tf1&playerContext=CONTEXT_TF1&getURL=1&version=WIN%2011,1,102,55

Result
  Code:
rtmpe,rtmpte://wsel3.wat.tv/watestreaming/mp4:HD-1280x720/67/63/5986763.hd?bu=TF1&login=totally-spies-tf1&i=2.12.197.38&u=61d61808883e3e5795c758ad68a6c447&sum=b6dbf6368b66f372e48c2029ea832b94


So I try this with rtmpdump tools
rtmpdump -V -r "rtmpe://wsel3.wat.tv:80/watestreaming/mp4" -a "watestreaming/mp4" -y "mp4:HD-1280x720/67/63/5986763.hd?bu=TF1&login=totally-spies-tf1" -W "http://www.wat.tv/images/v40/PlayerWat.swf" -o video.mp4

The log result
C:\rtmpdump-2.3>rtmpdump -V -r "rtmpe://wsel3.wat.tv:80/watestreaming/mp4" -a "w
atestreaming/mp4" -y "mp4:HD-1280x720/67/63/5986763.hd?bu=TF1&login=totally-spie
s-tf1" -W "http://www.wat.tv/images/v40/PlayerWat.swf" -o video.mp4
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 2
DEBUG: Parsed host : wsel3.wat.tv
DEBUG: Parsed app : watestreaming
DEBUG: Protocol : RTMPE
DEBUG: Hostname : wsel3.wat.tv
DEBUG: Port : 80
DEBUG: Playpath : mp4:HD-1280x720/67/63/5986763.hd?bu=TF1&login=totally-spies-tf
1
DEBUG: tcUrl : rtmpe://wsel3.wat.tv:80/watestreaming/mp4
DEBUG: swfUrl : http://www.wat.tv/images/v40/PlayerWat.swf
DEBUG: app : watestreaming/mp4
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: SWFSHA256:
DEBUG: 65 5a c1 d3 1d 02 b3 d3 c2 b7 61 68 a3 3b 64 1f
DEBUG: 64 3e ea c1 73 80 30 a1 0a 63 4e 5b 25 34 1c 77
DEBUG: SWFSize : 349281
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: 1e b8 9e 5d 75 ca 53 b1 40 91 b8 19 11 86 22 5b
DEBUG: 96 6c 4f 84 96 ff 8a 4c 46 42 1e 5b 87 71 dc da
DEBUG: HandShake: Type Answer : 48
WARNING: HandShake: Type mismatch: client sent 6, server answered 72
ERROR: RTMP_Connect1, handshake failed.

DEBUG: Closing connection.

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 12:23 pm
by mpi
Thanks Illico for your work on French TV catchup!
Did you have a chance to look at M6/W9, Gulli ?
Thanks.

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 1:10 pm
by Illico
mpi wrote:Did you have a chance to look at M6/W9

Seems to be hard!
mpi wrote:Gulli ?

I'll have a look...
http://replay.gulli.fr/layout/set/rss/RSS

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 4:31 pm
by Illico
So I'm working on a Gulli.groovy plugin but I have an issue with ffmpeg command, any idea

EDIT1:

  Code:
C:\Serviio\plugins>C:\Serviio\bin\\..\lib/ffmpeg.exe -i "rtmp://stream2.lgdf.yac
ast.net:80/gulli_replay app=gulli_replay swfUrl=http://cdn-gulli.ladmedia.fr/ext
ension/replay/design/replay/templates/replay/images/playerCuePoint4.swf playpath
=mp4:9722VOD259.mp4 swfVfy=1 buffer=100000000" -y -async 1 -vcodec copy -vbsf h2
64_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegt
s D:\temp\ServiioTemp\Serviio\Serviio\transcoding-temp-1000000000170001-MPEG2TS.
stf
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
Metadata:
trackinfo:
  timescale             44100.00
  length                57375744.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             25000.00
  length                32525000.00
  language              eng
sampledescription:
  sampletype            avc1
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        25.00
  aacaot                2.00
  avclevel              30.00
  avcprofile            77.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 720.00
  height                404.00
  frameWidth            720.00
  frameHeight           404.00
  displayWidth          720.00
  displayHeight         404.00
  framerate             25.00
  moovposition          32.00
  duration              1301.04
[h264 @ 01af1440] AVC: nal size 21823518
[h264 @ 01af1440] no frame!
Input #0, flv, from 'rtmp://stream2.lgdf.yacast.net:80/gulli_replay app=gulli_replay swfUrl=http://cdn-gulli.ladmedia.fr/extension/replay/design/replay/templates/replay/images/playerCuePoint4.swf playpath=mp4:9722VOD259.mp4 swfVfy=1 buffer=100000000':
  Metadata:
    audiochannels   : 2
    videoframerate  : 25
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 77
    frameWidth      : 720
    frameHeight     : 404
    displayWidth    : 720
    displayHeight   : 404
    moovposition    : 32
  Duration: 00:21:41.03, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p, 720x404 [SAR 1:1 DAR 180:101], 25
tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 01b83400] channel_layout not specified
[ac3 @ 01b83400] No channel layout specified. The encoder will guess the layout,
 but it might be incorrect.
[mpegts @ 01c6e9a0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every40 pkts
Output #0, mpegts, to 'D:\temp\ServiioTemp\Serviio\Serviio\transcoding-temp-1000000000170001-MPEG2TS.stf':
  Metadata:
    audiochannels   : 2
    videoframerate  : 25
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 77
    frameWidth      : 720
    frameHeight     : 404
    displayWidth    : 720
    displayHeight   : 404
    moovposition    : 32
    encoder         : Lavf53.24.0
    Stream #0:0: Video: h264, yuv420p, 720x404 [SAR 1:1 DAR 180:101], q=2-31, 90k tbn, 25 tbc
    Stream #0:1: Audio: ac3, 44100 Hz, stereo, flt, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
h264_mp4toannexb failed for stream 0, codec copy: Invalid argument
[mpegts @ 01c6e9a0] h264 bitstream malformated, no startcode found, use -vbsf h264_mp4toannexb
av_interleaved_write_frame(): Operation not permitted


EDIT2: This is a beta version for Gulli replay plugin : viewtopic.php?f=21&t=3787&p=25186#p25186

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 6:04 pm
by WildRushSykes
Plugin needs to be moved into available plugins thread :D

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 7:09 pm
by mpi
Illico wrote:EDIT2: This is a beta version for Gulli replay plugin
Whaow, that was amazingly fast!!
Thanks so much.

Re: French catchup TV (France)

PostPosted: Sat Jan 07, 2012 7:37 pm
by Illico
mpi wrote:
Illico wrote:EDIT2: This is a beta version for Gulli replay plugin
Whaow, that was amazingly fast!!
Thanks so much.

Thanks (wireshark sniff), but the source file are flv in mp4/h264/aac and need to be remuxed to mpeg2ts with serviio/ffmpeg to delivered the media to DLNA device.
And it seems that h264 source files are not "normal". FFmpeg could not remux the h264...to be continue.
When a solution for ffmeg will be found, I will move the plugin into the proper section.

Re: French catchup TV (France)

PostPosted: Thu Jan 12, 2012 3:45 pm
by Illico

Re: French catchup TV (France)

PostPosted: Sat Jan 14, 2012 8:08 pm
by Illico
I'm working now on TF1.fr and M6replay plugin.
But I still have some problem with rtmpe request:
HandShake: Type mismatch: client sent 6, server answered 9

Re: French catchup TV (France)

PostPosted: Tue Jan 31, 2012 9:20 pm
by Illico
First version of M6 Replay plugin available : viewtopic.php?f=20&t=5118
W9 plugin will probably follow.

Re: French catchup TV (France)

PostPosted: Wed Feb 01, 2012 2:44 pm
by Illico
Illico wrote:W9 plugin will probably follow.

viewtopic.php?f=20&t=5126

Re: French catchup TV (France)

PostPosted: Thu Feb 02, 2012 7:18 pm
by Illico
New Canal+ plugin:
viewtopic.php?f=20&t=5143

Re: French catchup TV (France)

PostPosted: Sun Feb 12, 2012 1:38 am
by Cerberus
Illico wrote:I'm working now on TF1.fr and M6replay plugin.
But I still have some problem with rtmpe request:
HandShake: Type mismatch: client sent 6, server answered 9


The latest release is 2.4 which you can check out from git. Aside from various minor bugfixes since 2.3, RTMPE type 9 handshakes are now supported.

ffmpeg for windows availible here ( includes this fix ) - depending on your os download one of the 2 files.

64bit.
http://ffmpeg.zeranoe.com/builds/win64/ ... -static.7z

32bit
http://ffmpeg.zeranoe.com/builds/win32/ ... -static.7z

Re: French catchup TV (France)

PostPosted: Sun Feb 12, 2012 9:22 am
by Illico
Yes I know this, in fact this is the new librtmpversion 2.4 that solves that and the message is only a warning but now supports "answered 9".