ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.36k stars 10.04k forks source link

Support Eurosport Player #17365

Closed beta2k closed 6 years ago

beta2k commented 6 years ago

Can the Eurosport Player be supported? For instance, I would like to download the following video for personal use: https://at.eurosportplayer.com/en/event/court-12/453b4459-3b6e-44dd-a278-3b6617791875

I have an account, if credentials are needed, I can provide them.

ghost commented 6 years ago

This would be a useful feature. What additional information do you need? @remitamine

remitamine commented 6 years ago
ghost commented 6 years ago
  1. I can do that
  2. Maybe you can use a free VPN service?
  3. Maybe we can ask people to lend their own account?
  4. How can I check that? I was able to download a ".ts" file from the website using this extension, but VLC is unable to play the file
remitamine commented 6 years ago

when I write those points, it's not just about me(I'm not necessarily the one that will work on it).

I can do that.

you can create an issue then.

Maybe you can use a free VPN service?

I do have access to the website.

Maybe we can ask people to lend their own account?

I'm not going to ask anyone for his account, if someone wants to provide an account for testing he can initiate the contact.

How can I check that? I was able to download a ".ts" file from the website using this extension, but VLC is unable to play the file

there is no universal method to know(most of the time it can be checked in the manifest that contain segments links), it depends on the service.

ghost commented 6 years ago

@remitamine thanks!

1800_complete-trimmed.m3u8.txt master_desktop_complete-trimmed.m3u8.txt

I attach the file `master_desktop_complete-trimmed.m3u8" which should contain the links to the m3u8 files at various bitrates, and "1800_complete-trimmed.m3u8" which should contain the link to the chunks of the 896x504 resolution.

In particular, in "1800_complete-trimmed.m3u8", it appears

#EXT-X-KEY:METHOD=AES-128,URI="https://drm-api.svcs.eurosportplayer.com/events/c3b50e14-0460-4441-800f-2c57726b2b28/media/d83973bd-e8e0-4f09-8613-c7b969fe6299/keys/ff29190b-d594-4877-bb8f-58a75d88e3b7",IV=0x6D5D481697F98E2A4852FBA178E91EBD
#EXTINF:5,

So it is my understanding it is encrypted with AES-128? How can I download the public key?

The link to the URI dows not work for me. It says "Connection refused"

remitamine commented 6 years ago

from the manifests that you have posted there is no indication that they really use DRM, the manifests are similar to the ones used by RTBF, which require different cookies for obtaining the keys from the ones used for the segments(even thought that you didn't post the original urls):

#EXTM3U
#EXT-X-VERSION:1
## Created with Unified Streaming Platform(version=1.8.5)
#EXT-X-MEDIA-SEQUENCE:192657986
#EXT-X-TARGETDURATION:8
#USP-X-TIMESTAMP-MAP:MPEGTS=3486398384,LOCAL=2018-11-03T16:51:21Z
#EXT-X-PROGRAM-DATE-TIME:2018-11-03T16:51:21Z
#EXT-X-KEY:METHOD=AES-128,URI="https://www.rtbf.be/api/drm/aeskey?stream_name=ladeux"
#EXTINF:8, no desc
ladeux_aes-audio_1=128000-video=2000000-192657986.ts
ghost commented 6 years ago

From CHrome DevTools the URLs of the manifest would be https://hlsvod-akrc.ams1.media.eurosportplayer.com/linear/program/2018/11/02/e57c2e89-da20-3b77-bba2-c1ad314fcedc/1200K/1200_complete.m3u8

Posting the HAR of the manifests and the key would help?

remitamine commented 6 years ago

Posting the HAR of the manifests and the key would help?

no, it's not enough, but you can try to export cookies and pass them to youtube-dl with the manifest URL.

ghost commented 6 years ago

I have managed to crack it down. My preliminary work is here. My main problem is how to find the URL of the master playlist file starting from the URL of the video. Actually the script requires you to find the URL of the master playlist file manually. For the rest we should be covered :) Hope someone get a chance to test it. Maybe we can then use my work to implement the feature in youtube-dl

beta2k commented 5 years ago

Any update on this?

TheManchineel commented 5 years ago

EuroSport Player has no DRM, look at this open source client written in Python for Kodi, implementation should be trivial.

beta2k commented 5 years ago

see also: https://github.com/raffam/eurosportplayer-dl/

TheManchineel commented 5 years ago

Looks like it's already done then, we just need to import eurosportplayer-dl code into youtube-dl lol

ghost commented 5 years ago

As the author of eurosportplayer-dl (and user of youtube-dl!) I might be able to help with that?

remitamine commented 5 years ago

we just need to import eurosportplayer-dl code into youtube-dl lol

no, this is not the way things are done in the project, the support has to be added directly in youtube-dl, no external dependencies.

Cedric-IEF2I commented 5 years ago

Hello, I'm reopening this topic to ask for EurosportPlayer support. We are numerous to ask for it, it would be wonderful if the authors were able to implement it to their fantastic script.

GTKSSR commented 5 years ago

Hello, I have the same request as frederic1. It would be great if you could add support for EurosportPlayer. Both Eurosportplayer-dl and youtube-dl don't work now with new player on Eurosportplayer.com.

L4yer commented 5 years ago

i too would like to request support for eurosport player.