-
Notifications
You must be signed in to change notification settings - Fork 63
Video result in green or gray screen / DRM encrypted #438
Comments
Crunchyroll updated the switch endpoint that it uses drm protection - i guess that is the problem here |
thanks for letting me know, will be following the thread in yt-dlp repo |
From what I've heard, the switch app got updated recently. Unfortunately I'm unable to get the new version and see what exactly changed. |
Changin user agent to switch version 18.1.0 and latest version of Crunchyroll app (I don't know waht is) will solve the problem? |
Already tried that, doesn't work |
According to #439 and from what I can see by analyzing the requests done by the switch app, they used DRM system is OMA DRM |
Yesterday there wasn´t any problem but today the videos are corrupt by the DRM |
I was able to get a wideview request of the desktop version (https://cr-license-proxy.prd.crunchyrollsvc.com/v1/license/widevine) |
Decrypting the widevine drm stream with the matching keys is doable in theory. But I won't add it, it's in a legal grayzone and might lead to a DMCA takedown of the whole project. |
As far as I know, it doesn't work without keys. I can't say whether the Switch has a different solution. |
What if the program did not have the keys in it, but the user or the program had to obtain them when it was running, would that also be illegal? |
I will try to get the switch network trafic for see how it works |
on iOS uses fairPlay DRM but also it has key to decrypt |
OMA DRM is not documented well, so I doubt there will be a way to bypass it for now. |
OMA encryption is based on license object and AES encrypted video and encrypted key using RSA with private and public key, if s/he don't wanna fall in the "grey zone" (actually It never been gray) the development of this software ends here. |
are you sure it's OMA? from an mpd to served to the switch client: <ContentProtection xmlns:mspr="urn:microsoft:playready" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"> |
Trusted source said that but I can't verify 'cause i donno how to inspect Switch traffic, as said before ByteDance checked it using switch |
Are you inspecting the switch traffic rn? |
that's what yt-dlp gets when making a request to the switch stream endpoint w/ switch UA |
Yeah but we don't know if crunchyroll sends different mpds if you don't have the correct headers |
Will you consider implementing L3 Widevine keys or will you continue to investigate the DRM of the enpoint of the switch? |
The switch does a request to |
Most likely, if it's oma DRM, did you find any documentation? |
The official spec |
thanks |
That's a good question. |
GitHub has a repo where all DCMA takedown requests are listed. When searching for major platforms like Netflix or Amazon it gives plenty of results. |
What if the user needs to provide an application/script to get the keys themself, which then gets called with specific input parameters and is expected to output in a specific format? |
I thought of this too, like a plugin system. cloudstream does that too |
DRM or not CR already made DMCA takedowns years ago. |
Maybe they don't care anymore |
Or maybe they had hardcoded credentials? Sadly I can't find a backup to check |
|
Can You Please Tell To How To Execute This ? |
My mistake, I thought I could navigate through the files. |
Maybe you can try this Crunchyroll-Downloader-v4.0 Not tested! |
It works flawlessy |
So even if the video downloading is not supported due to legal reason, would there be a way to still download the subtitles as files (ass or srt) with a flag? crunchy-cli --credentials 'email:password' download --subtitle-only --subtitle all \
--output "{series_name} - {season_number}x{episode_number} - {title} - {language}.ass" https://www.crunchyroll.com/series/G4PH0WJPN/the-banished-former-hero-lives-as-he-pleases or crunchy-cli --credentials 'email:password' subtitle-download --subtitle all \
--output "{series_name} - {season_number}x{episode_number} - {title} - {language}.ass" https://www.crunchyroll.com/series/G4PH0WJPN/the-banished-former-hero-lives-as-he-pleases |
I do this: yt-dlp --username "xx@yy.zz" --password "XYZ" --user-agent "Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27" --sub-langs "de-DE" --write-description --write-thumbnail --write-subs --skip-download --allow-unplayable-formats --extractor-args "crunchyrollbeta:hardsub=de-DE" http... With this, you get *.ass, *.jpe and *.description. For "de-DE" set your own Country. |
Awesome thanks for sharing will be trying this out, didn't though of just using yt-dlp. But I'm surprise to see that you don't provide a cookie file ? |
Its ok. Since --user-agent "Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27" Cookies no longer used. |
Good to know thank you for sharing |
The latest UA is Crunchyroll/1.9.0 Nintendo Switch/18.1.0.0 UE4/4.27 but i can't confirm for UE4 |
Thanks. |
Thats maybe a stupid question because i do not realy know how drm works: Wouldn't it be possible to download the encrypted files with crunchy-cli and then get something like a post-processing hook and decrpyt the files with ffmpeg or so ? As far as i understood Tools like wvdumper get you the private keys to decrypt the stuff. |
This may still count as help to download protected media, which is illegal in my country |
You could pass the project to someone that doesn't live in a country where its illegal to bypass it |
That would not protect the project from a dmca takedown. |
That's a tricky problem to solve then. |
There are crunchyroll downloader repositories with widevine bypass integration that are years old, they never got dmca'd, because they don't provide the device keys needed to do the widevine request. |
Another project works with DRM downloads; the procedure is a little time-consuming, but works very well. However, I don't know if it's legal: https://github.com/OpenSTDL/CrunchyDL/discussions/23 |
Describe the bug
When using the commands download and archive the resulting video output is a green or gray screen, have tried on both windows and mac. FYI I have used the crunchy-cli earlier this week without issues.
I also tried different shows and different seasons without success. I also tried with and without ffmpeg-preset to (h264-apple-lossless, h264) and lastly tried saving to mp4 and mkv with no success
The resulting video is the expected size (if not reencoding) which is weird
Also the audio and/or sublitle would work properly even if the tracks are there.
To Reproduce
Steps / command to reproduce the behavior:
Expected behavior
I expect the output not to be a video where the background is green or gray and the audio to work along with the subtitles
Screenshots
If applicable, add screenshots to help explain your problem.
2024-06-18.21-29-34.mov
Client (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: