Hey, I am not going to ask how to download AES 128 encrypted videos because I already know how to do that after checking multiple posts in video help forums.
My question is that I use the following command to download an encrypted AES 128 video:
hlsdl -K "65125DA49032A3B9AD74C6E9FDF02D98" -o "abc.ts" "https://d2a5xnk4s7n8a6.cloudfront.net/spees/w/o/5e356a710cf24531c92ac49f/v/608c2d510cf274502bebb091/u/62b17baa0cf2995efd8b74c3/t/aeade224671194a69668077a98310f36/p/assets/videos/5e356a710cf24531c92ac49f/2021/04/30/608c2d510cf274502bebb091/hls_1M_.m3u8"
How do I use this command in ffmpeg? Can someone modify it? I have the decryption key in the above command and the URL.
So that I can write a Python script to automate these downloads in Python.
+ Reply to Thread
Results 1 to 5 of 5
-
Discord : quantumqueenxox
Telegram: EighthJourney27 -
Use N_m3u8DL-RE tool for download
Installation Guide:
https://forum.videohelp.com/threads/420000-N_m3u8DL-RE-Installation-Guide-for-Mac-Linu...ows-10-11-2026
N_m3u8DL-RE "https://d2a5xnk4s7n8a6.cloudfront.net/spees/w/o/5e356a710cf24531c92ac49f/v/608c2d510cf274502bebb091/u/62b17baa0cf2995efd8b74c3/t/aeade224671194a69668077a98310f36/p/assets/videos/5e356a710cf24531c92ac49f/2021/04/30/608c2d510cf274502bebb091/index.m3u8" --custom-hls-key "65125DA49032A3B9AD74C6E9FDF02D98" -M "format=mp4" --tmp-dir "Dow" --save-dir "Download/MyFolder11" --save-name "TWS-1"
What’s Happening Here
✔ --custom-hls-method AES-128 — Explicitly tells N_m3u8DL-RE that the stream uses AES-128 encryption.
✔ --custom-hls-key — Supplies the raw AES-128 key in hex format. You often need the prefix hex: so the tool knows it’s hex-encoded.
✔ -M format=mp4 — Instructs N_m3u8DL-RE to merge (mux) audio and video into a single MP4 after download.
✔ --tmp-dir — Folder for temporary files during download.
✔ --save-dir / --save-name — Where and what the final file is called.Last edited by premajee; 1st Feb 2026 at 14:37. Reason: better explain
-
Hi, are you active, by any chance? I wanted to know how you got the key? I have the timestamp data
-
This key "65125DA49032A3B9AD74C6E9FDF02D98" is the apkId by any chance?
also an update, i managed to decrypt myself using apkId itself.
python code:
Code:from Crypto.Cipher import AES import base64 # ---- inputs ---- apkId = "apkid" with open("timestamp", "rb") as f: data = f.read() # ---- step 1: slice bytes ---- f = data v = f[0:16] g = f[48:64] # ---- step 2: derive stage-1 AES key from apkId ---- apk_key_hex = apkId[:8] + apkId[40:] apk_key = bytes.fromhex(apk_key_hex) cipher1 = AES.new(apk_key, AES.MODE_ECB) intermediate_key = cipher1.decrypt(g) # ---- step 3: derive final HLS AES key ---- cipher2 = AES.new(intermediate_key, AES.MODE_ECB) final_aes_key = cipher2.decrypt(v) # ---- result ---- print(final_aes_key.hex()) -
what you want to know, can u explain, and also share the images/screeshot and also share timestamp data
Similar Threads
-
How to decrypt aes 128 encrypted key???
By anandgpt75 in forum Video Streaming DownloadingReplies: 20Last Post: 26th May 2023, 17:50 -
How do I download AES encrypted video streamed over HLS?
By Videogamer555 in forum Video Streaming DownloadingReplies: 1Last Post: 20th Jul 2022, 08:03 -
m3u8 to mp4 (AES-128 Encrypted)
By vel3ro in forum Video Streaming DownloadingReplies: 4Last Post: 19th Jul 2021, 18:11 -
How to decrypt AES-128 encrypted m3u8 TS files?
By canete in forum Video Streaming DownloadingReplies: 1Last Post: 2nd Jan 2020, 13:42 -
Downloading AES-128 encrypted m3u8 file
By achy635 in forum Video Streaming DownloadingReplies: 6Last Post: 28th Aug 2019, 23:51



Quote