How to download a Twitter or X encrypted streaming broadcast as a video file? I tried some Chrome extensions and apps and they either fail due to encryption or can't do it.
I am looking for a Chrome extension or any Windows tool that can do this.
This is an example of an X streaming video. https://twitter.com/i/broadcasts/1rmxPMEwdQEKN
+ Reply to Thread
Results 1 to 13 of 13
-
-
In console under network tab just search for .m3u8
link (if you click on it,you will get "forbidden", if you copy the url and paste it in the tool or new tab in browser,it should open. Or just look for your own in the console)
Use any tool to download the file. Streamlink, ffmpeg, any fork of youtube-dl (yt-dl or yt-dlp or whatever). -
It's not encrypted at all. You can easily grab the .m3u8 url from The Stream Detector browser extension, and then feed the url to yt-dlp or N_m3u8DL-RE. For example:
Code:N_m3u8dl-re https://prod-ec-us-east-1.video.pscp.tv/Transcoding/v1/hls/FDm_zzXb3kg5jllin3-wAID2qK8FHDDCJcT74nMVvQUEWk8w_BoCXBY4_RYBOVyi2QGn5wj90rUiXIIp_9pjbQ/non_transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/tw_master_dynamic_16740706496425085766.m3u8?type=replay
-
I would make an objection to @white_snake. Sorry sir, I got no offense!
This is an encrypted HLS stream.
[Attachment 76456 - Click to enlarge]
For each segment, different IVs are used but the key stayed the same.
[Attachment 76457 - Click to enlarge] -
i try to download video with N_m3u8DL-RE,
i don't put any key in script
and its work
i download the lowest res
Code:N_m3u8DL-RE -M format=mkv "https://prod-ec-us-east-1.video.pscp.tv/Transcoding/v1/hls/FDm_zzXb3kg5jllin3-wAID2qK8FHDDCJcT74nMVvQUEWk8w_BoCXBY4_RYBOVyi2QGn5wj90rUiXIIp_9pjbQ/non_transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/tw_master_dynamic_16740706496425085766.m3u8?type=replay" --save-name videotwitter
-
If you want 1080p quality. Download the encryption key and save it as key.bin file:
https://twitter.com/i/live_video_stream/key?stream_name=FDm_zzXb3kg5jllin3-wAID2qK8FHD...0rUiXIIp_9pjbQ
And run this:
Code:N_m3u8DL-RE.exe https://prod-ec-us-east-1.video.pscp.tv/Transcoding/v1/hls/FDm_zzXb3kg5jllin3-wAID2qK8FHDDCJcT74nMVvQUEWk8w_BoCXBY4_RYBOVyi2QGn5wj90rUiXIIp_9pjbQ/transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJFbmNvZGVyU2V0dGluZyI6ImVuY29kZXJfc2V0dGluZ18xMDgwcDMwXzEwIiwiSGVpZ2h0IjoxMDgwLCJLYnBzIjo1NTAwLCJXaWR0aCI6MTkyMH0.OImMZabKYJ0cs9CnIapU-4aBk6KNBiJxi1hh-6l4BZ4/tw_playlist_16740706496425085766.m3u8?type=replay --custom-hls-key "key.bin"
[Attachment 76467 - Click to enlarge] -
I didn't check thoroughly before, but yes you're right in saying the stream does have encryption. But the point still stands: it doesn't need any manual decryption to be performed, everything is handled automatically by N_m3u8DL-RE.
I just downloaded the whole stream in 1080p with my previous command, without any need to use --custom-hls-key. Are you sure that's needed for you?
Sorry sir, I got no offense! -
I ran the same command but it's dead. I must be doing something wrong if it worked for you.
[Attachment 76470 - Click to enlarge]
[Attachment 76471 - Click to enlarge] -
No need to over-complicate things:
Code:yt-dlp "https://twitter.com/i/broadcasts/1rmxPMEwdQEKN" -o "x.mp4"
-
This is my output from earlier:
[Attachment 76472 - Click to enlarge]
We also have the same N_m3u8DL-RE version, so that's weird. Do you get the same .m3u8 url from Twitter? -
I just copied and pasted your URL. Identical command. The same happened when I directly copied the URL from the stream detector addon. Maybe there are some regional shenanigans going on but it makes no sense. Anyway, @stabbedbybrick offered a better solution at least. That worked for me with no HLS key. Weird though.
-
Very weird because yt-dlp's extractor sources the 1080p stream from the exact same resource as N_m3u8DL-RE:
Code:yt-dlp "https://twitter.com/i/broadcasts/1rmxPMEwdQEKN" -f replay-5500 -g https://prod-ec-us-east-1.video.pscp.tv/Transcoding/v1/hls/FDm_zzXb3kg5jllin3-wAID2qK8FHDDCJcT74nMVvQUEWk8w_BoCXBY4_RYBOVyi2QGn5wj90rUiXIIp_9pjbQ/transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJFbmNvZGVyU2V0dGluZyI6ImVuY29kZXJfc2V0dGluZ18xMDgwcDMwXzEwIiwiSGVpZ2h0IjoxMDgwLCJLYnBzIjo1NTAwLCJXaWR0aCI6MTkyMH0.OImMZabKYJ0cs9CnIapU-4aBk6KNBiJxi1hh-6l4BZ4/tw_playlist_16740706496425085766.m3u8?type=replay
Code:N_m3u8DL-RE https://prod-ec-us-east-1.video.pscp.tv/Transcoding/v1/hls/FDm_zzXb3kg5jllin3-wAID2qK8FHDDCJcT74nMVvQUEWk8w_BoCXBY4_RYBOVyi2QGn5wj90rUiXIIp_9pjbQ/transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJFbmNvZGVyU2V0dGluZyI6ImVuY29kZXJfc2V0dGluZ18xMDgwcDMwXzEwIiwiSGVpZ2h0IjoxMDgwLCJLYnBzIjo1NTAwLCJXaWR0aCI6MTkyMH0.OImMZabKYJ0cs9CnIapU-4aBk6KNBiJxi1hh-6l4BZ4/tw_playlist_16740706496425085766.m3u8?type=replay
-
[Attachment 76477 - Click to enlarge]
Same problem. It downloads something but it is encrypted.
Similar Threads
-
How do I download Twitter video from Wayback machine?
By Usernam in forum Video Streaming DownloadingReplies: 4Last Post: 31st Oct 2023, 06:29 -
Download a deleted Twitter video
By bellona in forum Video Streaming DownloadingReplies: 0Last Post: 10th May 2023, 16:39 -
how to download a video broadcast from the site zoom.us?
By SenVik in forum Video Streaming DownloadingReplies: 5Last Post: 15th Feb 2021, 09:14 -
Twitter Download
By ghostrewel in forum Video Streaming DownloadingReplies: 2Last Post: 24th Oct 2019, 05:48 -
Help me Download video streaming
By dogantemel1978 in forum Video Streaming DownloadingReplies: 2Last Post: 28th Jan 2019, 09:04