Open vinceguille opened 2 years ago
Hi Same on Firefox 91.8.0esr / Chromium Version 100.0.4896.127 (Official Build) built on Debian 11.3, running on Debian 11.3 (64-bit) What can we do to help?
arte no longer offers mp4 files on their servers. even if GuGuss finds the time to rewrite the script, you will have to rely on additional external tools such as youtube-dl or at least ffmpeg to download the videos. :-(
Thank you uahim what a pity it was really convenient
@vinceguille @frouty this gets the stream url (link appears on top) for now, it's not pretty but it works: https://gist.github.com/uahim/dc82bbedd3b5e6c999af39ab5d45c643 you can then feed it to youtube-dl (or its forks) or directly into ffmpeg to download, or watch with VLC Media Player or so
ok, so I download this : arte_v2.user.js to be sure to understand : youtube-dl or ffmpeg are independant applications, or do I install them in the Terminal ? Then, I feed it with the .js ? Thanks again
@vinceguille yes, third party appilcations which you have to install. the js file is a simple user javascript which runs in your browser (greasemonkey or such) just like GuGuss' script. it will give you the link to the m3u8 file of the actual video stream, which you feed for example to https://github.com/ytdl-org/ or directly into https://ffmpeg.org/
Thanks @uahim
PS :
NB : will fix the main script to integrate with language selection.
Thanks for your explanations. so, once Brew and youtube-dl are installed, and the arte v2 stream url too
I just have to go on the Terminal and i can type, for example = youtube-dl https://www.arte.tv/fr/videos/108210-034-A/le-dessous-des-cartes-l-essentiel/ and it should download the video ?
Because on the arte site, I can't see what you showed me (the stream URL) even with a right-clic sorry to be long to understand :)
@vinceguille sorry it doesn't work for you, even though I tested it with different addons in different browsers, I do not have a solution or explanation why it does not work for some users.
I just have to go on the Terminal and i can type, for example = youtube-dl https://www.arte.tv/fr/videos/108210-034-A/le-dessous-des-cartes-l-essentiel/ and it should download the video ?
in time, youtube-dl and yt-dlp will have arte support built in (they are working on it) so your above command will work. but right now, per your example, it would be more like
youtube-dl https://arte-cmafhls.akamaized.net/am/cmaf/108000/108200/108210-034-A/220503161159/108210-034-A_VOF_XQ.m3u8
or
ffmpeg -i https://arte-cmafhls.akamaized.net/am/cmaf/108000/108200/108210-034-A/220503161159/108210-034-A_VOF_XQ.m3u8 -c copy -bsf:a aac_adtstoasc video.mp4
if you are tech-savvy, to find out why the script does not work for you, you could check the console via developer tools (ctrl + shift + i) for errors
edit: on a second thought, I can only imagine some browsers prevent scripts from creating prompts/dialogs, will check into that now
Hello Eyerybody! Uhaims script doesn´t work dont know why so i tried MediathekView 13.8.1 to download Arte.de. It works also for Arte.france. Its easy and effective. Hope for all Bumbadawg is writing a new script it was so elegant and easy to use, till then use MediathekView. :)
...or you can use browser extensions/addons such as "Bulk File Downloader" or "The Stream Detector"
also, users on linux/*nix systems or such with Cygwin experience can use this tiny shell script that does the same: https://gist.github.com/uahim/9b755b3a728bf790f67488f84f26a3ba again, not pretty, but it does the job
usage in terminal
./arte_v2.sh https://www.arte.tv/fr/videos/071467-000-A/
it produces this output, stream url for VLC and ready-made oneliners to download with ffmpeg :)
Audrey Hepburn, le choix de l'élégance
2022-04-21 -
2022-10-14
https://arte-cmafhls.akamaized.net/am/cmaf/071000/071400/071467-000-A/220421124253/071467-000-A_VOF-STF_XQ.m3u8
ffmpeg -referer "https://www.arte.tv/fr/videos/071467-000-A/" -user_agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0" -i "https://arte-cmafhls.akamaized.net/am/cmaf/071000/071400/071467-000-A/220421124253/071467-000-A_VOF-STF_XQ.m3u8" -c copy -bsf:a aac_adtstoasc "Audrey_Hepburn_le_choix_de_l_l_gance.mp4"
subtitles:
curl https://arte-cmafhls.akamaized.net/am/cmaf/071000/071400/071467-000-A/220421124253/medias/071467-000-A_st_VF-ALL.vtt > "Audrey_Hepburn_le_choix_de_l_l_gance.vtt"
as you see, it also gets you the subtitles, but as arte uses non-standard .vtt format with some rubbish in front, you may need to convert it to .srt to watch it on hardware devices, e.g. with vtt_to_srt. I had to make a few changes in order to make it work with arte subtitles, so I forked it; works without installation with Python 3.x: https://github.com/uahim/vtt-to-srt.py/blob/master/vtt_to_srt/vtt_to_srt.py
apparently VLC can handle vtt out of the box: https://fileinfo.com/extension/vtt
@Bumbadawg https://github.com/yt-dlp/yt-dlp/pull/3302#issuecomment-1152951721 turns out they only moved the mp4 links to another place, maybe this is helpful to fix ARTE-7-Downloader
@uahim I am trying to download arte video with subtitles but without any success, would you be kindly expand a bit the process to do it? I use ffmpeg and it works normally to download the video. many thanks.
this is on edge with your script www.arte.tv-1700425196794.log does it help?
By the way, now arte is separating the audio track from the video. Both are in mp4 at least for the few videos I tried.
@Tyr4El as far as I know, this script is dead and there are no forks
I suggest using yt-dlp or my userjs or bash script solutions - none of which are as comfortable as ARTE-7-Downloader, of course :-(
Hi I cannot see the windows below, since today.
Chrome Version 100.0.4896.127 (Build officiel) (x86_64) macOS Mojave 10.14.6
any idea ?
Thanks a lot