M3U8 video AES decryption playback

When I saw some interesting videos on the website and wanted to download them, I found that there was no address in mp4 format. Because the video playback on this website uses HLS (HTTP Live Streaming) technology, HLS is a streaming media transmission technology developed by Apple, including an m3u8 index file, multiple ts fragment files and key encrypted string files. This technology is mainly used in the field of on-demand and live broadcast.

Download m3u8 file and key

  1. Open the website with Chrome, enter the developer mode, find the network, refresh the page, filter the m3u8 suffix file, open the request URL and download it locally.
  2. Open the m3u8 file with Notepad, you can see that there are many https://*******/********.ts paths, ctrl+a select all to copy to Thunder, merge and download to one folder.
  3. Open the m3u8 file again, and check whether there #EXT-X-KEY:METHOD=AES-128,URI="123.text",IV=0x123fbf8is . If there is, filter "123.text" in the browser filter again, and open the request URL to download to the local.

Edit m3u8 file

  1. Find the URI. If the URI is a remote URL, modify it to the key file downloaded locally, such as "123.text" in this article.
  2. Replace and delete all the http paths before all .ts paths. For example
    #EXTINF:2.000000,
    https://abc/efg/index0.ts
    
    changed to
    #EXTINF:2.000000,
    index0.ts
    

play

Use VLC to play m3u8 files.
Note: m3u8 files, key files, and all ts files should be in one folder

Convert to MP4 video online

https://blog.csdn.net/weixin_41474364/article/details/128540317

Guess you like

Origin blog.csdn.net/weixin_41474364/article/details/128540142