This gist is very old. I don't even know if it still works. Check the comments below to find more robust solutions, like youtube-dl
for example, see this comment.
Go to http://www.arte.tv/ and select any videos, for example http://www.arte.tv/guide/fr/046618-011/silex-and-the-city
In the source code extract the src
parameter of the iframe player:
From this URL, extract the json URL from the json_url
parameter:
http://arte.tv/papi/tvguide/videos/stream/player/F/046618-011_PLUS7-F/ALL/ALL.json
In the JSON, select the video quality that you want, for example videoJsonPlayer.VSR.RTMP_SQ_8
:
{
"quality": "HD - 720p",
"width": 1280,
"height": 720,
"mediaType": "rtmp",
"mimeType": "application/x-fcs",
"bitrate": 2200,
"streamer": "rtmp://artestras.fcod.llnwd.net/a3903/o35/",
"url": "geo/videothek/EUR_DE_FR/tvguide/046618-011-A_SQ_2_VOF-STMF_00767011_MP4-2200_AMM-Tvguide.mp4?e=1382539093&h=1bace4e51c75f98ed5bce1ca727d2651",
"videoFormat": "RMP4",
"versionProg": "8",
"versionCode": "VOF-STMF",
"versionLibelle": "ST sourds/mal"
}
Now you can download the video with rtmpdump http://rtmpdump.mplayerhq.hu/
Execute rtmpdump
with the following parameters (replace with the good values):
−−tcUrl "rtmp://artestras.fcod.llnwd.net/a3903/o35/"
−−swfVfy "http://www.arte.tv/player/v2/jwplayer6/mediaplayer.6.6.swf"
--app "a3903/o35/"
−−pageUrl "http://www.arte.tv/player/v2/index.php?json_url=..."
−−playpath "mp4:geo/videothek/..."
−−rtmp "rtmp://artestras.fcod.llnwd.net/a3903/o35/geo/videothek/..."
−−flv output_file
Enjoy.
Where is the .json file here in that address? http://www.arte.tv/arte_vp/index.php?json_url=https%3A%2F%2Fapi.arte.tv%2Fapi%2Fplayer%2Fv1%2Fconfig%2Ffr%2F066698-000-A%3Fplatform%3DEXTERNAL%26autostart%3D0%26infoLink%3D%26primaryAudioVersion%3D&lang=fr_FR&config=arte_external