Specifically from https://www.kocowa.com/
FMI: https://cdm-project.com/How-To/ & https://old.reddit.com/r/Piracy/comments/y30ffr/
- Install Tampermonkey: https://www.tampermonkey.net/
- Install yt-dlp: https://github.com/yt-dlp/yt-dlp#installation
- Install ffmpeg: https://ffmpeg.org/download.html
- Download Bento4: https://www.bento4.com/downloads/
- Have a proxy/VPN if you're not in countries that Available to Watch!
- Install this userscript: https://greasyfork.org/en/scripts/373903-eme-logger
- Search browser JS Console for
MediaKeySession::generateRequest, then press play on the video and look under "Init Data" - Get something like
AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAXXXXXXXXFtoyTEzFOZDD4T9lmTiI=
- Install extension Widevine L3 Decrypter by YeetMasta
- Go to DRM content tab and hit exension icon while playing.
- Hit Guess! button.
- Hopefully see the a key that looks like
e0c5b68c93133XXXXXXXX84fd9664e22:499047f36b770957XXXXXXXX9dfc4033
- Go to DRM content tab.
- In the developer console Network tab, search for
mpd - While playing content, Find something that starts with
Manifest, right click and copy the URL, e.g.https://azclwds01.akamaized.net/9dc3547a-ede5-4aed-841f-5cXXXXXXXX0f/tXyKyP_tab_hd.ism/Manifest(format=mpd-time-csf,encryption=cenc,filter=pc_hd_001) - Run the Terminal command:
yt-dlp --allow-unplayable [url] - Get two files, an .mp4 and an .m4a
- In Bento4's
bin/folder, find themp4decryptcommand line utility - Navigate to this folder in your Terminal and run
mp4decrypt --key [yourkey] /path/to/corrupted.file /path/to/fixed.fileon both files - Run
ffmpeg -i fixedvideo.mp4 -i fixedaudio.m4a -c:v copy -c:a copy output.mp4 - The end
- In the developer console Network tab, search for
.vtt - While playing content, Find something that starts with
Manifest, right click and copy the URL and download it with some tools likewget. That is the subtitle file. - merge files with subtitle:
ffmpeg -i fixed.mp4 -i fixed.m4a -i subtitle.vtt -map 0:v:0 -map 1:a:0 -map 2:0 -c:v copy -c:a copy -c:s srt -metadata:s:s:0 language=eng output.mkv