Android Windows obtains the m3u8 video address through the ts link for video download

Table of contents

environment:

Solution ideas and process: .TS ——> .m3u8

1. Use the Android video cache mechanism to synthesize video

1.1 Locate the Shark Browser directory

1.2 Enter the Android/data/com.zhijianzhuoyue.sharkbrowser/cashe cache directory

 1.3 Show hidden files

1.4 Enter and you can see two randomly generated video folders, enter one is the corresponding video playback cache directory

1.4 Enter again to get the directory structure, wait for the video to finish playing and copy all the ts format videos to the new folder, you can directly merge the videos according to the file name and convert the format

2. Technical means to deal with - the method is efficient and simple

2.1. Get ts link

Method 1. Cache directory file acquisition

2.1.1 Enter the directory

Method 2. Use the packet capture tool on the mobile phone to obtain the link (the packet capture wizard does not require root or certificate)

2.1.2 Set the packet capture application to enable packet capture

2.2 Link technology processing (key)

3. Video download


environment:

Android+shark browser+playback record (not history record)

There is no link displayed in the playback record and the real link cannot be obtained through sharing, and downloading is useless. . . There is no solution, but it can be played normally

The historical record of a video I saw a long time ago is gone, only the playback record, and I obtained the ts link through packet capture, but I can’t download it directly without the address of m3u8

Solution ideas and process: .TS ——> .m3u8

1. Use the Android video cache mechanism to synthesize video

Find the cache directory, play the video in the background (it will be deleted after the temporary playback file is played), and cache it every second, copy all the ts files and merge them to generate a common mp4 format --- the method is simple and time-consuming

1.1 Locate the Shark Browser directory

 

1.2 Enter the Android/data/com.zhijianzhuoyue.sharkbrowser/cashe cache directory

 

 1.3 Show hidden files

1.4 Enter and you can see two randomly generated video folders, enter one is the corresponding video playback cache directory

1.4 Enter again to get the directory structure, wait for the video to finish playing and copy all the ts format videos to the new folder , you can directly merge the videos according to the file name and convert the format

 

 

 

2. Technical means to deal with - the method is efficient and simple

2.1. Get ts link

Method 1. Cache directory file acquisition

Open the video and click play, then enter the Android cache directory (hidden directory) to find the file with m3u8 and open it in text (document) to find the link with ts (implying that the index directory has been obtained), such as https://**** playcdn.com:443/2023***/u83835/1500kb/hls/dhahg.ts

2.1.1 Enter the directory

Cache is m3u8 video structural file (encryption method/version/key/storage location)

 seg*.ts is the video segment file corresponding to the tag

proxy.m3u8 is the browser software's local processing code for video playback

remote.m3u8 is the required file (open the text method to get the ts link)

 

Method 2. Use the packet capture tool on the mobile phone to obtain the link (the packet capture wizard does not require root or certificate)

2.1.2 Set the packet capture application to enable packet capture

For example https://****playcdn.com:443/2023***/u83835/1500kb/hls/dhahg.ts

2.2 Link technology processing (key)

Change the ts part to index.m3u8

https://****playcdn.com:443/2023***/u83835/1500kb/hls/ index.m3u8  get video download link

3. Video download

Finally, use the m3u8 video downloader to download (recommended the first one)

Writing time 1hour

Guess you like

Origin blog.csdn.net/qq_41095608/article/details/130103279