Apr 24, 2021, 18:53 pm
Download Widevine L3 Decryptor. The original github repository got shut down, so here's a fork of it: https://github.com/tomer8007/widevine-l3-decryptor/tree/ed8a97745c69b8cc0fc7f59cec9474b216b49e16
Download a zip extracting program and then extract it. I recommend 7-Zip.
go to chrome://extensions, and turn developer mode on. Then press "Load unpacked" then find the extracted Widevine L3 Decryptor folder.
Then, go to any Amazon Prime Video movie or TV show that you like. (RECOMMENDED) Before clicking the front page of the item, MAKE SURE TO PRESS INSPECT ELEMENT BEFORE YOU GO INTO THE VIDEO PAGE.
Open Inspect Element and go to console. You should see the key and the kid, but there are multiple key's and kid's. So to determine whats the real deal, type mpd in Network on Inspect Element. Click the first one that is there. Usually, it would download the mpd file on other sites, but for this one site, it lets you see the text.
wherever it says " cenc:default_KID="" on the mpd file on the top, thats the kid for the video, now compare this to the inspect element console, you have your key for the video.
I HIGHLY RECOMMEND USING NOTEPAD TO GATHER THE KID AND KEY INFO. I put the things as Kid (Video): Kid and Key (Video): Key
Then get the information about the Audio kid and key and put it as Kid (Audio): Kid and Key (Audio): Key
Download the audio and video mp4 files. The video and audio files are like this: video_12.mp4 and audio_11.mp4, if you want to get it loselessly, count up and press enter on every single number until it gets a 404 error, then you have to go back a number and thats the loseless video and audio file. I put the file as movietitleVIDEO_Encrypted.mp4 and movietitleAUDIO_Encrypted.mp4
Ok, so now you have to get mp4decrypt from here: https://www.bento4.com/downloads/
Put mp4decrypt into the folder where you saved the encrypted audio and video file.
Next, comes the fun part! so for mp4decrypt in cmd prompt, you have to type "mp4decrypt --key kid:key "sourcevideotitle.mp4" "exportedvideotitle.mp4". Do that with Audio and video.
Last step, put the audio and video in mkvToolnix GUI and export. then you are done.
Ok, so it's a lot of work, but it is pretty easy to do if you do all of the steps correctly. Thats it.
How to Rip from Amazon loselessly.
VIDEO TUTORIAL
TEXT TUTORIAL:
This assumes you have already installed the Widevine L3 Decryptor and mp4decryptor.
Step 1: Find a TV show or movie you want to download and open the inspect element before clicking on it.
Step 2: Start streaming the video with the inspect element open. Preferably, you should be preserving all network logs (you can find it here, in the settings)
Step 3: In the network tab, search for "mpd" (should look something like this). Right click on one of them, and copy the response (image). Paste this into something like notepad++.
Step 4: Search for "cenc:default_KID=". For EACH(!!) result, copy what is inside the quotation marks and paste it somewhere at the top of your document. I recommend first prettifying the xml/html so it is easier to read.
Video of me doing steps 3 and 4: https://streamable.com/mrmp2m
(Remove the dashes in the KID or the decompression will not work.)
Step 5: Go to the console tab, and find each key that matches a KID you found in the MPD.
In the video, I found CF1F98F85CB74D9B8A7D5576D126FFDB and 743FB7D3CDE3424B932EE841983F3A20, so I would look for those and then copy the keys from a saved .log file.
Video
Step 6: Now that you have a key and KID (in my case I had 2 pairs) find your video and audio by searching for it. I want to find the highest quality for each, so I will increment until I dont get a response.
Video (only shows audio download [with incrementing], video is the same process but just search for the video instead of audio)
Step 6: Now that you have downloaded both encrypted files, in powershell or command prompt type (path to mp4decrypt.exe) --key (KID)KEY) "sourcefile.mp4" "destinationfile.mp4". Consider adding mp4decrypt to PATH. Repeat this process with different ***** and keys (dont mix and match the keys!) if the conversion did not successfully decrypt the file. (You might be able to use the same KID and key for both files)
Step 7: Combine them in mkvToolnix.
Disney+:
1. Follow steps 1-3 for installing the extension.
2. Open up Chrome Developer tools and go onto the network section before entering the stream. Filter by the term 'm3u8', just to make the stream easier to find.
3. Start the stream and wait for results to show up on the network tab. The name should have this in it 'composite_(number may depend on stream)k_CENC_CTR_FHD_SDR'. Copy the link onto notepad or something. This is the video stream. Also, look for a link containing 'composite_128k_mp4a.40.2_(whatever language you are watching the stream in). Copy that link also. This is the audio stream.
4. On Dev Tools, go onto console. You should see a single key. Copy the key onto notepad or something.
5. Download the latest version of N_m3u8DL-CLI from here. Put the program in its own directory. Also, don't worry, the program is actually in English.
6. Open up the program and enter the video m3u8 link into it. It should now download the stream. Wait for it to finish. Ignore the SAMPLE-AES-CTR Is Not Supported Yet error message. It does not matter. Then once it's finished, open it again, but enter the audio m3u8 link.
7. Once they're both finished, go into the Downloads folder that's located in the N_m3u8DL-CLI directory. You should see an encrypted MP4 and an non-encrypted m4a.
8. Download mp4decrypt from here. Put mp4decrypt anywhere, as long as the MP4 is in the same directory.
9.Run this command on a command line in the directory of mp4decrypt
mp4decrypt.exe --key 1:<insert that key here> --show-progress <encrypted MP4 name> decrypted_video.mp4
10. Merge the decrypted video and audio with whatever program you use for that. I personally use MKVToolNix GUI.
11. Done.
Netflix:
1. Follow steps 1-3 for installing the extension.
2. Download the Netflix 1080p chrome extension from here.
3. Open up Chrome Developer tools and go onto the network section before entering the stream.
4. Start the stream. Press CTRL + ALT + SHIFT + S. This should open a little window on Netflix. Select the highest video bitrate and the highest audio bitrate. CDN doesn't need to be touched. Do the command again to get rid of the window.
5. Now skip forward further into the video (a bit that should not have loaded yet. Look on the network tab and grab any of the links that have ?o=. Copy the link on notepad or something.
6. Now on that link you copied, remove everything between '.net/' and '?o'.
7. Now copy that edited link onto whatever you download files with. It should download the encrypted video stream.
8. Now for the tricky part. The audio stream. To find it, switch the language, wait a few seconds, then switch back to the language you want. On the network tab, a file name starting with '0-' will come up. Copy the link onto notepad or something, and remove everything between 'net/' and '?o' on the link. You should now be able to download the non encrypted audio with whatever you use to download files.
9. On Dev Tools, go onto console. You should see some keys. Copy all the keys onto notepad or something.
10. Download mp4decrypt from here. Put mp4decrypt anywhere, as long as the encrypted video is in the same directory.
11. Run this command on a command line in the directory of mp4decrypt
mp4decrypt.exe --key 1:<insert a key here> --show-progress <encrypted video name> decrypted_video.mp4
12. Check if the video actually decrypted, if it hasn't, then delete it, and re-do the command with another key. Keep doing this until it actually properly decrypts.
13. Merge the decrypted video and audio with whatever program you use for that. I personally use MKVToolNix GUI.
14. Done.
channel 4
test by myself and its work..
1. same as above get key and KID number
2. copy MPD link
3. open N_m3u8DL-CLI
4. paste MPD link on it
5. it will ask you to choose number to download, like this
6. do the same as above mp4decrypt
mp4decrypt.exe --key <insert KID here>:<insert a key here> “<encrypted video name>“ “decrypted_video.mp4”
7. Merge the decrypted video and audio (MKVToolNix GUI)
Download a zip extracting program and then extract it. I recommend 7-Zip.
go to chrome://extensions, and turn developer mode on. Then press "Load unpacked" then find the extracted Widevine L3 Decryptor folder.
Then, go to any Amazon Prime Video movie or TV show that you like. (RECOMMENDED) Before clicking the front page of the item, MAKE SURE TO PRESS INSPECT ELEMENT BEFORE YOU GO INTO THE VIDEO PAGE.
Open Inspect Element and go to console. You should see the key and the kid, but there are multiple key's and kid's. So to determine whats the real deal, type mpd in Network on Inspect Element. Click the first one that is there. Usually, it would download the mpd file on other sites, but for this one site, it lets you see the text.
wherever it says " cenc:default_KID="" on the mpd file on the top, thats the kid for the video, now compare this to the inspect element console, you have your key for the video.
I HIGHLY RECOMMEND USING NOTEPAD TO GATHER THE KID AND KEY INFO. I put the things as Kid (Video): Kid and Key (Video): Key
Then get the information about the Audio kid and key and put it as Kid (Audio): Kid and Key (Audio): Key
Download the audio and video mp4 files. The video and audio files are like this: video_12.mp4 and audio_11.mp4, if you want to get it loselessly, count up and press enter on every single number until it gets a 404 error, then you have to go back a number and thats the loseless video and audio file. I put the file as movietitleVIDEO_Encrypted.mp4 and movietitleAUDIO_Encrypted.mp4
Ok, so now you have to get mp4decrypt from here: https://www.bento4.com/downloads/
Put mp4decrypt into the folder where you saved the encrypted audio and video file.
Next, comes the fun part! so for mp4decrypt in cmd prompt, you have to type "mp4decrypt --key kid:key "sourcevideotitle.mp4" "exportedvideotitle.mp4". Do that with Audio and video.
Last step, put the audio and video in mkvToolnix GUI and export. then you are done.
Ok, so it's a lot of work, but it is pretty easy to do if you do all of the steps correctly. Thats it.
How to Rip from Amazon loselessly.
VIDEO TUTORIAL
TEXT TUTORIAL:
This assumes you have already installed the Widevine L3 Decryptor and mp4decryptor.
Step 1: Find a TV show or movie you want to download and open the inspect element before clicking on it.
Step 2: Start streaming the video with the inspect element open. Preferably, you should be preserving all network logs (you can find it here, in the settings)
Step 3: In the network tab, search for "mpd" (should look something like this). Right click on one of them, and copy the response (image). Paste this into something like notepad++.
Step 4: Search for "cenc:default_KID=". For EACH(!!) result, copy what is inside the quotation marks and paste it somewhere at the top of your document. I recommend first prettifying the xml/html so it is easier to read.
Video of me doing steps 3 and 4: https://streamable.com/mrmp2m
(Remove the dashes in the KID or the decompression will not work.)
Step 5: Go to the console tab, and find each key that matches a KID you found in the MPD.
In the video, I found CF1F98F85CB74D9B8A7D5576D126FFDB and 743FB7D3CDE3424B932EE841983F3A20, so I would look for those and then copy the keys from a saved .log file.
Video
Step 6: Now that you have a key and KID (in my case I had 2 pairs) find your video and audio by searching for it. I want to find the highest quality for each, so I will increment until I dont get a response.
Video (only shows audio download [with incrementing], video is the same process but just search for the video instead of audio)
Step 6: Now that you have downloaded both encrypted files, in powershell or command prompt type (path to mp4decrypt.exe) --key (KID)KEY) "sourcefile.mp4" "destinationfile.mp4". Consider adding mp4decrypt to PATH. Repeat this process with different ***** and keys (dont mix and match the keys!) if the conversion did not successfully decrypt the file. (You might be able to use the same KID and key for both files)
Step 7: Combine them in mkvToolnix.
Disney+:
1. Follow steps 1-3 for installing the extension.
2. Open up Chrome Developer tools and go onto the network section before entering the stream. Filter by the term 'm3u8', just to make the stream easier to find.
3. Start the stream and wait for results to show up on the network tab. The name should have this in it 'composite_(number may depend on stream)k_CENC_CTR_FHD_SDR'. Copy the link onto notepad or something. This is the video stream. Also, look for a link containing 'composite_128k_mp4a.40.2_(whatever language you are watching the stream in). Copy that link also. This is the audio stream.
4. On Dev Tools, go onto console. You should see a single key. Copy the key onto notepad or something.
5. Download the latest version of N_m3u8DL-CLI from here. Put the program in its own directory. Also, don't worry, the program is actually in English.
6. Open up the program and enter the video m3u8 link into it. It should now download the stream. Wait for it to finish. Ignore the SAMPLE-AES-CTR Is Not Supported Yet error message. It does not matter. Then once it's finished, open it again, but enter the audio m3u8 link.
7. Once they're both finished, go into the Downloads folder that's located in the N_m3u8DL-CLI directory. You should see an encrypted MP4 and an non-encrypted m4a.
8. Download mp4decrypt from here. Put mp4decrypt anywhere, as long as the MP4 is in the same directory.
9.Run this command on a command line in the directory of mp4decrypt
mp4decrypt.exe --key 1:<insert that key here> --show-progress <encrypted MP4 name> decrypted_video.mp4
10. Merge the decrypted video and audio with whatever program you use for that. I personally use MKVToolNix GUI.
11. Done.
Netflix:
1. Follow steps 1-3 for installing the extension.
2. Download the Netflix 1080p chrome extension from here.
3. Open up Chrome Developer tools and go onto the network section before entering the stream.
4. Start the stream. Press CTRL + ALT + SHIFT + S. This should open a little window on Netflix. Select the highest video bitrate and the highest audio bitrate. CDN doesn't need to be touched. Do the command again to get rid of the window.
5. Now skip forward further into the video (a bit that should not have loaded yet. Look on the network tab and grab any of the links that have ?o=. Copy the link on notepad or something.
6. Now on that link you copied, remove everything between '.net/' and '?o'.
7. Now copy that edited link onto whatever you download files with. It should download the encrypted video stream.
8. Now for the tricky part. The audio stream. To find it, switch the language, wait a few seconds, then switch back to the language you want. On the network tab, a file name starting with '0-' will come up. Copy the link onto notepad or something, and remove everything between 'net/' and '?o' on the link. You should now be able to download the non encrypted audio with whatever you use to download files.
9. On Dev Tools, go onto console. You should see some keys. Copy all the keys onto notepad or something.
10. Download mp4decrypt from here. Put mp4decrypt anywhere, as long as the encrypted video is in the same directory.
11. Run this command on a command line in the directory of mp4decrypt
mp4decrypt.exe --key 1:<insert a key here> --show-progress <encrypted video name> decrypted_video.mp4
12. Check if the video actually decrypted, if it hasn't, then delete it, and re-do the command with another key. Keep doing this until it actually properly decrypts.
13. Merge the decrypted video and audio with whatever program you use for that. I personally use MKVToolNix GUI.
14. Done.
channel 4
test by myself and its work..
1. same as above get key and KID number
2. copy MPD link
3. open N_m3u8DL-CLI
4. paste MPD link on it
5. it will ask you to choose number to download, like this
6. do the same as above mp4decrypt
mp4decrypt.exe --key <insert KID here>:<insert a key here> “<encrypted video name>“ “decrypted_video.mp4”
7. Merge the decrypted video and audio (MKVToolNix GUI)