Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix below] [Arte_v2] cannot see the windows below, since today #98

Open
vinceguille opened this issue May 3, 2022 · 16 comments
Open

Comments

@vinceguille
Copy link

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

@frouty
Copy link

frouty commented May 4, 2022

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?

@uahim
Copy link
Contributor

uahim commented May 4, 2022

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. :-(

@vinceguille
Copy link
Author

Thank you uahim
what a pity
it was really convenient

@uahim
Copy link
Contributor

uahim commented May 6, 2022

@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

@vinceguille
Copy link
Author

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

@uahim
Copy link
Contributor

uahim commented May 6, 2022

Clipboard01

@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/

@Bumbadawg Bumbadawg changed the title cannot see the windows below, since today [fix below] cannot see the windows below, since today May 7, 2022
@Bumbadawg
Copy link
Collaborator

Thanks @uahim

PS :

  • VLC, MPV or FFmpeg to play.
  • VLC, FFmpeg, Youtube-DL or YT-DLP to download.

NB : will fix the main script to integrate with language selection.

@Bumbadawg Bumbadawg changed the title [fix below] cannot see the windows below, since today [fix below] [Arte_v2] cannot see the windows below, since today May 7, 2022
@vinceguille
Copy link
Author

Thanks for your explanations.
so, once Brew and youtube-dl are installed, and the arte v2 stream url too

Capture d’écran 2022-05-10 à 15 16 46

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 :)

Capture d’écran 2022-05-10 à 15 18 54

@uahim
Copy link
Contributor

uahim commented May 10, 2022

@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

@boobooblue
Copy link

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. :)

@uahim
Copy link
Contributor

uahim commented May 18, 2022

...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

@uahim
Copy link
Contributor

uahim commented Jun 11, 2022

@Bumbadawg
yt-dlp/yt-dlp#3302 (comment)
turns out they only moved the mp4 links to another place, maybe this is helpful to fix ARTE-7-Downloader

@osvivant
Copy link

@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.

@uahim
Copy link
Contributor

uahim commented Aug 22, 2022

@osvivant sure, let's talk on the Gist page

@Tyr4El
Copy link

Tyr4El commented Nov 19, 2023

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.

@uahim
Copy link
Contributor

uahim commented Nov 20, 2023

@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 :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants