Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This tutorial explains how to download videos from http://www.arte.tv/

1

Go to http://www.arte.tv/ and select any videos, for example http://www.arte.tv/guide/fr/046618-011/silex-and-the-city

2

In the source code extract the src parameter of the iframe player:

http://www.arte.tv/player/v2/index.php?json_url=http%3A%2F%2Farte.tv%2Fpapi%2Ftvguide%2Fvideos%2Fstream%2Fplayer%2FF%2F046618-011_PLUS7-F%2FALL%2FALL.json&lang=fr_FR&config=arte_tvguide&rendering_place=http://www.arte.tv/guide/fr/046618-011/silex-and-the-city

3

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

4

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"
}

5

Now you can download the video with rtmpdump http://rtmpdump.mplayerhq.hu/

6

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

7

Enjoy.

@xiangshuii

This comment has been minimized.

Copy link

commented Apr 2, 2017

If you want to download arte.tv Videos with Subtitles to MP4, AVI, MKV on Mac and Windows,you will need Allavsoft, the best Arte.tv downloader, to help you.

@bumi

This comment has been minimized.

Copy link

commented Apr 12, 2017

thanks for sharing!! very helpful! :)

@raphaelmartin that could be: https://api.arte.tv/api/player/v1/config/fr/066698-000-A?platform=EXTERNAL&autostart=0&infoLink=&primaryAudioVersion=&lang=fr_FR&config=arte_external - but I think you have the wrong SRC address there.
I think my address started with something like http://www.arte.tv/player/v3/index.php?json_url

@walialu

This comment has been minimized.

Copy link

commented Jan 20, 2018

@AcidBurn2018

This comment has been minimized.

Copy link

commented Feb 1, 2018

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.

@JannikArndt

This comment has been minimized.

Copy link

commented Jan 1, 2019

I created a script for this: https://github.com/JannikArndt/arte-downloader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.