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.
Oh wow I am very happy that i found this topic. I have a site and dont have any idea how to bring all of the json stuff together. I hope that this topic is not only for arte video streams. What I looking for is a direct url to the japanese live channel Music On! TV. After I try to get the url I found finaly the json file. This is the link to json: http://live.isp2017.com:9083/query/s/pgmLWFXQDT2BRXEZT-Hqvw==.json?type=live
And here is the content of json:
<br><p>{"state":2,"uid":"1B27D19536BE9C738C528F451C90117E","vid":"A6098B5855D00D3D814571194FE1EABF","cid":"82E3629A1866A000001C6BFBD8220FB6","audited":1,"enable_hls":0,"name":"MUSIC ON! TV","description":"103-2","tags":"CS325ch,$LIVE_CAT_CS","ccount":null,"timeshift":null,"rate":0,"rate_count":0,"page":null,"movie_level":0,"running":1,"running_delta":21,"substreams":[{"id":"5F86807742A63CD32321743390FBE395","backup_id":null,"state":2,"live_id":"lv1","live_sid":"lv1","path":"/X4/aA/X4aAd0KmPNMjIXQzkPvjlQ==","audited":1,"width":1024,"height":576,"datarate":466,"vcodec":1748121140,"acodec":1633772320,"player1":null,"player2":null,"player3":null,"lang":null,"record":1,"encrypt_code":"5Q/abwJR/uiJ0vpUvE4Rzw==","def":"主码流","thumb_ver":2,"running":1,"running_delta":21,"format":1718646304,"http_url":"http://23.237.66.34:9083/live/lv1-lv1/X4/aA/X4aAd0KmPNMjIXQzkPvjlQ==","p2p_url":"rtmfp://23.237.66.34:9035/live/lv1-lv1/X4/aA/X4aAd0KmPNMjIXQzkPvjlQ==","rtmp_url":"rtmp://23.237.66.34:9035/live/lv1-lv1/X4/aA/X4aAd0KmPNMjIXQzkPvjlQ=="}],"downloadable":false,"sc_tk":"3Q096ulfsK19LsmHBU0BBpOlaBYwEFJC7o3EicdErzzFEf4C40airMA4icVdwKGF0QAwhoKpHz2CHEckHJ9+jw==","code":"OK","type":"live","play_host":"http://158.69.228.193:9083","play_host_rtmfp":"rtmfp://158.69.228.193:9035"}</p>
I'm really sorry for the confusion. The stream can only be opened with a flash player. I would be very happy if someone could tell me which way to go.